Skip to content

Commit 3ac3aae

Browse files
committed
Fix problems caused by insensitive case of file names in Windows.
1 parent f4c16ec commit 3ac3aae

File tree

9 files changed

+10
-485
lines changed

9 files changed

+10
-485
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
#include "fpioa.h"
77
#include "stdint.h"
88
#include "stdbool.h"
9-
#include "spi.h"
9+
#include "./kendryte-standalone-sdk/lib/drivers/include/spi.h"
1010
#include "SPI_hal.h"
1111
#include "sysctl.h"
1212

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
#include <stdint.h>
55
#include "gpio.h"
66
#include "fpioa.h"
7-
#include "spi.h"
7+
#include "./kendryte-standalone-sdk/lib/drivers/include/spi.h"
88

99
#ifdef __cplusplus
1010
extern "C" {
Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,17 @@
11
#include "SPI.h"
22

3-
SPIClass spi0(SPI0);
43

54
void setup()
65
{
7-
spi0.setFrequency(10000000);
8-
spi0.begin(27, 26, 28, 29);
9-
spi0.transfer(1);
10-
spi0.transfer(2);
11-
spi0.transfer(3);
12-
spi0.transfer(0xEE);
6+
SPI.setFrequency(10000000);
7+
SPI.begin(27, 26, 28, 29);
8+
SPI.transfer(1);
9+
SPI.transfer(2);
10+
SPI.transfer(3);
11+
SPI.transfer(0xEE);
1312
}
1413

1514
void loop()
1615
{
1716

1817
}
19-
20-

0 commit comments

Comments
 (0)