diff options
| author | Glenn Ruben Bakke | 2019-09-26 22:25:16 +0200 |
|---|---|---|
| committer | Glenn Ruben Bakke | 2019-10-10 21:35:27 +0200 |
| commit | 82fe6b0526ad8c10e923174a45063f93f312d681 (patch) | |
| tree | 6c95108489edc9f85443a978a668c492c6b5ce71 /ports/nrf/mphalport.c | |
| parent | 01a3110e363bbde22b3f26191ac2cececf1afdbc (diff) | |
nrf: Add nrf9160 base support.
This patch add basic building blocks for nrf9P60.
It also includes a secure bootloader which forwards all
possible peripherals that are user selectable to become
non-secure. After configuring Flash, RAM and peripherals
the secure bootloader will jump to the non-secure domain
where MicroPython is placed.
The minimum size of a secure boot has to be a flash
block of 32Kb, hence why the linker scripts are
offsetting the main application this much.
The RAM offset is set to 128K, to allow for later
integration of Nordic Semiconductor's BSD socket
library which reserves the range 0x20010000 - 0x2001FFFF.
Diffstat (limited to 'ports/nrf/mphalport.c')
| -rw-r--r-- | ports/nrf/mphalport.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/ports/nrf/mphalport.c b/ports/nrf/mphalport.c index b915c23e4..57d61b041 100644 --- a/ports/nrf/mphalport.c +++ b/ports/nrf/mphalport.c @@ -98,7 +98,6 @@ void mp_hal_delay_us(mp_uint_t us) if (us == 0) { return; } - register uint32_t delay __ASM ("r0") = us; __ASM volatile ( #ifdef NRF51 @@ -118,7 +117,7 @@ void mp_hal_delay_us(mp_uint_t us) " NOP\n" " NOP\n" " NOP\n" -#ifdef NRF52 +#if defined(NRF52) || defined(NRF9160_XXAA) " NOP\n" " NOP\n" " NOP\n" |
