remove unneeded defines
This commit is contained in:
parent
b5992fd7ec
commit
bf7d77bd34
2 changed files with 1 additions and 39 deletions
|
@ -4,7 +4,6 @@
|
||||||
#include "app_timer.h"
|
#include "app_timer.h"
|
||||||
#include "nrf_drv_clock.h"
|
#include "nrf_drv_clock.h"
|
||||||
|
|
||||||
APP_TIMER_DEF(vibTimer);
|
|
||||||
|
|
||||||
using namespace Pinetime::Controllers;
|
using namespace Pinetime::Controllers;
|
||||||
|
|
||||||
|
|
|
@ -10,45 +10,8 @@ namespace Pinetime {
|
||||||
public:
|
public:
|
||||||
void Init();
|
void Init();
|
||||||
void SetDuration(uint8_t motorDuration);
|
void SetDuration(uint8_t motorDuration);
|
||||||
#ifndef NRF_CLOCK_ENABLED
|
|
||||||
#define NRF_CLOCK_ENABLED 1
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef CLOCK_CONFIG_LF_SRC
|
APP_TIMER_DEF(vibTimer);
|
||||||
#define CLOCK_CONFIG_LF_SRC 1
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef CLOCK_CONFIG_IRQ_PRIORITY
|
|
||||||
#define CLOCK_CONFIG_IRQ_PRIORITY 6
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#define APP_TIMER_ENABLED 1
|
|
||||||
#define APP_TIMER_CONFIG_RTC_FREQUENCY 15 //2048hz
|
|
||||||
#define APP_TIMER_CONFIG_IRQ_PRIORITY 6
|
|
||||||
|
|
||||||
#ifndef APP_TIMER_CONFIG_OP_QUEUE_SIZE
|
|
||||||
#define APP_TIMER_CONFIG_OP_QUEUE_SIZE 10
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef APP_TIMER_CONFIG_USE_SCHEDULER
|
|
||||||
#define APP_TIMER_CONFIG_USE_SCHEDULER 0
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef APP_TIMER_KEEPS_RTC_ACTIVE
|
|
||||||
#define APP_TIMER_KEEPS_RTC_ACTIVE 0
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef APP_TIMER_SAFE_WINDOW_MS
|
|
||||||
#define APP_TIMER_SAFE_WINDOW_MS 300000
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef APP_TIMER_WITH_PROFILER
|
|
||||||
#define APP_TIMER_WITH_PROFILER 0
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef APP_TIMER_CONFIG_SWI_NUMBER
|
|
||||||
#define APP_TIMER_CONFIG_SWI_NUMBER 0
|
|
||||||
#endif
|
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue