From 6369b4cefa5e13018c27cf5d5a1a7fe69b216e3a Mon Sep 17 00:00:00 2001 From: Angus Gratton Date: Thu, 7 May 2015 14:00:46 +1000 Subject: [PATCH] Clean up rest of port.c function --- FreeRTOS/Source/portable/esp8266/port.c | 58 +++++++++++-------------- 1 file changed, 26 insertions(+), 32 deletions(-) diff --git a/FreeRTOS/Source/portable/esp8266/port.c b/FreeRTOS/Source/portable/esp8266/port.c index 49e389d..30eea21 100644 --- a/FreeRTOS/Source/portable/esp8266/port.c +++ b/FreeRTOS/Source/portable/esp8266/port.c @@ -82,10 +82,9 @@ char level1_int_disabled; /* * Stack initialization */ -portSTACK_TYPE * -pxPortInitialiseStack( portSTACK_TYPE *pxTopOfStack, pdTASK_CODE pxCode, void *pvParameters ) +portSTACK_TYPE *pxPortInitialiseStack( portSTACK_TYPE *pxTopOfStack, pdTASK_CODE pxCode, void *pvParameters ) { - #define SET_STKREG(r,v) sp[(r) >> 2] = (portSTACK_TYPE)(v) + #define SET_STKREG(r,v) sp[(r) >> 2] = (portSTACK_TYPE)(v) portSTACK_TYPE *sp, *tp; /* Create interrupt stack frame aligned to 16 byte boundary */ @@ -173,36 +172,26 @@ void xPortSysTickHandle (void) /* * See header file for description. */ -portBASE_TYPE ICACHE_FLASH_ATTR -xPortStartScheduler( void ) +portBASE_TYPE xPortStartScheduler( void ) { - //set SV and systemtick as lowest priority ISR. _xt_isr_attach(ETS_SOFT_INUM, SV_ISR); _xt_isr_unmask(1<