init
Dependencies: aconno_I2C Lis2dh12 WatchdogTimer
board.h
- Committer:
- pathfindr
- Date:
- 2018-12-16
- Revision:
- 14:9a54b1b65bc8
- Parent:
- 9:b0a1535b8ef2
- Child:
- 34:4493c9f6d707
File content as of revision 14:9a54b1b65bc8:
#include "mbed.h" //PINS #define PN_SWDIO SWDIO #define PN_SWCLK SWCLK #define PN_RESET P0_21 #define PN_IO1 P0_20 #define PN_IO2 P0_18 #define PN_IO3 P0_2 #define PN_IO4 P0_3 #define PN_IN_BUTTON P0_13 #define PN_LED P0_11 #define PN_GSM_WAKEUP_IN P0_14 #define PN_GSM_WAKE_DISABLE P0_16 #define PN_GSM_STATUS P0_15 #define PN_GSM_RESET P0_25 #define PN_GSM_PWR_KEY P0_28 #define PN_SPI_MOSI P0_23 #define PN_SPI_MISO P0_19 #define PN_SPI_CLK P0_24 #define PN_SPI_CS0 P0_22 #define PN_SPI_CS1 P0_17 #define PN_UART_RX P0_8 #define PN_UART_TX P0_6 #define PN_UART_CTS P0_30 #define PN_UART_RTS P0_31 #define PN_OUT_BUZZER P0_7 #define PN_ACC_INT1 P0_5 #define PN_ACC_INT2 P0_4 #define PN_VREG_EN P0_29 #define PN_I2C_SDA P0_26 #define PN_I2C_SCL P0_27 //MEMORY FOR DISK #define BD_PAGE_SIZE 4096 #define BD_TOTAL_SIZE 4096 * 35 //must be multiple of 4096 #define BD_PAGE_ADDRESS 0x5d000 //380928 //NVSTORAGE KEYS //#define NV_IDENTIFIER 1