alvarop opened a new pull request #2322:
URL: https://github.com/apache/mynewt-core/pull/2322
Various devices in the NRF52 family have different number of SPI/TWI
peripherals.
The NRF52810 only has TWI0 and SPI0 where the NRF52811 also has SPI1.
Unfortunately, NRF52810 and NRF52811 don't have the same IRQn names (and
values) for TWI and SPI peripherals.
The peripheral/irq table is as follows:
```
SPI0 SPI1 TWI0 TWI1
NRF52810 IRQ4 N/A IRQ3 N/A
NRF52811 IRQ4 IRQ3 IRQ3 N/A
NRF52832 IRQ3 IRQ4 IRQ3 IRQ4
NRF52840 IRQ3 IRQ4 IRQ3 IRQ4
```
This change updates the nrf52xxx syscfg.yml's peripheral restrictions as
well as hal_spi.c and i2c_nrf52_twim.c
The IRQn names are as follows:
nrf52.h/nrf52840.h
```
SPIM0_SPIS0_TWIM0_TWIS0_SPI0_TWI0_IRQn= 3, /*!< 3
SPIM0_SPIS0_TWIM0_TWIS0_SPI0_TWI0 */
SPIM1_SPIS1_TWIM1_TWIS1_SPI1_TWI1_IRQn= 4, /*!< 4
SPIM1_SPIS1_TWIM1_TWIS1_SPI1_TWI1
```
nrf52811.h
```
TWIM0_TWIS0_TWI0_SPIM1_SPIS1_SPI1_IRQn= 3, /*!< 3
TWIM0_TWIS0_TWI0_SPIM1_SPIS1_SPI1 */
SPIM0_SPIS0_SPI0_IRQn = 4, /*!< 4 SPIM0_SPIS0_SPI0
```
nrf52810.h
```
TWIM0_TWIS0_TWI0_IRQn = 3, /*!< 3 TWIM0_TWIS0_TWI0
*/
SPIM0_SPIS0_SPI0_IRQn = 4, /*!< 4 SPIM0_SPIS0_SPI0
```
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]