aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal/lib/peripherals/flash/hal_jesd216_flash.h
diff options
context:
space:
mode:
authorGiovanni Di Sirio <gdisirio@gmail.com>2016-06-07 10:12:08 +0000
committerGiovanni Di Sirio <gdisirio@gmail.com>2016-06-07 10:12:08 +0000
commitd151ada9c34470d74729e9d00467a40970e5beae (patch)
treefdf6bffd7db41cb395931e22c8c9a95e245c47d7 /os/hal/lib/peripherals/flash/hal_jesd216_flash.h
parent2bc539dc98841f5fd04f77475e5687913c11e88f (diff)
downloadChibiOS-d151ada9c34470d74729e9d00467a40970e5beae.tar.gz
ChibiOS-d151ada9c34470d74729e9d00467a40970e5beae.tar.bz2
ChibiOS-d151ada9c34470d74729e9d00467a40970e5beae.zip
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@9599 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/hal/lib/peripherals/flash/hal_jesd216_flash.h')
-rw-r--r--os/hal/lib/peripherals/flash/hal_jesd216_flash.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/os/hal/lib/peripherals/flash/hal_jesd216_flash.h b/os/hal/lib/peripherals/flash/hal_jesd216_flash.h
index bb2214e81..1cff3cc32 100644
--- a/os/hal/lib/peripherals/flash/hal_jesd216_flash.h
+++ b/os/hal/lib/peripherals/flash/hal_jesd216_flash.h
@@ -78,7 +78,7 @@
/**
* @brief Physical transport interface.
*/
-#if !defined(JESD216_USE_SPI) || defined(__DOXYGEN__)
+#if !defined(JESD216_BUS_MODE) || defined(__DOXYGEN__)
#define JESD216_BUS_MODE JESD216_BUS_MODE_QSPI4L
#endif
@@ -107,7 +107,7 @@
#endif
#if (JESD216_BUS_MODE == JESD216_BUS_MODE_SPI) && \
- (JESD216_SHARED_SPI == TRUE) && \
+ (JESD216_SHARED_BUS == TRUE) && \
(SPI_USE_MUTUAL_EXCLUSION == FALSE)
#error "JESD216_SHARED_SPI requires SPI_USE_MUTUAL_EXCLUSION"
#endif
@@ -209,7 +209,7 @@ extern "C" {
size_t n, uint8_t *p);
#endif /* JESD216_BUS_MODE != JESD216_BUS_MODE_SPI */
#if JESD216_SHARED_BUS == TRUE
- void jesd216_bus_acquire(BUSDriver *busp);
+ void jesd216_bus_acquire(BUSDriver *busp, const BUSConfig *config);
void jesd216_bus_release(BUSDriver *busp);
#endif
#ifdef __cplusplus