Skip to content

Commit 2d89b44

Browse files
committed
spifs: Add provision to specify SPI port
Signed-off-by: Ajay Bhargav <[email protected]>
1 parent 3c18959 commit 2d89b44

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

include/spifs.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,13 @@ extern "C" {
2323

2424
/**
2525
* Enable SPI Flash and mount LFS filesystem
26+
* @param port [in] SPI Port to use
2627
* @param gpio_cs [in] GPIO number connected to SPI chip select
2728
* @param speed_hz [in] SPI Speed in Hz (max 10MHz)
2829
* @param mode [in] SPI mode
29-
* @param byte_order [in] SPI byte order, see
3030
* @return 0 on success, negative value on failure
3131
*/
32-
int spifs_enable(int gpio_cs, unsigned long speed_hz, int mode, int byte_order);
32+
int spifs_enable(int port, int gpio_cs, unsigned long speed_hz, int mode);
3333

3434
/**
3535
* Disable SPI Flash and unmount LFS filesystem

0 commit comments

Comments
 (0)