diff options
author | NIIBE Yutaka <gniibe@fsij.org> | 2015-06-29 15:58:21 +0900 |
---|---|---|
committer | NIIBE Yutaka <gniibe@fsij.org> | 2015-06-29 15:58:21 +0900 |
commit | 97b4471cee86b4d7efc23d272db80fb89c7c8ab2 (patch) | |
tree | d066750a7976c25ae9e9c3f20ba8c7a91d5e7c6d /board/board-olimex-stm32-h103.h | |
parent | 15ae2d8b3242c74c736f7d723125d0b6de367805 (diff) |
Make it clear LED is mandatory.
Diffstat (limited to 'board/board-olimex-stm32-h103.h')
-rw-r--r-- | board/board-olimex-stm32-h103.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/board/board-olimex-stm32-h103.h b/board/board-olimex-stm32-h103.h index 07edfa5..4ad6bfc 100644 --- a/board/board-olimex-stm32-h103.h +++ b/board/board-olimex-stm32-h103.h @@ -4,8 +4,11 @@ #define STM32_PLLMUL_VALUE 9 #define STM32_HSECLK 8000000 -#define GPIO_USB_CLEAR_TO_ENABLE 11 +#define GPIO_LED_BASE GPIOC_BASE #define GPIO_LED_CLEAR_TO_EMIT 12 +#define GPIO_USB_BASE GPIOC_BASE +#define GPIO_USB_CLEAR_TO_ENABLE 11 +#undef GPIO_OTHER_BASE /* * Port C setup. @@ -18,12 +21,9 @@ * ------------------------ Default * PCx - input with pull-up */ -#define VAL_GPIO_ODR 0xFFFFFFFF -#define VAL_GPIO_CRL 0x44888888 /* PC7...PC0 */ -#define VAL_GPIO_CRH 0x88837888 /* PC15...PC8 */ - -#define GPIO_USB_BASE GPIOC_BASE -#define GPIO_LED_BASE GPIOC_BASE +#define VAL_GPIO_LED_ODR 0xFFFFFFFF +#define VAL_GPIO_LED_CRL 0x44888888 /* PC7...PC0 */ +#define VAL_GPIO_LED_CRH 0x88837888 /* PC15...PC8 */ #define RCC_ENR_IOP_EN RCC_APB2ENR_IOPCEN #define RCC_RSTR_IOP_RST RCC_APB2RSTR_IOPCRST |