Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 2c3ab2e

Browse files
committedMay 9, 2023
Use lower rate SPI clock
1 parent 711e281 commit 2c3ab2e

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed
 

‎libraries/NDP/examples/SensorTest/SensorTest.ino

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ void setup() {
5959

6060
do {
6161
if (retry_sensor_init) {
62-
Serial.print("Init attempt ");
62+
Serial.print("Reinit attempt ");
6363
Serial.println(retry_sensor_init);
6464
}
6565
// 1st read will place the sensor in SPI mode, 2nd read is real read
@@ -74,7 +74,7 @@ void setup() {
7474
// soft reset
7575
s = NDP.sensorBMI270Write(0x7e, 0xb6);
7676
CHECK_STATUS(s);
77-
delay(200);
77+
delay(20);
7878

7979
// back to SPI mode after software reset
8080
s = NDP.sensorBMI270Read(0x0, 1, sensor_data);

‎libraries/syntiant_ilib/src/syntiant_tiny_cspi.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
#define SYNTIANT_NDP120_SPI_OP 0
4040
#define SYNTIANT_NDP120_MCU_OP 1
4141

42-
#define MSPI_CLK_DIV 2
42+
#define MSPI_CLK_DIV 6
4343
#define MSSB_OE_USED 7
4444

4545
static int _cspi_read(struct syntiant_ndp120_tiny_device_s *ndp, int ssb, int num_bytes, uint8_t *data, int end_packet);

0 commit comments

Comments
 (0)
Please sign in to comment.