This commit is contained in:
hathach committed 2017-04-10 15:23:39 +07:00
1 parent d2fc54fab9
commit f093e03c5d
3 files changed
+6 -3

No files matched your search

+1 -3
View File
@@ -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
+2
View File
@@ -20,6 +20,8 @@
#include <stdint.h>
#include <stdbool.h>
#include "nrf.h"
#include "nrf_soc.h"
#ifdef __cplusplus
extern "C" {
+3
View File
@@ -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"
{