mirror of
https://github.com/Fishwaldo/bl_mcu_sdk.git
synced 2025-07-10 06:48:51 +00:00
[sync] sync from internal repo
* 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
This commit is contained in:
parent
89592fc9a3
commit
356f258e83
554 changed files with 79150 additions and 46596 deletions
27
examples/posix/freertos/main.c
Normal file
27
examples/posix/freertos/main.c
Normal file
|
@ -0,0 +1,27 @@
|
|||
#include <FreeRTOS.h>
|
||||
#include "semphr.h"
|
||||
#include "board.h"
|
||||
|
||||
static void proc_hellow_entry(void *pvParameters)
|
||||
{
|
||||
extern int mqueues_test(void);
|
||||
mqueues_test();
|
||||
extern int semaphores_test(void);
|
||||
semaphores_test();
|
||||
|
||||
vTaskDelete(NULL);
|
||||
}
|
||||
|
||||
int main(void)
|
||||
{
|
||||
board_init();
|
||||
|
||||
|
||||
puts("[OS] Starting proc_hellow_entry task...\r\n");
|
||||
xTaskCreate(proc_hellow_entry, (char*)"hellow", 2048, NULL, 6, NULL);
|
||||
|
||||
vTaskStartScheduler();
|
||||
|
||||
while (1) {
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue