diff options
author | NIIBE Yutaka <gniibe@fsij.org> | 2013-06-06 10:56:17 +0900 |
---|---|---|
committer | NIIBE Yutaka <gniibe@fsij.org> | 2013-06-06 10:56:17 +0900 |
commit | 60e0fbd189ec02c7817e7db649cb41f70d445525 (patch) | |
tree | c664a03502738f787d8229c2181be6f89b92338b /board/board-fst-01.h | |
parent | 5540f9b08a2b997aaa4bfbe3aa8bbaa571945eaa (diff) |
update board-*.h
Diffstat (limited to 'board/board-fst-01.h')
-rw-r--r-- | board/board-fst-01.h | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/board/board-fst-01.h b/board/board-fst-01.h index fae1945..e29173e 100644 --- a/board/board-fst-01.h +++ b/board/board-fst-01.h @@ -5,10 +5,37 @@ #define GPIO_USB_SET_TO_ENABLE 10 #define GPIO_LED_SET_TO_EMIT 0 +/* + * Port A setup. + * PA0 - input with pull-up (TIM2_CH1): AN0 for NeuG + * PA1 - input with pull-down (TIM2_CH2) + * PA2 - input with pull-up (TIM2_CH3) connected to CIR module + * PA3 - input with pull-up: external pin available to user + * PA4 - Push pull output (SPI1_NSS) + * PA5 - Alternate Push pull output (SPI1_SCK) + * PA6 - Alternate Push pull output (SPI1_MISO) + * PA7 - Alternate Push pull output (SPI1_MOSI) + * PA10 - Push pull output (USB 1:ON 0:OFF) + * PA11 - Push Pull output 10MHz 0 default (until USB enabled) (USBDM) + * PA12 - Push Pull output 10MHz 0 default (until USB enabled) (USBDP) + * ------------------------ Default + * PA8 - input with pull-up. + * PA9 - input with pull-up. + * PA13 - input with pull-up. + * PA14 - input with pull-up. + * PA15 - input with pull-up. + */ #define VAL_GPIO_ODR 0xFFFFE7FD #define VAL_GPIO_CRL 0xBBB38888 /* PA7...PA0 */ #define VAL_GPIO_CRH 0x88811388 /* PA15...PA8 */ +/* + * Port B setup. + * PB0 - Push pull output (LED 1:ON 0:OFF) + * PB1 - input with pull-up: AN9 for NeuG + * ------------------------ Default + * PBx - input with pull-up. + */ #define VAL_GPIO_LED_ODR 0xFFFFFFFF #define VAL_GPIO_LED_CRL 0x88888883 /* PA7...PA0 */ #define VAL_GPIO_LED_CRH 0x88888888 /* PA15...PA8 */ |