Lizzy project

Dependencies:   aconno_I2C Lis2dh12 adc52832_common aconno_SEGGER_RTT

Committer:
dbartolovic
Date:
Thu Sep 20 07:34:35 2018 +0000
Branch:
testing-ignore
Revision:
24:7539258b015c
Parent:
23:bf9c1dd2b5cb
Not a branch to be ignored, added proj_config, changed logic.

Who changed what in which revision?

UserRevisionLine numberNew contents of line
jurica238814 0:fc77522f4d28 1 /*
jurica238814 0:fc77522f4d28 2 * Made by Jurica Resetar @ aconno
jurica238814 0:fc77522f4d28 3 * More info @ aconno.de
jurica238814 0:fc77522f4d28 4 *
jurica238814 0:fc77522f4d28 5 */
jurica238814 0:fc77522f4d28 6
jurica238814 0:fc77522f4d28 7 #ifndef MAIN_H
jurica238814 0:fc77522f4d28 8 #define MAIN_H
jurica238814 0:fc77522f4d28 9
jurica238814 0:fc77522f4d28 10 #include "mbed.h"
jurica238814 0:fc77522f4d28 11 #include "Lis2dh12.h"
jurica238814 0:fc77522f4d28 12 #include "Lis2dh12_regs.h"
jurica238814 0:fc77522f4d28 13 #include "aconno_ble.h"
jurica238814 0:fc77522f4d28 14 #include "ble/BLE.h"
jurica238814 0:fc77522f4d28 15 #include "GapAdvertisingData.h"
dbartolovic 6:55607d577a42 16 #include "acd52832_bsp.h"
dbartolovic 24:7539258b015c 17 #include "proj_config.h"
jurica238814 0:fc77522f4d28 18
dbartolovic 3:38eadab20283 19 //#define LSB_VALUE (192)
jurica238814 0:fc77522f4d28 20
jurica238814 0:fc77522f4d28 21
dbartolovic 23:bf9c1dd2b5cb 22 #define STOP_FPU() \
dbartolovic 23:bf9c1dd2b5cb 23 __set_FPSCR(__get_FPSCR() & ~(0x0000009F)); \
dbartolovic 23:bf9c1dd2b5cb 24 (void) __get_FPSCR(); \
dbartolovic 23:bf9c1dd2b5cb 25 NVIC_ClearPendingIRQ(FPU_IRQn)
dbartolovic 6:55607d577a42 26
jurica238814 0:fc77522f4d28 27 #if PRINT_ON_RTT
jurica238814 0:fc77522f4d28 28 #include "SEGGER_RTT.h"
jurica238814 0:fc77522f4d28 29 #define printf(...) SEGGER_RTT_printf(0, __VA_ARGS__)
jurica238814 0:fc77522f4d28 30 #else
jurica238814 0:fc77522f4d28 31 #define printf(...)
jurica238814 0:fc77522f4d28 32 #endif
jurica238814 0:fc77522f4d28 33
jurica238814 0:fc77522f4d28 34
jurica238814 0:fc77522f4d28 35 #define ACC_INT_SIG (0x00001020) // Acc interrupt signal
dbartolovic 24:7539258b015c 36 #define DISABLE_BLE_SIG (0x00001040)
jurica238814 0:fc77522f4d28 37
jurica238814 0:fc77522f4d28 38
dbartolovic 8:7ba4f82de9b6 39 extern Thread bleT;
dbartolovic 8:7ba4f82de9b6 40 extern Thread measureT;
dbartolovic 8:7ba4f82de9b6 41 extern Thread updateServiceT;
dbartolovic 8:7ba4f82de9b6 42 extern Thread updateBuzzLedsT;
jurica238814 0:fc77522f4d28 43
dbartolovic 15:c0c01188a29b 44 void disableI2C();
dbartolovic 15:c0c01188a29b 45
jurica238814 0:fc77522f4d28 46 #endif