File tree Expand file tree Collapse file tree 1 file changed +7
-8
lines changed
targets/TARGET_NORDIC/TARGET_NRF5x/TARGET_NRF52 Expand file tree Collapse file tree 1 file changed +7
-8
lines changed Original file line number Diff line number Diff line change 46
46
47
47
#if NRFX_CHECK (NRFX_SPIM_ENABLED )
48
48
#include "nrfx_spim.h"
49
+ #elif NRFX_CHECK (NRFX_SPI_ENABLED )
50
+ #include "nrfx_spi.h"
51
+ #endif
49
52
50
53
#if 1
51
54
#define DEBUG_PRINTF (...) printf(__VA_ARGS__)
52
55
#else
53
56
#define DEBUG_PRINTF (...)
54
57
#endif
55
58
59
+ #if NRFX_CHECK (NRFX_SPIM_ENABLED )
60
+
56
61
/* Pre-allocate instances and share them globally. */
57
62
static const nrfx_spim_t nordic_nrf5_spim_instance [4 ] = {
58
63
NRFX_SPIM_INSTANCE (0 ),
@@ -871,15 +876,9 @@ void spi_abort_asynch(spi_t *obj)
871
876
}
872
877
873
878
#endif // DEVICE_SPI_ASYNCH
879
+ #endif //NRFX_SPIM_ENABLED
874
880
875
- #elif NRFX_CHECK (NRFX_SPI_ENABLED )
876
- #include "nrfx_spi.h"
877
-
878
- #if 0
879
- #define DEBUG_PRINTF (...) printf(__VA_ARGS__)
880
- #else
881
- #define DEBUG_PRINTF (...)
882
- #endif
881
+ #if NRFX_CHECK (NRFX_SPI_ENABLED )
883
882
884
883
/* Pre-allocate instances and share them globally. */
885
884
static const nrfx_spi_t nordic_nrf5_spi_instance [3 ] = {
You can’t perform that action at this time.
0 commit comments