summaryrefslogtreecommitdiff
path: root/ucoo/hal/gpio/test/test_gpio.cc
diff options
context:
space:
mode:
Diffstat (limited to 'ucoo/hal/gpio/test/test_gpio.cc')
-rw-r--r--ucoo/hal/gpio/test/test_gpio.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/ucoo/hal/gpio/test/test_gpio.cc b/ucoo/hal/gpio/test/test_gpio.cc
index 8d70814..a51017c 100644
--- a/ucoo/hal/gpio/test/test_gpio.cc
+++ b/ucoo/hal/gpio/test/test_gpio.cc
@@ -56,8 +56,8 @@ int
main (int argc, const char **argv)
{
ucoo::arch_init (argc, argv);
- rcc_peripheral_enable_clock (&RCC_AHB1ENR, RCC_AHB1ENR_IOPBEN
- | RCC_AHB1ENR_IOPDEN);
+ rcc_periph_clock_enable (RCC_GPIOB);
+ rcc_periph_clock_enable (RCC_GPIOD);
// For this test, shorten B6 & B7 to have loopback.
gpio_mode_setup (GPIOB, GPIO_MODE_INPUT, GPIO_PUPD_PULLUP, GPIO7);
ucoo::Gpio loop_out (GPIOB, 6);