Skip to content

Commit 5c721b4

Browse files
committed
Remove unwanted #ifdef form nRF5 targets spi_api implementations.
Reduce size of no-init section to precisely fit to size of vector in RAM.
1 parent 5c08a01 commit 5c721b4

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

targets/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF52832/device/TOOLCHAIN_ARM_STD/nRF52832.sct

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,10 @@ LR_IROM1 0x1C000 0x0064000 {
1818
*(InRoot$$Sections)
1919
.ANY (+RO)
2020
}
21-
RW_IRAM0 0x20002EF8 UNINIT 0x00000100 { ;no init section
21+
RW_IRAM0 0x20002EF8 UNINIT 0x000000D8 { ;no init section
2222
*(noinit)
2323
}
24-
RW_IRAM1 0x20002FF8 0x0000D008 {
24+
RW_IRAM1 0x20002FD0 0x0000D030 {
2525
.ANY (+RW +ZI)
2626
}
2727
}

targets/TARGET_NORDIC/TARGET_NRF5/spi_api.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -258,9 +258,7 @@ void spi_init(spi_t *obj,
258258
spi_info_t *p_spi_info = &m_spi_info[i];
259259
if (!p_spi_info->initialized) {
260260

261-
#ifndef HARDWIRE_SPI_TWI_INTERRUPT
262261
NVIC_SetVector(spi_hanlder_desc[i].IRQn, spi_hanlder_desc[i].vector);
263-
#endif
264262

265263
p_spi_info->sck_pin = (uint8_t)sclk;
266264
p_spi_info->mosi_pin = (mosi != NC) ?

0 commit comments

Comments
 (0)