Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions ports/nordic/background.c
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,9 @@ void port_background_tick(void) {
MP_WEAK void board_background_task(void) {
}

MP_WEAK void board_wdt_feed(void) {
}

void port_background_task(void) {
board_background_task();
}
3 changes: 3 additions & 0 deletions ports/nordic/background.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,6 @@
#pragma once

void board_background_task(void);

// Feed a watchdog that wasn't armed by CircuitPython i.e. a boards custom bootloader
void board_wdt_feed(void);
10 changes: 10 additions & 0 deletions ports/nordic/board.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
// This file is part of the CircuitPython project: https://circuitpython.org
//
// SPDX-FileCopyrightText: Copyright (c) 2026 Tim Cocks for Adafruit Industries
//
// SPDX-License-Identifier: MIT

#pragma once

// Called from port_init() before any peripheral is initialized.
void board_early_init(void);
Loading
Loading