Skip to content

Commit 7e62fc3

Browse files
committed
Merge branch 'nordic_sdk_integration' of https://github.com/ARMmbed/mbed-nordic into nordic_sdk_integration
2 parents 0249ee1 + e5a2bfc commit 7e62fc3

File tree

8 files changed

+1499
-110
lines changed

8 files changed

+1499
-110
lines changed

hal/targets.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1375,7 +1375,7 @@
13751375
"supported_form_factors": ["ARDUINO"],
13761376
"inherits": ["MCU_NRF51_32K"],
13771377
"progen": {"target": "nrf51-dk"},
1378-
"device_has": ["ANALOGIN", "ERROR_PATTERN", "I2C", "I2C_ASYNCH", "INTERRUPTIN", "PORTIN", "PORTINOUT", "PORTOUT", "PWMOUT", "RTC", "SERIAL", "SERIAL_ASYNCH", "SLEEP", "SPI", "SPI_ASYNCH"]
1378+
"device_has": ["ANALOGIN", "ERROR_PATTERN", "I2C", "I2C_ASYNCH", "INTERRUPTIN", "PORTIN", "PORTINOUT", "PORTOUT", "PWMOUT", "RTC", "SERIAL", "SERIAL_ASYNCH", "SLEEP", "SPI", "SPI_ASYNCH", "SPISLAVE"]
13791379
},
13801380
"NRF51_DK_BOOT": {
13811381
"supported_form_factors": ["ARDUINO"],
@@ -1773,6 +1773,6 @@
17731773
"NRF52_PAN_62",
17741774
"NRF52_PAN_63"
17751775
],
1776-
"device_has": ["ANALOGIN", "ERROR_PATTERN", "I2C", "I2C_ASYNCH", "INTERRUPTIN", "PORTIN", "PORTINOUT", "PORTOUT", "RTC", "SERIAL", "SERIAL_ASYNCH", "SLEEP", "SPI", "SPI_ASYNCH"]
1776+
"device_has": ["ANALOGIN", "ERROR_PATTERN", "I2C", "I2C_ASYNCH", "INTERRUPTIN", "PORTIN", "PORTINOUT", "PORTOUT", "RTC", "SERIAL", "SERIAL_ASYNCH", "SLEEP", "SPI", "SPI_ASYNCH", "SPISLAVE"]
17771777
}
17781778
}

hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF51822/sdk/nrf_drv_config.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@
228228
#define PWM_COUNT (PWM0_ENABLED + PWM1_ENABLED + PWM2_ENABLED)
229229

230230
/* SPI */
231-
#define SPI0_ENABLED 1
231+
#define SPI0_ENABLED 0
232232

233233
#if (SPI0_ENABLED == 1)
234234
#define SPI0_USE_EASY_DMA 0
@@ -281,7 +281,7 @@
281281
#define SPIS0_INSTANCE_INDEX 0
282282
#endif
283283

284-
#define SPIS1_ENABLED 0
284+
#define SPIS1_ENABLED 1
285285

286286
#if (SPIS1_ENABLED == 1)
287287
#define SPIS1_CONFIG_SCK_PIN 2

hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF52832/sdk/nrf_drv_config.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@
254254
#define SPI1_INSTANCE_INDEX (SPI0_ENABLED)
255255
#endif
256256

257-
#define SPI2_ENABLED 0
257+
#define SPI2_ENABLED 1
258258

259259
#if (SPI2_ENABLED == 1)
260260
#define SPI2_USE_EASY_DMA 0
@@ -270,7 +270,7 @@
270270
#define SPI_COUNT (SPI0_ENABLED + SPI1_ENABLED + SPI2_ENABLED)
271271

272272
/* SPIS */
273-
#define SPIS0_ENABLED 0
273+
#define SPIS0_ENABLED 1
274274

275275
#if (SPIS0_ENABLED == 1)
276276
#define SPIS0_CONFIG_SCK_PIN 2
@@ -281,7 +281,7 @@
281281
#define SPIS0_INSTANCE_INDEX 0
282282
#endif
283283

284-
#define SPIS1_ENABLED 0
284+
#define SPIS1_ENABLED 1
285285

286286
#if (SPIS1_ENABLED == 1)
287287
#define SPIS1_CONFIG_SCK_PIN 2
@@ -292,7 +292,7 @@
292292
#define SPIS1_INSTANCE_INDEX SPIS0_ENABLED
293293
#endif
294294

295-
#define SPIS2_ENABLED 0
295+
#define SPIS2_ENABLED 1
296296

297297
#if (SPIS2_ENABLED == 1)
298298
#define SPIS2_CONFIG_SCK_PIN 2

hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/objects.h

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,6 @@
2121
#include "PeripheralNames.h"
2222
#include "PinNames.h"
2323

24-
#include "nrf_drv_spi.h"
25-
2624
#ifdef __cplusplus
2725
extern "C" {
2826
#endif
@@ -31,9 +29,7 @@ struct serial_s {
3129
};
3230

3331
struct spi_s {
34-
nrf_drv_spi_t *p_spi;
35-
volatile bool busy;
36-
bool async_mode;
32+
uint8_t spi_idx;
3733
};
3834

3935
struct port_s {

0 commit comments

Comments
 (0)