diff options
author | Marti Bolivar <mbolivar@leaflabs.com> | 2011-01-27 23:41:03 -0500 |
---|---|---|
committer | Marti Bolivar <mbolivar@leaflabs.com> | 2011-01-27 23:41:03 -0500 |
commit | c5b9bfa29f36981ff1f3ab14a10f6041aa7652c6 (patch) | |
tree | ef980955ff96ec93569d297373cb0816cc6e1c26 /libmaple/gpio.c | |
parent | 867c530940d79919da590d948f3339541fb4e491 (diff) | |
download | librambutan-c5b9bfa29f36981ff1f3ab14a10f6041aa7652c6.tar.gz librambutan-c5b9bfa29f36981ff1f3ab14a10f6041aa7652c6.zip |
Ported libmaple to the new mini prototype
Diffstat (limited to 'libmaple/gpio.c')
-rw-r--r-- | libmaple/gpio.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libmaple/gpio.c b/libmaple/gpio.c index 3940837..71e5230 100644 --- a/libmaple/gpio.c +++ b/libmaple/gpio.c @@ -34,8 +34,9 @@ void gpio_init(void) { rcc_clk_enable(RCC_GPIOA); rcc_clk_enable(RCC_GPIOB); rcc_clk_enable(RCC_GPIOC); +#if NR_GPIO_PORTS >= 4 /* Maple, but not Maple Mini */ rcc_clk_enable(RCC_GPIOD); -#if NR_GPIO_PORTS >= 7 +#elif NR_GPIO_PORTS >= 7 /* Maple Native (high density only) */ rcc_clk_enable(RCC_GPIOE); rcc_clk_enable(RCC_GPIOF); rcc_clk_enable(RCC_GPIOG); |