mirror of
https://github.com/Fishwaldo/bl_mcu_sdk.git
synced 2025-07-11 23:38:57 +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
|
@ -3,23 +3,12 @@
|
|||
#include "usbh_core.h"
|
||||
#include "board.h"
|
||||
|
||||
static uint8_t freertos_heap[configTOTAL_HEAP_SIZE];
|
||||
|
||||
static HeapRegion_t xHeapRegions[] = {
|
||||
{ (uint8_t *)freertos_heap, 0 },
|
||||
{ NULL, 0 }, /* Terminates the array. */
|
||||
{ NULL, 0 } /* Terminates the array. */
|
||||
};
|
||||
|
||||
extern void usbh_class_test(void);
|
||||
|
||||
int main(void)
|
||||
{
|
||||
board_init();
|
||||
|
||||
xHeapRegions[0].xSizeInBytes = configTOTAL_HEAP_SIZE;
|
||||
vPortDefineHeapRegions(xHeapRegions);
|
||||
|
||||
printf("Starting usb host task...\r\n");
|
||||
usbh_initialize();
|
||||
usbh_class_test();
|
||||
|
@ -27,4 +16,4 @@ int main(void)
|
|||
|
||||
while (1) {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue