mirror of
https://gitee.com/Vancouver2017/luban-lite.git
synced 2025-12-29 01:06:56 +00:00
V1.0.6
This commit is contained in:
@@ -75,6 +75,11 @@ struct rt_mtd_nand_driver_ops {
|
||||
rt_err_t (*continuous_read)(struct rt_mtd_nand_device *device,
|
||||
rt_off_t page, rt_uint8_t *data,
|
||||
rt_uint32_t size);
|
||||
rt_err_t (*set_block_status)(struct rt_mtd_nand_device *device,
|
||||
rt_uint32_t block, rt_uint32_t block_pos,
|
||||
rt_uint32_t status);
|
||||
rt_uint32_t (*get_block_status)(struct rt_mtd_nand_device *device,
|
||||
rt_uint32_t block);
|
||||
};
|
||||
|
||||
rt_err_t rt_mtd_nand_register_device(const char *name,
|
||||
|
||||
@@ -95,6 +95,7 @@
|
||||
#define RT_SERIAL_232_SUSPEND_DATA 0x84
|
||||
#define RT_SERIAL_SW_FLOW_CTRL 0x85
|
||||
#define RT_SERIAL_SW_RECEIVE_ON_OFF 0x86
|
||||
#define RT_SERIAL_SET_BAUDRATE 0x87
|
||||
|
||||
typedef enum
|
||||
{
|
||||
@@ -125,7 +126,8 @@ typedef enum
|
||||
0, \
|
||||
0, \
|
||||
0, \
|
||||
0x0F \
|
||||
0x0F, \
|
||||
48000000 \
|
||||
}
|
||||
|
||||
struct serial_configure
|
||||
@@ -146,6 +148,7 @@ struct serial_configure
|
||||
rt_uint32_t flowctrl_cts_enable :1;
|
||||
rt_uint32_t flowctrl_rts_enable :1;
|
||||
rt_uint32_t uart_index :4;
|
||||
rt_uint32_t uart_freq;
|
||||
};
|
||||
|
||||
/*
|
||||
|
||||
@@ -44,6 +44,7 @@ void rt_wqueue_add(rt_wqueue_t *queue, struct rt_wqueue_node *node);
|
||||
void rt_wqueue_remove(struct rt_wqueue_node *node);
|
||||
int rt_wqueue_wait(rt_wqueue_t *queue, int condition, int timeout);
|
||||
void rt_wqueue_wakeup(rt_wqueue_t *queue, void *key);
|
||||
void rt_wqueue_wakeup_all(rt_wqueue_t *queue, void *key);
|
||||
|
||||
#define DEFINE_WAIT_FUNC(name, function) \
|
||||
struct rt_wqueue_node name = { \
|
||||
|
||||
Reference in New Issue
Block a user