summaryrefslogtreecommitdiff
path: root/ucoo/hal/spi/test/test_spi.cc
diff options
context:
space:
mode:
Diffstat (limited to 'ucoo/hal/spi/test/test_spi.cc')
-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 ();