summaryrefslogtreecommitdiff
path: root/ucoo
diff options
context:
space:
mode:
Diffstat (limited to 'ucoo')
-rw-r--r--ucoo/hal/i2c/test/test_i2c.cc1
-rw-r--r--ucoo/hal/spi/test/test_spi.cc3
2 files changed, 3 insertions, 1 deletions
diff --git a/ucoo/hal/i2c/test/test_i2c.cc b/ucoo/hal/i2c/test/test_i2c.cc
index 7fc7772..9f619c2 100644
--- a/ucoo/hal/i2c/test/test_i2c.cc
+++ b/ucoo/hal/i2c/test/test_i2c.cc
@@ -195,6 +195,7 @@ main (int argc, const char **argv)
ucoo::I2cHost i2c1 (host, 0);
ucoo::I2cHost i2c2 (host, 1);
#elif defined (TARGET_stm32)
+ // Connect I2C1 to I2C3 for the test.
// I2C1: B6: SCL, B9: SDA
// I2C3: A8: SCL, C9: SDA
rcc_peripheral_enable_clock (&RCC_AHB1ENR, RCC_AHB1ENR_IOPAEN);
diff --git a/ucoo/hal/spi/test/test_spi.cc b/ucoo/hal/spi/test/test_spi.cc
index fa26abc..27ca659 100644
--- a/ucoo/hal/spi/test/test_spi.cc
+++ b/ucoo/hal/spi/test/test_spi.cc
@@ -38,7 +38,8 @@ main (int argc, const char **argv)
{
ucoo::arch_init (argc, argv);
ucoo::Stream &ts = ucoo::test_stream ();
- // Use connection to LIS302DL device on discovery board.
+ // 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);
ucoo::Gpio ss (GPIOE, 3);