diff options
author | Christian Pointner <equinox@mur.at> | 2013-12-05 00:34:47 +0000 |
---|---|---|
committer | Christian Pointner <equinox@mur.at> | 2013-12-05 00:34:47 +0000 |
commit | 605377db3fb1644ac1bdb5ae7f39bfe25d06d764 (patch) | |
tree | 510c9b3be82e95ebfd3bcb6f6cc154c94f4a8842 /software/mpu/board-F405 | |
parent | added preliminary flash command (diff) |
added IHU subsystem (only 405 for now)
git-svn-id: https://svn.spreadspace.org/mur.sat@856 7de4ea59-55d0-425e-a1af-a3118ea81d4c
Diffstat (limited to 'software/mpu/board-F405')
-rw-r--r-- | software/mpu/board-F405/board.h | 14 |
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) | \ |