Lizzy project
Dependencies: aconno_I2C Lis2dh12 adc52832_common aconno_SEGGER_RTT
Revision 20:ecb479051bef, committed 2018-09-13
- Comitter:
- jurica238814
- Date:
- Thu Sep 13 12:23:39 2018 +0200
- Parent:
- 18:d1f73bb9275a
- Child:
- 21:35fbf630a24a
- Commit message:
- Work in progress
Changed in this revision
--- a/bsp/bsp_led.h Wed Sep 12 16:21:36 2018 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,14 +0,0 @@ -#ifndef __BSP_LED_H__ -#define __BSP_LED_H__ - -#include "main.h" - -#if NANO_MODULE - #define RED_LED_PIN (p12) -#else - #define RED_LED_PIN (p31) //p22 - #define GREEN_LED_PIN (p2) - #define BLUE_LED_PIN (p3) -#endif - -#endif //__BSP_LED_H__ \ No newline at end of file
--- a/config/mbed_app.json Wed Sep 12 16:21:36 2018 +0200
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,7 +0,0 @@
-{
- "target_overrides": {
- "NRF52_DK": {
- "target.uart_hwfc": 0
- }
- }
-}
\ No newline at end of file
--- a/source/main.h Wed Sep 12 16:21:36 2018 +0200
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,55 +0,0 @@
-/*
- * Made by Jurica Resetar @ aconno
- * More info @ aconno.de
- *
- */
-
-#ifndef MAIN_H
-#define MAIN_H
-
-#include "mbed.h"
-#include "Lis2dh12.h"
-#include "Lis2dh12_regs.h"
-#include "aconno_ble.h"
-#include "ble/BLE.h"
-#include "GapAdvertisingData.h"
-#include "acd52832_bsp.h"
-
-#define DEBUG (0)
-#define PRINT_ON_RTT (0)
-#define DEBUG_LED (0)
-#define NANO_MODULE (0)
-//#define LSB_VALUE (192)
-
-#define BLE_ACTIVE_TIME_S (0.4)
-#define POWER_UP_DELAY_MS (200)
-
-
-#if PRINT_ON_RTT
- #include "SEGGER_RTT.h"
- #define printf(...) SEGGER_RTT_printf(0, __VA_ARGS__)
-#else
- #define printf(...)
-#endif
-
-#define INT1_THRESHOLD (20u)
-#define INT1_DUR (0x00)
-
-#define ACC_INT_SIG (0x00001020) // Acc interrupt signal
-#define DISABLE_BLE_SIG (0x00001030)
-
-#if DEBUG
- NRF52_UART uart(p12, p14, Baud9600);
- char buffer[255];
- #define SEND(...) {uint8_t len = sprintf(buffer, __VA_ARGS__); uartM.lock(); uart.send(buffer, len); uartM.unlock();}
-#else
- #define SEND(...)
-#endif
-
-
-extern Thread bleT;
-extern Thread measureT;
-extern Thread updateServiceT;
-extern Thread updateBuzzLedsT;
-
-#endif

