diff --git a/cores/nRF5/Arduino.h b/cores/nRF5/Arduino.h index 8ac06a86..d45da06e 100644 --- a/cores/nRF5/Arduino.h +++ b/cores/nRF5/Arduino.h @@ -119,8 +119,6 @@ void suspendLoop(void); #define portInputRegister(port) ( (volatile uint32_t*) &(port->IN) ) #define portModeRegister(port) ( &(port->DIR) ) #define digitalPinHasPWM(P) ( g_ADigitalPinMap[P] > 1 ) - -void rtos_idle_callback(void) ATTR_WEAK; /* * digitalPinToTimer(..) is AVR-specific and is not defined for nRF52 * architecture. If you need to check if a pin supports PWM you must diff --git a/cores/nRF5/hooks.c b/cores/nRF5/hooks.c index f87c2044..f00bbb24 100644 --- a/cores/nRF5/hooks.c +++ b/cores/nRF5/hooks.c @@ -30,6 +30,8 @@ static void __empty() { } void yield(void) __attribute__ ((weak, alias("__empty"))); +void vApplicationIdleHook( void ) __attribute__ ((weak, alias("__empty"))); + /** * SysTick hook * diff --git a/cores/nRF5/rtos.cpp b/cores/nRF5/rtos.cpp index 7e164f78..2006822c 100644 --- a/cores/nRF5/rtos.cpp +++ b/cores/nRF5/rtos.cpp @@ -101,12 +101,6 @@ void vApplicationMallocFailedHook(void) LOG_LV1("RTOS", "Failed to Malloc"); } -void vApplicationIdleHook( void ) -{ - // Call user callback if defined - if ( rtos_idle_callback ) rtos_idle_callback(); -} - /* configSUPPORT_STATIC_ALLOCATION is set to 1, so the application must provide an * implementation of vApplicationGetIdleTaskMemory() to provide the memory that is * used by the Idle task. */