summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolas Schodet2015-04-29 10:37:03 +0200
committerNicolas Schodet2019-10-07 00:44:50 +0200
commit7a91c75e1cccf6b32b950100c3eb1a90402443d3 (patch)
tree8f8b1a0fcb05491132c1ee72da582b70cf2d3ed2
parent574480980dcffbfa7cd6dbe71e88253eb4c9feba (diff)
Add comment to run test
-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);