Skip to content

Commit 452db14

Browse files
committed
remove rtos_idle_callback(), sketch define vApplicationIdleHook() if needed
1 parent a73eb9d commit 452db14

File tree

3 files changed

+2
-8
lines changed

3 files changed

+2
-8
lines changed

cores/nRF5/Arduino.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,8 +119,6 @@ void suspendLoop(void);
119119
#define portInputRegister(port) ( (volatile uint32_t*) &(port->IN) )
120120
#define portModeRegister(port) ( &(port->DIR) )
121121
#define digitalPinHasPWM(P) ( g_ADigitalPinMap[P] > 1 )
122-
123-
void rtos_idle_callback(void) ATTR_WEAK;
124122
/*
125123
* digitalPinToTimer(..) is AVR-specific and is not defined for nRF52
126124
* architecture. If you need to check if a pin supports PWM you must

cores/nRF5/hooks.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@ static void __empty() {
3030
}
3131
void yield(void) __attribute__ ((weak, alias("__empty")));
3232

33+
void vApplicationIdleHook( void ) __attribute__ ((weak, alias("__empty")));
34+
3335
/**
3436
* SysTick hook
3537
*

cores/nRF5/rtos.cpp

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -101,12 +101,6 @@ void vApplicationMallocFailedHook(void)
101101
LOG_LV1("RTOS", "Failed to Malloc");
102102
}
103103

104-
void vApplicationIdleHook( void )
105-
{
106-
// Call user callback if defined
107-
if ( rtos_idle_callback ) rtos_idle_callback();
108-
}
109-
110104
/* configSUPPORT_STATIC_ALLOCATION is set to 1, so the application must provide an
111105
* implementation of vApplicationGetIdleTaskMemory() to provide the memory that is
112106
* used by the Idle task. */

0 commit comments

Comments
 (0)