添加svc handler

This commit is contained in:
heyuanjie87 2018-11-02 15:36:52 +08:00 committed by GitHub
parent d5d53a2dd1
commit 499ad88f46
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -9,10 +9,14 @@
#include "ameba_soc.h"
#include "build_info.h"
#include "rtconfig.h"
#include "rtthread.h"
extern int rtthread_startup(void);
RT_WEAK void SVC_Handler(void)
{
}
void APP_Start(void)
{
#if CONFIG_SOC_PS_MODULE
@ -21,7 +25,7 @@ void APP_Start(void)
extern void PendSV_Handler(void);
extern void SysTick_Handler(void);
InterruptForOSInit((VOID*)NULL,
InterruptForOSInit((VOID*)SVC_Handler,
(VOID*)PendSV_Handler,
(VOID*)SysTick_Handler);