remove rtos_idle_callback(), sketch define vApplicationIdleHook() if needed
This commit is contained in:
3 files changed
+2
-8
No files matched your search
@@ -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
|
||||||
|
|||||||
@@ -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
|
||||||
*
|
*
|
||||||
|
|||||||
@@ -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. */
|
||||||
|
|||||||
Reference in new issue
Block a user