mirror of
https://github.com/Fishwaldo/bl_mcu_sdk.git
synced 2025-07-12 07:48:42 +00:00
* use nuttx libc, disable system libc * use tlsf as default * update lhal flash driver * add example readme * add flash ini for new flash tool * add fw header for new flash tool
25 lines
445 B
C
25 lines
445 B
C
#include "bflb_mtimer.h"
|
|
#include "bflb_uart.h"
|
|
#include "shell.h"
|
|
#include <FreeRTOS.h>
|
|
#include "semphr.h"
|
|
#include "board.h"
|
|
|
|
static struct bflb_device_s *uart0;
|
|
|
|
extern void shell_init_with_task(struct bflb_device_s *shell);
|
|
|
|
int main(void)
|
|
{
|
|
board_init();
|
|
|
|
configASSERT((configMAX_PRIORITIES > 4));
|
|
|
|
uart0 = bflb_device_get_by_name("uart0");
|
|
shell_init_with_task(uart0);
|
|
|
|
vTaskStartScheduler();
|
|
|
|
while (1) {
|
|
}
|
|
}
|