project:cfg:BoardConfig_IPC: Added fastboot BoardConfig file and firmware post-scripts, distinguishing between the BoardConfigs for Luckfox Pico Pro and Luckfox Pico Max. project:app: Added fastboot_client and rk_smart_door for quick boot applications; updated rkipc app to adapt to the latest media library. media:samples: Added more usage examples. media:rockit: Fixed bugs; removed support for retrieving data frames from VPSS. media:isp: Updated rkaiq library and related tools to support connection to RKISP_Tuner. sysdrv:Makefile: Added support for compiling drv_ko on Luckfox Pico Ultra W using Ubuntu; added support for custom root filesystem. sysdrv:tools:board: Updated Buildroot optional mirror sources, updated some software versions, and stored device tree files and configuration files that undergo multiple modifications for U-Boot and kernel separately. sysdrv:source:mcu: Used RISC-V MCU SDK with RT-Thread system, mainly for initializing camera AE during quick boot. sysdrv:source:uboot: Added support for fastboot; added high baud rate DDR bin for serial firmware upgrades. sysdrv:source:kernel: Upgraded to version 5.10.160; increased NPU frequency for RV1106G3; added support for fastboot. Signed-off-by: luckfox-eng29 <eng29@luckfox.com>
54 lines
1.2 KiB
C
54 lines
1.2 KiB
C
/*
|
|
* File : serial.h
|
|
* This file is part of RT-Thread RTOS
|
|
* COPYRIGHT (C) 2009 - 2010, RT-Thread Development Team
|
|
*
|
|
* The license and distribution terms for this file may be
|
|
* found in the file LICENSE in this distribution or at
|
|
* http://www.rt-thread.org/license/LICENSE
|
|
*
|
|
* Change Logs:
|
|
* Date Author Notes
|
|
* 2009-01-05 Bernard first version
|
|
* 2010-03-29 Bernard remove interrupt tx and DMA rx mode.
|
|
* 2010-03-30 Kyle Ported from STM32 to AVR32.
|
|
*/
|
|
#ifndef __RT_HW_SERIAL_H__
|
|
#define __RT_HW_SERIAL_H__
|
|
|
|
#include <rthw.h>
|
|
#include <rtthread.h>
|
|
#include "compiler.h"
|
|
#include "usart.h"
|
|
|
|
#define UART_RX_BUFFER_SIZE 64
|
|
#define UART_TX_DMA_NODE_SIZE 4
|
|
|
|
/* data node for Tx Mode */
|
|
struct avr32_serial_data_node
|
|
{
|
|
rt_uint8_t *data_ptr;
|
|
rt_size_t data_size;
|
|
struct avr32_serial_data_node *next, *prev;
|
|
};
|
|
|
|
struct avr32_serial_int_rx
|
|
{
|
|
rt_uint8_t rx_buffer[UART_RX_BUFFER_SIZE];
|
|
rt_uint32_t read_index, save_index;
|
|
};
|
|
|
|
struct avr32_serial_device
|
|
{
|
|
avr32_usart_t *uart_device;
|
|
|
|
/* rx structure */
|
|
struct avr32_serial_int_rx* int_rx;
|
|
};
|
|
|
|
rt_err_t rt_hw_serial_register(rt_device_t device, const char* name, rt_uint32_t flag, struct avr32_serial_device *serial);
|
|
|
|
void rt_hw_serial_isr();
|
|
|
|
#endif
|