36#define LED_PORT PORT->Group[PA]
38#define LED0_PIN GPIO_PIN(PA, 22)
39#define LED0_MASK (1 << 22)
40#define LED0_NAME "LED(Red)"
42#define LED0_OFF (LED_PORT.OUTSET.reg = LED0_MASK)
43#define LED0_ON (LED_PORT.OUTCLR.reg = LED0_MASK)
44#define LED0_TOGGLE (LED_PORT.OUTTGL.reg = LED0_MASK)
46#define LED1_PIN GPIO_PIN(PA, 19)
47#define LED1_MASK (1 << 19)
48#define LED1_NAME "LED(Green)"
50#define LED1_OFF (LED_PORT.OUTSET.reg = LED1_MASK)
51#define LED1_ON (LED_PORT.OUTCLR.reg = LED1_MASK)
52#define LED1_TOGGLE (LED_PORT.OUTTGL.reg = LED1_MASK)
54#define LED2_PIN GPIO_PIN(PA, 23)
55#define LED2_MASK (1 << 23)
56#define LED2_NAME "LED(Blue)"
58#define LED2_OFF (LED_PORT.OUTSET.reg = LED2_MASK)
59#define LED2_ON (LED_PORT.OUTCLR.reg = LED2_MASK)
60#define LED2_TOGGLE (LED_PORT.OUTTGL.reg = LED2_MASK)
67#define SERPENTE_NOR_PAGE_SIZE (256)
68#define SERPENTE_NOR_PAGES_PER_SECTOR (16)
69#define SERPENTE_NOR_SECTOR_COUNT (1024)
70#define SERPENTE_NOR_FLAGS (SPI_NOR_F_SECT_4K | SPI_NOR_F_SECT_32K)
71#define SERPENTE_NOR_SPI_DEV SPI_DEV(0)
72#define SERPENTE_NOR_SPI_CLK SPI_CLK_10MHZ
73#define SERPENTE_NOR_SPI_CS GPIO_PIN(PA, 15)
74#define SERPENTE_NOR_SPI_MODE SPI_MODE_3
81#define MTD_0 mtd_dev_get(0)
88#define INTERNAL_PERIPHERAL_VID (0x239A)
89#define INTERNAL_PERIPHERAL_PID (0x0057)
Configuration of CPU peripherals for the Serpente board.
Low-level GPIO peripheral driver interface definitions.