356f258e83
* 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
27 lines
708 B
C
27 lines
708 B
C
#include "bflb_mtimer.h"
|
|
#include "board.h"
|
|
|
|
#define DBG_TAG "MAIN"
|
|
#include "log.h"
|
|
|
|
int main(void)
|
|
{
|
|
board_init();
|
|
|
|
while (1) {
|
|
LOG_F("hello world fatal\r\n");
|
|
LOG_E("hello world error\r\n");
|
|
LOG_W("hello world warning\r\n");
|
|
LOG_I("hello world information\r\n");
|
|
LOG_D("hello world debug\r\n");
|
|
LOG_T("hello world trace\r\n");
|
|
LOG_RF("hello world fatal raw\r\n");
|
|
LOG_RE("hello world error raw\r\n");
|
|
LOG_RW("hello world warning raw\r\n");
|
|
LOG_RI("hello world information raw\r\n");
|
|
LOG_RD("hello world debug raw\r\n");
|
|
LOG_RT("hello world trace raw\r\n");
|
|
bflb_mtimer_delay_ms(1000);
|
|
}
|
|
}
|