File tree Expand file tree Collapse file tree 4 files changed +8
-8
lines changed
targets/TARGET_STM/TARGET_STM32F4/TARGET_STM32F429xI/TARGET_NUCLEO_F429ZI Expand file tree Collapse file tree 4 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -68,7 +68,7 @@ void SPI::_do_construct()
68
68
_write_fill = SPI_FILL_CHAR;
69
69
70
70
// Need backwards compatibility with HALs not providing API
71
- #ifdef SPI_COUNT
71
+ #ifdef DEVICE_SPI_COUNT
72
72
SPIName name = spi_get_peripheral_name (_mosi, _miso, _sclk);
73
73
#else
74
74
SPIName name = GlobalSPI;
Original file line number Diff line number Diff line change 27
27
#include " platform/SingletonPtr.h"
28
28
#include " platform/NonCopyable.h"
29
29
30
- #if defined MBED_CONF_DRIVERS_SPI_COUNT_MAX && SPI_COUNT > MBED_CONF_DRIVERS_SPI_COUNT_MAX
30
+ #if defined MBED_CONF_DRIVERS_SPI_COUNT_MAX && DEVICE_SPI_COUNT > MBED_CONF_DRIVERS_SPI_COUNT_MAX
31
31
#define SPI_PERIPHERALS_USED MBED_CONF_DRIVERS_SPI_COUNT_MAX
32
- #elif defined SPI_COUNT
33
- #define SPI_PERIPHERALS_USED SPI_COUNT
32
+ #elif defined DEVICE_SPI_COUNT
33
+ #define SPI_PERIPHERALS_USED DEVICE_SPI_COUNT
34
34
#else
35
- /* Backwards compatibility with HALs not providing SPI_COUNT */
35
+ /* Backwards compatibility with HALs not providing DEVICE_SPI_COUNT */
36
36
#define SPI_PERIPHERALS_USED 1
37
37
#endif
38
38
@@ -337,7 +337,7 @@ class SPI : private NonCopyable<SPI> {
337
337
338
338
#if !defined(DOXYGEN_ONLY)
339
339
protected:
340
- #ifdef SPI_COUNT
340
+ #ifdef DEVICE_SPI_COUNT
341
341
// HAL must have defined this as a global enum
342
342
typedef ::SPIName SPIName;
343
343
#else
Original file line number Diff line number Diff line change @@ -62,7 +62,7 @@ extern "C" {
62
62
* @{
63
63
*/
64
64
65
- #ifdef SPI_COUNT
65
+ #ifdef DEVICE_SPI_COUNT
66
66
/**
67
67
* Returns a variant of the SPIName enum uniquely identifying a SPI peripheral of the device.
68
68
* @param[in] mosi The pin to use for MOSI
Original file line number Diff line number Diff line change @@ -57,7 +57,7 @@ typedef enum {
57
57
UART_8 = (int )UART8_BASE
58
58
} UARTName ;
59
59
60
- #define SPI_COUNT 6
60
+ #define DEVICE_SPI_COUNT 6
61
61
typedef enum {
62
62
SPI_1 = (int )SPI1_BASE ,
63
63
SPI_2 = (int )SPI2_BASE ,
You can’t perform that action at this time.
0 commit comments