Lizzy project

Dependencies:   aconno_I2C Lis2dh12 adc52832_common aconno_SEGGER_RTT

Branch:
testing-ignore
Revision:
23:bf9c1dd2b5cb
Parent:
16:482d8f81d6f3
Child:
24:7539258b015c
--- a/source/main.h	Wed Aug 29 17:08:08 2018 +0000
+++ b/source/main.h	Mon Sep 17 12:46:41 2018 +0000
@@ -25,6 +25,10 @@
 #define BLE_ACTIVE_TIME_S   (0.4)
 #define POWER_UP_DELAY_MS   (200)
 
+#define STOP_FPU()                                                             \
+  __set_FPSCR(__get_FPSCR()  & ~(0x0000009F));                                 \
+  (void) __get_FPSCR();                                                        \
+  NVIC_ClearPendingIRQ(FPU_IRQn)
 
 #if PRINT_ON_RTT
     #include "SEGGER_RTT.h"
@@ -35,6 +39,8 @@
 
 #define INT1_THRESHOLD      (30)
 #define INT1_DUR            (12)
+#define ACC_ODR_ACTIVE_MODE (ODR_50Hz)
+#define ACC_ODR_SLEEP_MODE  (ODR_25Hz)
     
 #define ACC_INT_SIG         (0x00001020)    // Acc interrupt signal
 #define DISABLE_BLE_SIG     (0x00001030)