mirror of
https://gitee.com/Vancouver2017/luban-lite.git
synced 2025-12-18 01:58:56 +00:00
v1.2.2
This commit is contained in:
@@ -185,6 +185,8 @@ struct rt_can_ops;
|
||||
#define RT_CAN_STOP_DMA 0x1E
|
||||
#define RT_CAN_CONFIG_DMA_TX 0x20
|
||||
#define RT_CAN_CONFIG_DMA_RX 0x21
|
||||
#define RT_CAN_CMD_DISABLE_RETRANS 0x22
|
||||
#define RT_CAN_CMD_SET_AUTOBUSOFF 0x23
|
||||
|
||||
#define RT_DEVICE_CAN_INT_ERR 0x1000
|
||||
|
||||
|
||||
@@ -109,7 +109,6 @@ struct rt_mmcsd_host {
|
||||
rt_uint32_t sdio_irq_num;
|
||||
|
||||
struct rt_event *sdio_irq_event;
|
||||
struct rt_semaphore *sdio_irq_delete_sem;
|
||||
|
||||
struct rt_thread *sdio_irq_thread;
|
||||
#ifdef AIC_SDMC_DRV
|
||||
|
||||
@@ -27,6 +27,7 @@
|
||||
#define PWM_CMD_SET_PUL (RT_DEVICE_CTRL_BASE(PWM) + 11)
|
||||
#define PWM_CMD_SET_OUTPUT (RT_DEVICE_CTRL_BASE(PWM) + 12)
|
||||
#define PWM_CMD_DMA_SET_FIFO (RT_DEVICE_CTRL_BASE(PWM) + 13)
|
||||
#define PWM_CMD_VDD_REGU (RT_DEVICE_CTRL_BASE(PWM) + 14)
|
||||
|
||||
struct rt_pwm_configuration
|
||||
{
|
||||
@@ -46,16 +47,6 @@ struct rt_pwm_configuration
|
||||
rt_uint32_t irq_mode;
|
||||
rt_uint32_t pul_cnt;
|
||||
#endif
|
||||
#ifdef AIC_XPWM_DRV
|
||||
rt_uint32_t pulse_cnt; /* 0:PWM mode, 1-n:XPWM pulse cnt */
|
||||
rt_uint32_t fifo_num;
|
||||
rt_uint32_t fifo_index;
|
||||
rt_uint32_t pul_num;
|
||||
rt_uint32_t pul_prd;
|
||||
rt_uint32_t pul_cmp;
|
||||
rt_uint32_t *buf;
|
||||
rt_uint32_t buf_len;
|
||||
#endif
|
||||
};
|
||||
|
||||
struct rt_device_pwm;
|
||||
@@ -77,11 +68,7 @@ rt_err_t rt_pwm_disable(struct rt_device_pwm *device, int channel);
|
||||
#if defined(AIC_PWM_DRV) || defined(AIC_EPWM_DRV)
|
||||
rt_err_t rt_pwm_set_pul(struct rt_device_pwm *device, int channel, rt_uint32_t irq_mode, rt_uint32_t period, rt_uint32_t pulse, rt_uint32_t pul_cnt);
|
||||
#endif
|
||||
#ifdef AIC_XPWM_DRV
|
||||
rt_err_t rt_pwm_set(struct rt_device_pwm *device, int channel, rt_uint32_t period, rt_uint32_t pulse, rt_uint32_t pulse_cnt);
|
||||
#else
|
||||
rt_err_t rt_pwm_set(struct rt_device_pwm *device, int channel, rt_uint32_t period, rt_uint32_t pulse);
|
||||
#endif
|
||||
rt_err_t rt_pwm_set_output(struct rt_device_pwm *device, int channel, rt_uint32_t period, rt_uint32_t pulse, rt_uint32_t output);
|
||||
rt_err_t rt_pwm_set_period(struct rt_device_pwm *device, int channel, rt_uint32_t period);
|
||||
rt_err_t rt_pwm_set_pulse(struct rt_device_pwm *device, int channel, rt_uint32_t pulse);
|
||||
|
||||
@@ -26,6 +26,7 @@
|
||||
#define BAUD_RATE_230400 230400
|
||||
#define BAUD_RATE_460800 460800
|
||||
#define BAUD_RATE_921600 921600
|
||||
#define BAUD_RATE_1500000 1500000
|
||||
#define BAUD_RATE_2000000 2000000
|
||||
#define BAUD_RATE_2500000 2500000
|
||||
#define BAUD_RATE_3000000 3000000
|
||||
@@ -96,6 +97,7 @@
|
||||
#define RT_SERIAL_SW_FLOW_CTRL 0x85
|
||||
#define RT_SERIAL_SW_RECEIVE_ON_OFF 0x86
|
||||
#define RT_SERIAL_SET_BAUDRATE 0x87
|
||||
#define RT_SERIAL_GET_CONFIG 0x88
|
||||
|
||||
typedef enum
|
||||
{
|
||||
@@ -147,7 +149,7 @@ struct serial_configure
|
||||
rt_uint32_t flow_ctrl_suspend :1;
|
||||
rt_uint32_t flowctrl_cts_enable :1;
|
||||
rt_uint32_t flowctrl_rts_enable :1;
|
||||
rt_uint32_t uart_index :4;
|
||||
rt_uint32_t uart_index;
|
||||
rt_uint32_t uart_freq;
|
||||
};
|
||||
|
||||
|
||||
@@ -57,6 +57,8 @@ extern "C" {
|
||||
#define RT_TOUCH_CTRL_GET_DYNAMIC_FLAG (RT_DEVICE_CTRL_BASE(Touch) + 15) /* Get Touch Dynamic Rotation Enable Flag */
|
||||
#define RT_TOUCH_CTRL_SET_OSD_FLAG (RT_DEVICE_CTRL_BASE(Touch) + 16) /* Set Touch OSD Flag */
|
||||
#define RT_TOUCH_CTRL_GET_OSD_FLAG (RT_DEVICE_CTRL_BASE(Touch) + 17) /* Get Touch OSD Flag */
|
||||
#define RT_TOUCH_CTRL_SET_DYNAMIC_CROP (RT_DEVICE_CTRL_BASE(Touch) + 18) /* Set Touch Dynamic Crop */
|
||||
#define RT_TOUCH_CTRL_GET_DYNAMIC_CROP (RT_DEVICE_CTRL_BASE(Touch) + 19) /* Get Touch Dynamic Crop */
|
||||
|
||||
/* Touch event */
|
||||
#define RT_TOUCH_EVENT_NONE (0) /* Touch none */
|
||||
@@ -76,6 +78,13 @@ struct rt_touch_info
|
||||
rt_int32_t range_y; /* Y coordinate range */
|
||||
};
|
||||
|
||||
struct rt_touch_crop_info
|
||||
{
|
||||
rt_int32_t width;
|
||||
rt_int32_t height;
|
||||
rt_uint8_t enable;
|
||||
};
|
||||
|
||||
struct rt_touch_config
|
||||
{
|
||||
rt_uint8_t rst_pin;
|
||||
|
||||
Reference in New Issue
Block a user