summaryrefslogtreecommitdiff
path: root/software/mpu/board-F405/board.h
diff options
context:
space:
mode:
Diffstat (limited to 'software/mpu/board-F405/board.h')
-rw-r--r--software/mpu/board-F405/board.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/software/mpu/board-F405/board.h b/software/mpu/board-F405/board.h
index 60b6f3b..f1e2251 100644
--- a/software/mpu/board-F405/board.h
+++ b/software/mpu/board-F405/board.h
@@ -232,9 +232,9 @@
* GPIOA setup:
*
* PA0 - PIN0 (input pullup).
- * PA0 - PIN1 (input pullup).
- * PA0 - PIN2 (input pullup).
- * PA0 - PIN3 (input pullup).
+ * PA1 - PIN1 (input pullup).
+ * PA2 - UART2_TX (alternate 7).
+ * PA3 - UART2_RX (alternate 7).
* PA4 - PIN4 (input pullup).
* PA5 - PIN5 (input pullup).
* PA6 - PIN6 (input pullup).
@@ -250,8 +250,8 @@
*/
#define VAL_GPIOA_MODER (PIN_MODE_INPUT(GPIOA_PIN0) | \
PIN_MODE_INPUT(GPIOA_PIN1) | \
- PIN_MODE_INPUT(GPIOA_PIN2) | \
- PIN_MODE_INPUT(GPIOA_PIN3) | \
+ PIN_MODE_ALTERNATE(GPIOA_PIN2) | \
+ PIN_MODE_ALTERNATE(GPIOA_PIN3) | \
PIN_MODE_INPUT(GPIOA_PIN4) | \
PIN_MODE_INPUT(GPIOA_PIN5) | \
PIN_MODE_INPUT(GPIOA_PIN6) | \
@@ -329,8 +329,8 @@
PIN_ODR_HIGH(GPIOA_PIN15))
#define VAL_GPIOA_AFRL (PIN_AFIO_AF(GPIOA_PIN0, 0) | \
PIN_AFIO_AF(GPIOA_PIN1, 0) | \
- PIN_AFIO_AF(GPIOA_PIN2, 0) | \
- PIN_AFIO_AF(GPIOA_PIN3, 0) | \
+ PIN_AFIO_AF(GPIOA_PIN2, 7) | \
+ PIN_AFIO_AF(GPIOA_PIN3, 7) | \
PIN_AFIO_AF(GPIOA_PIN4, 0) | \
PIN_AFIO_AF(GPIOA_PIN5, 0) | \
PIN_AFIO_AF(GPIOA_PIN6, 0) | \