This commit is contained in:
刘可亮
2024-09-03 11:16:08 +08:00
parent cf270df8d6
commit 803cac77d5
2931 changed files with 614364 additions and 31222 deletions

View File

@@ -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,

View File

@@ -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;
};
/*

View File

@@ -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 = { \