diff options
| author | Dan Halbert <halbert@halwitz.org> | 2020-02-20 22:27:16 -0500 |
|---|---|---|
| committer | Dan Halbert <halbert@halwitz.org> | 2020-02-20 22:27:16 -0500 |
| commit | 23d6a3dc1fe2ece41642f602343650fce5be83c7 (patch) | |
| tree | 801979949b826c0a2c439563f0efe692831a25d1 /ports/nrf/supervisor | |
| parent | 1caf6bd8d3924b2f7861cd8b0af0d16a608bb736 (diff) | |
| parent | 675930083de102ab73af6f6a586614793e467f5f (diff) | |
merge from upstream
Diffstat (limited to 'ports/nrf/supervisor')
| -rw-r--r-- | ports/nrf/supervisor/port.c | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/ports/nrf/supervisor/port.c b/ports/nrf/supervisor/port.c index d240e3be0..cbe0cec54 100644 --- a/ports/nrf/supervisor/port.c +++ b/ports/nrf/supervisor/port.c @@ -93,9 +93,6 @@ safe_mode_t port_init(void) { rtc_init(); #endif - // Will do usb_init() if chip supports USB. - board_init(); - return NO_SAFE_MODE; } @@ -148,6 +145,14 @@ void reset_cpu(void) { NVIC_SystemReset(); } +uint32_t *port_heap_get_bottom(void) { + return port_stack_get_limit(); +} + +uint32_t *port_heap_get_top(void) { + return port_stack_get_top(); +} + uint32_t *port_stack_get_limit(void) { return &_ebss; } |
