File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
targets/TARGET_NORDIC/TARGET_NRF5x/TARGET_NRF52 Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 43
43
#include "PortNames.h"
44
44
#include "PeripheralNames.h"
45
45
#include "PinNames.h"
46
- #if NRFX_SPIM_ENABLED == 1 || defined(DEVICE_SPIM )
46
+ #if NRFX_SPIM_ENABLED || defined(DEVICE_SPIM )
47
47
#include "nrfx_spim.h"
48
- #elif NRFX_SPI_ENABLED == 1 || defined(DEVICE_SPI )
48
+ #elif NRFX_SPI_ENABLED || defined(DEVICE_SPI )
49
49
#include "nrfx_spi.h"
50
50
#endif
51
51
#include "nrf_twi.h"
@@ -94,9 +94,9 @@ struct serial_s {
94
94
struct spi_s {
95
95
int instance ;
96
96
PinName cs ;
97
- #if NRFX_SPIM_ENABLED == 1 || defined(DEVICE_SPIM )
97
+ #if NRFX_SPIM_ENABLED || defined(DEVICE_SPIM )
98
98
nrfx_spim_config_t config ;
99
- #elif NRFX_SPI_ENABLED == 1 || defined(DEVICE_SPI )
99
+ #elif NRFX_SPI_ENABLED || defined(DEVICE_SPI )
100
100
nrfx_spi_config_t config ;
101
101
#endif
102
102
bool update ;
You can’t perform that action at this time.
0 commit comments