init

Dependencies:   aconno_I2C Lis2dh12 WatchdogTimer

board.h

Committer:
pathfindr
Date:
2019-01-13
Revision:
34:4493c9f6d707
Parent:
14:9a54b1b65bc8
Child:
36:8e359069192b

File content as of revision 34:4493c9f6d707:

#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

#define USERDATA_START          0x7E000 // - 8k for user data
#define APPDATA_START           0x3D000 // - 4k for app data

//NVSTORAGE KEYS
//#define NV_IDENTIFIER          1