You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
329 B
24 lines
329 B
10 months ago
|
#include "kernel.h"
|
||
|
#include "bsp.h"
|
||
|
#include "app.h"
|
||
|
|
||
|
static void init(void *arg)
|
||
|
{
|
||
|
bsp_init();
|
||
|
app_init();
|
||
|
}
|
||
|
|
||
|
static void idle(void *arg)
|
||
|
{
|
||
|
kernel_idle();
|
||
|
}
|
||
|
|
||
|
int main(void)
|
||
|
{
|
||
|
static uint8_t heap[64*1024];
|
||
|
kernel_init(heap, sizeof(heap));
|
||
|
thread_create(idle, NULL, 0);
|
||
|
thread_create(init, NULL, 0);
|
||
|
kernel_start();
|
||
|
}
|