summaryrefslogtreecommitdiff
path: root/ucoo/hal/spi
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/spi
parent2b6317815bf86c80047c5d3b42602f81b8c21d01 (diff)
Use new rcc_periph_clock_{enable,disable}
Diffstat (limited to 'ucoo/hal/spi')
-rw-r--r--ucoo/hal/spi/test/test_spi.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/ucoo/hal/spi/test/test_spi.cc b/ucoo/hal/spi/test/test_spi.cc
index 188ff40..f115c83 100644
--- a/ucoo/hal/spi/test/test_spi.cc
+++ b/ucoo/hal/spi/test/test_spi.cc
@@ -40,8 +40,8 @@ main (int argc, const char **argv)
ucoo::Stream &ts = ucoo::test_stream ();
// Use connection to LIS302DL device on discovery board revision MB997B.
// Revision MB997C uses a different device.
- rcc_peripheral_enable_clock (&RCC_AHB1ENR, RCC_AHB1ENR_IOPAEN
- | RCC_AHB1ENR_IOPEEN);
+ rcc_periph_clock_enable (RCC_GPIOA);
+ rcc_periph_clock_enable (RCC_GPIOE);
ucoo::Gpio ss (GPIOE, 3);
ss.set ();
ss.output ();