remove rtos_idle_callback(), sketch define vApplicationIdleHook() if needed

This commit is contained in:
hathach committed 2019-06-06 11:19:53 +07:00
1 parent a73eb9d765
commit 452db14e41
3 files changed
+2 -8

No files matched your search

-2
View File
@@ -119,8 +119,6 @@ void suspendLoop(void);
#define portInputRegister(port) ( (volatile uint32_t*) &(port->IN) ) #define portInputRegister(port) ( (volatile uint32_t*) &(port->IN) )
#define portModeRegister(port) ( &(port->DIR) ) #define portModeRegister(port) ( &(port->DIR) )
#define digitalPinHasPWM(P) ( g_ADigitalPinMap[P] > 1 ) #define digitalPinHasPWM(P) ( g_ADigitalPinMap[P] > 1 )
void rtos_idle_callback(void) ATTR_WEAK;
/* /*
* digitalPinToTimer(..) is AVR-specific and is not defined for nRF52 * digitalPinToTimer(..) is AVR-specific and is not defined for nRF52
* architecture. If you need to check if a pin supports PWM you must * architecture. If you need to check if a pin supports PWM you must
+2
View File
@@ -30,6 +30,8 @@ static void __empty() {
} }
void yield(void) __attribute__ ((weak, alias("__empty"))); void yield(void) __attribute__ ((weak, alias("__empty")));
void vApplicationIdleHook( void ) __attribute__ ((weak, alias("__empty")));
/** /**
* SysTick hook * SysTick hook
* *
-6
View File
@@ -101,12 +101,6 @@ void vApplicationMallocFailedHook(void)
LOG_LV1("RTOS", "Failed to Malloc"); 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 /* configSUPPORT_STATIC_ALLOCATION is set to 1, so the application must provide an
* implementation of vApplicationGetIdleTaskMemory() to provide the memory that is * implementation of vApplicationGetIdleTaskMemory() to provide the memory that is
* used by the Idle task. */ * used by the Idle task. */