Skip to content

Commit 370fc72

Browse files
committed
nrf: support disabling SPIM3
SPIM3 is faster than all other SPI blocks, and is capable of generating a 32 MHz clock. However, it cannot be used at the same time as the BLE radio without dedicating an additional 8 kB of RAM to it. Therefore, some boards may want to disable this. Support pre-defining NRFX_SPIM3_ENABLED on the command line to disable it on some bords. Signed-off-by: Sean Cross <[email protected]>
1 parent 79c055f commit 370fc72

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

ports/nrf/nrfx_config.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,12 +41,14 @@
4141
#define NRFX_SPIM1_ENABLED 1
4242
#endif
4343
#define NRFX_SPIM2_ENABLED 1
44+
#ifndef NRFX_SPIM3_ENABLED
4445
#if defined(NRF52840_XXAA) || defined(NRF52833_XXAA)
4546
#define NRFX_SPIM_EXTENDED_ENABLED 1
4647
#define NRFX_SPIM3_ENABLED 1
4748
#elif CIRCUITPY_NRF_NUM_I2C == 2
4849
#define NRFX_SPIM3_ENABLED 0
4950
#endif
51+
#endif
5052

5153

5254
#define NRFX_SPIM_DEFAULT_CONFIG_IRQ_PRIORITY 7

0 commit comments

Comments
 (0)