diff options
Diffstat (limited to 'wirish/boards/stm32f401c_discovery/include/board')
-rw-r--r-- | wirish/boards/stm32f401c_discovery/include/board/board.h | 23 |
1 files changed, 12 insertions, 11 deletions
diff --git a/wirish/boards/stm32f401c_discovery/include/board/board.h b/wirish/boards/stm32f401c_discovery/include/board/board.h index b727d1a..f10ef0a 100644 --- a/wirish/boards/stm32f401c_discovery/include/board/board.h +++ b/wirish/boards/stm32f401c_discovery/include/board/board.h @@ -33,25 +33,23 @@ #ifndef _BOARD_STM32F401_DISCOVERY_H_ #define _BOARD_STM32F401_DISCOVERY_H_ -/* 72 MHz -> 72 cycles per microsecond. */ -#define CYCLES_PER_MICROSECOND 72 +/* 84 MHz -> 84 cycles per microsecond. */ +#define CYCLES_PER_MICROSECOND 84 /* Pin number for the built-in button. */ #define BOARD_BUTTON_PIN 0 /* Pin number for the built-in LED. */ -#define BOARD_LED_PIN 1 +#define BOARD_LED_PIN 63 /* Number of USARTs/UARTs whose pins are broken out to headers. */ #define BOARD_NR_USARTS 3 /* USART pin numbers. */ -#define BOARD_USART1_TX_PIN 7 -#define BOARD_USART1_RX_PIN 8 -#define BOARD_USART2_TX_PIN 1 -#define BOARD_USART2_RX_PIN 0 -#define BOARD_USART3_TX_PIN 29 -#define BOARD_USART3_RX_PIN 30 +#define BOARD_USART1_TX_PIN 9 +#define BOARD_USART1_RX_PIN 10 +#define BOARD_USART2_TX_PIN 2 +#define BOARD_USART2_RX_PIN 3 /* Number of SPI ports broken out to headers. */ #define BOARD_NR_SPI 2 @@ -69,7 +67,7 @@ /* Total number of GPIO pins that are broken out to headers and * intended for use. This includes pins like the LED, button, and * debug port (JTAG/SWD) pins. */ -#define BOARD_NR_GPIO_PINS 5 +#define BOARD_NR_GPIO_PINS 64 /* Number of pins capable of PWM output. */ #define BOARD_NR_PWM_PINS 5 @@ -98,7 +96,10 @@ * enum. These are optional, but recommended. They make it easier to * write code using low-level GPIO functionality. */ enum { - PA0, PD12, PD13, PD14, PD15 + PA0, PA1, PA2, PA3, PA4, PA5, PA6, PA7, PA8, PA9, PA10, PA11, PA12, PA13, PA14, PA15, + PB0, PB1, PB2, PB3, PB4, PB5, PB6, PB7, PB8, PB9, PB10, PB11, PB12, PB13, PB14, PB15, + PC0, PC1, PC2, PC3, PC4, PC5, PC6, PC7, PC8, PC9, PC10, PC11, PC12, PC13, PC14, PC15, + PD0, PD1, PD2, PD3, PD4, PD5, PD6, PD7, PD8, PD9, PD10, PD11, PD12, PD13, PD14, PD15, }; #endif |