![](/media/cache/group/default_image.jpg.50x50_q85.jpg)
init
Dependencies: aconno_I2C Lis2dh12 WatchdogTimer
board.h@51:9078e6928412, 2019-05-23 (annotated)
- Committer:
- pathfindr
- Date:
- Thu May 23 11:39:28 2019 +0000
- Revision:
- 51:9078e6928412
- Parent:
- 36:8e359069192b
- Child:
- 52:bd7678eade77
init
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
pathfindr | 0:94b743e06998 | 1 | #include "mbed.h" |
pathfindr | 0:94b743e06998 | 2 | |
pathfindr | 6:388d3c7efdd9 | 3 | //PINS |
pathfindr | 6:388d3c7efdd9 | 4 | #define PN_SWDIO SWDIO |
pathfindr | 6:388d3c7efdd9 | 5 | #define PN_SWCLK SWCLK |
pathfindr | 6:388d3c7efdd9 | 6 | #define PN_RESET P0_21 |
pathfindr | 6:388d3c7efdd9 | 7 | #define PN_IO1 P0_20 |
pathfindr | 6:388d3c7efdd9 | 8 | #define PN_IO2 P0_18 |
pathfindr | 6:388d3c7efdd9 | 9 | #define PN_IO3 P0_2 |
pathfindr | 6:388d3c7efdd9 | 10 | #define PN_IO4 P0_3 |
pathfindr | 6:388d3c7efdd9 | 11 | #define PN_IN_BUTTON P0_13 |
pathfindr | 6:388d3c7efdd9 | 12 | #define PN_LED P0_11 |
pathfindr | 6:388d3c7efdd9 | 13 | #define PN_GSM_WAKEUP_IN P0_14 |
pathfindr | 6:388d3c7efdd9 | 14 | #define PN_GSM_WAKE_DISABLE P0_16 |
pathfindr | 6:388d3c7efdd9 | 15 | #define PN_GSM_STATUS P0_15 |
pathfindr | 6:388d3c7efdd9 | 16 | #define PN_GSM_RESET P0_25 |
pathfindr | 6:388d3c7efdd9 | 17 | #define PN_GSM_PWR_KEY P0_28 |
pathfindr | 6:388d3c7efdd9 | 18 | #define PN_SPI_MOSI P0_23 |
pathfindr | 6:388d3c7efdd9 | 19 | #define PN_SPI_MISO P0_19 |
pathfindr | 6:388d3c7efdd9 | 20 | #define PN_SPI_CLK P0_24 |
pathfindr | 6:388d3c7efdd9 | 21 | #define PN_SPI_CS0 P0_22 |
pathfindr | 6:388d3c7efdd9 | 22 | #define PN_SPI_CS1 P0_17 |
pathfindr | 6:388d3c7efdd9 | 23 | #define PN_UART_RX P0_8 |
pathfindr | 6:388d3c7efdd9 | 24 | #define PN_UART_TX P0_6 |
pathfindr | 6:388d3c7efdd9 | 25 | #define PN_UART_CTS P0_30 |
pathfindr | 6:388d3c7efdd9 | 26 | #define PN_UART_RTS P0_31 |
pathfindr | 6:388d3c7efdd9 | 27 | #define PN_OUT_BUZZER P0_7 |
pathfindr | 6:388d3c7efdd9 | 28 | #define PN_ACC_INT1 P0_5 |
pathfindr | 6:388d3c7efdd9 | 29 | #define PN_ACC_INT2 P0_4 |
pathfindr | 6:388d3c7efdd9 | 30 | #define PN_VREG_EN P0_29 |
pathfindr | 6:388d3c7efdd9 | 31 | #define PN_I2C_SDA P0_26 |
pathfindr | 6:388d3c7efdd9 | 32 | #define PN_I2C_SCL P0_27 |
pathfindr | 6:388d3c7efdd9 | 33 | |
pathfindr | 14:9a54b1b65bc8 | 34 | //MEMORY FOR DISK |
pathfindr | 34:4493c9f6d707 | 35 | //#define BD_PAGE_SIZE 4096 |
pathfindr | 34:4493c9f6d707 | 36 | //#define BD_TOTAL_SIZE 4096 * 35 //must be multiple of 4096 |
pathfindr | 34:4493c9f6d707 | 37 | //#define BD_PAGE_ADDRESS 0x5d000 //380928 |
pathfindr | 34:4493c9f6d707 | 38 | |
pathfindr | 34:4493c9f6d707 | 39 | #define USERDATA_START 0x7E000 // - 8k for user data |
pathfindr | 51:9078e6928412 | 40 | //#define APPDATA_START 0x40000 // - 4k for app data - DEVELOPMENT |
pathfindr | 51:9078e6928412 | 41 | #define APPDATA_START 0x3D000 // - 4k for app data - PRODUCTION |