clean up
This commit is contained in:
1 parent
d2fc54fab9
commit
f093e03c5d
3 files changed
+6
-3
No files matched your search
@@ -111,9 +111,7 @@ uint32_t setLoopStacksize(void);
|
||||
#define digitalPinHasPWM(P) ( true )
|
||||
|
||||
// Hint instruction to tell CPU go to low power mode
|
||||
#define waitForEvent() __WFE()
|
||||
|
||||
extern void rtos_idle_callback(void) ATTR_WEAK;
|
||||
#define waitForEvent() sd_app_evt_wait() // __WFE()
|
||||
|
||||
/*
|
||||
* digitalPinToTimer(..) is AVR-specific and is not defined for nRF52
|
||||
|
||||
@@ -20,6 +20,8 @@
|
||||
|
||||
#include <stdint.h>
|
||||
#include <stdbool.h>
|
||||
#include "nrf.h"
|
||||
#include "nrf_soc.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
|
||||
@@ -82,6 +82,9 @@ bool SchedulerRTOS::startLoop(taskfunc_t task, const char* name, uint32_t stack_
|
||||
return pdPASS == xTaskCreate( _redirect_task, name, stack_size, (void*) task, TASK_PRIO_NORMAL, &handle);
|
||||
}
|
||||
|
||||
void rtos_idle_callback(void) ATTR_WEAK;
|
||||
void rtos_idle_callback(void) {}
|
||||
|
||||
extern "C"
|
||||
{
|
||||
|
||||
|
||||
Reference in new issue
Block a user