Board specific configuration for the PineTime. More...
Board specific configuration for the PineTime.
Definition in file board.h.
#include "cpu.h"
#include "board_common.h"
#include "mtd.h"
Go to the source code of this file.
GPIO pin defines | |
#define | LCD_RS GPIO_PIN(0, 18) |
#define | LCD_DET GPIO_PIN(0, 9) |
#define | LCD_CS GPIO_PIN(0, 25) |
#define | LCD_RESET GPIO_PIN(0, 26) |
#define | LCD_BACKLIGHT_LOW GPIO_PIN(0, 14) |
#define | LCD_BACKLIGHT_MID GPIO_PIN(0, 22) |
#define | LCD_BACKLIGHT_HIGH GPIO_PIN(0, 23) |
#define | BUTTON0_ENABLE GPIO_PIN(0, 13) |
#define | BUTTON0 GPIO_PIN(0, 15) |
#define | VIBRATOR GPIO_PIN(0, 16) |
#define | VCC33 GPIO_PIN(0, 24) |
#define | POWER_PRESENCE GPIO_PIN(0, 19) |
#define | CHARGING_ACTIVE GPIO_PIN(0, 12) |
#define | BATTERY_ADC NRF52_AIN7 |
LCD configuration | |
#define | ILI9341_PARAM_SPI SPI_DEV(0) |
#define | ILI9341_PARAM_SPI_CLK SPI_CLK_10MHZ |
#define | ILI9341_PARAM_SPI_MODE SPI_MODE_3 |
#define | ILI9341_PARAM_CS LCD_CS |
#define | ILI9341_PARAM_DCX LCD_RS |
#define | ILI9341_PARAM_RST LCD_RESET |
#define | ILI9341_PARAM_RGB 1 |
#define | ILI9341_PARAM_INVERTED 1 |
#define | ILI9341_PARAM_NUM_LINES 240U |
PineTime NOR flash hardware configuration | |
#define | PINETIME_NOR_PAGE_SIZE (256) |
#define | PINETIME_NOR_PAGES_PER_SECTOR (16) |
#define | PINETIME_NOR_SECTOR_COUNT (2048) |
#define | PINETIME_NOR_FLAGS (SPI_NOR_F_SECT_4K | SPI_NOR_F_SECT_32K) |
#define | PINETIME_NOR_SPI_DEV SPI_DEV(0) |
#define | PINETIME_NOR_SPI_CLK SPI_CLK_10MHZ |
#define | PINETIME_NOR_SPI_CS GPIO_PIN(0, 5) |
#define | PINETIME_NOR_SPI_MODE SPI_MODE_3 |
MTD configuration | |
#define | MTD_0 mtd0 |
mtd_dev_t * | mtd0 |