Skip to content

Commit 39c79ce

Browse files
committed
include: Fix missing c++ linkage header in spifs.h
Signed-off-by: Ajay Bhargav <[email protected]>
1 parent ecb4c52 commit 39c79ce

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

include/hw/spi.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@
77
#define INCLUDE_HW_SPI_H_
88

99
/**
10-
* Max supported Hardware SPI speed (default)
10+
* Max supported Hardware SPI speed (default 10MHz)
1111
*/
12-
#define SPI_MAX_SPEED 10000000U
12+
#define SPI_MAX_SPEED 32000000U
1313

1414
/**
1515
* SPI Modes to configure clock polarity and clock phase.

include/spifs.h

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@ enum sfstat_e {
1717
SF_STAT_MOUNTED, /**< SPI Flash enabled and filesystem is mounted successfully */
1818
};
1919

20+
#ifdef __cplusplus
21+
extern "C" {
22+
#endif
23+
2024
/**
2125
* Enable SPI Flash and mount LFS filesystem
2226
* @param gpio_cs [in] GPIO number connected to SPI chip select
@@ -39,4 +43,8 @@ int spifs_disable(void);
3943
*/
4044
int spifs_getstatus(void);
4145

46+
#ifdef __cplusplus
47+
}
48+
#endif
49+
4250
#endif /* INC_SPIFS_H_ */

0 commit comments

Comments
 (0)