[IDE] add startup hook for ide

pull/95/head
GongT 2019-09-06 14:31:17 +08:00
parent 17bcb8407f
commit b0b2b76ba8
2 changed files with 6 additions and 1 deletions

View File

@ -70,7 +70,8 @@
"NNCASE_TARGET:raw": "k210",
"KENDRYTE_SDK_TYPE:raw": "1",
"KENDRYTE_SDK_TYPE_STANDALONE:raw": "1",
"KENDRYTE_SDK_TYPE_FREERTOS:raw": "2"
"KENDRYTE_SDK_TYPE_FREERTOS:raw": "2",
"KENDRYTE_SDK_RELEASE_DATE:raw": "0"
},
"linkArgumentPrefix": [
"-Wl,--whole-archive"

View File

@ -35,6 +35,8 @@ volatile char *const ram = (volatile char *)RAM_BASE_ADDR;
extern char _heap_start[];
extern char _heap_end[];
void __attribute__((weak)) initialize_kendryte_ide_hook(void) {}
void thread_entry(int core_id)
{
while(!atomic_read(&g_wake_up[core_id]))
@ -89,6 +91,8 @@ void _init_bsp(int core_id, int number_of_cores)
plic_init();
/* Enable global interrupt */
sysctl_enable_irq();
/* Hook entry for kendryte IDE */
initialize_kendryte_ide_hook();
}
int ret = 0;