From 499ad88f46c46526fd2841ff800335dad27a2cfc Mon Sep 17 00:00:00 2001 From: heyuanjie87 Date: Fri, 2 Nov 2018 15:36:52 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0svc=20handler?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- rtthread_patch/realtek/8711b/app_start.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/rtthread_patch/realtek/8711b/app_start.c b/rtthread_patch/realtek/8711b/app_start.c index 07658f1..2b4c45e 100644 --- a/rtthread_patch/realtek/8711b/app_start.c +++ b/rtthread_patch/realtek/8711b/app_start.c @@ -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);