summaryrefslogtreecommitdiff
path: root/ucoo/hal/gpio/test/test_gpio.cc
diff options
context:
space:
mode:
authorNicolas Schodet2015-04-29 10:58:15 +0200
committerNicolas Schodet2019-10-07 00:44:50 +0200
commit0ad5dc5b09f749e8d3b1db737d7283ab58412c96 (patch)
tree7c5be2c27af249e5dbaba7ae4c448a9345126f76 /ucoo/hal/gpio/test/test_gpio.cc
parent2b6317815bf86c80047c5d3b42602f81b8c21d01 (diff)
Use new rcc_periph_clock_{enable,disable}
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);