From 6c7337fb1ed7c4afa033daba4991a620b4a5f758 Mon Sep 17 00:00:00 2001 From: Daniel Thompson Date: Wed, 17 Jun 2020 21:35:19 +0100 Subject: dsd6, nitrogen: Make them build again Fixes: 9eb9b74 ("Update preprocess to use $(BOARD)"). Signed-off-by: Daniel Thompson diff --git a/.gitignore b/.gitignore index 51c75a5..17474de 100644 --- a/.gitignore +++ b/.gitignore @@ -5,4 +5,4 @@ __pycache__ cscope.out docs/build attic/ -wasp/boards/pinetime/watch.py +wasp/boards/*/watch.py diff --git a/wasp/boards/dsd6/watch.py b/wasp/boards/dsd6/watch.py deleted file mode 100644 index 0148d95..0000000 --- a/wasp/boards/dsd6/watch.py +++ /dev/null @@ -1,8 +0,0 @@ -# SPDX-License-Identifier: LGPL-3.0-or-later -# Copyright (C) 2020 Daniel Thompson - -from machine import RTCounter as RTC - -# Start measuring time (and feeding the watchdog) -rtc = RTC(1, mode=RTC.PERIODIC) -rtc.start() diff --git a/wasp/boards/dsd6/watch.py.in b/wasp/boards/dsd6/watch.py.in new file mode 100644 index 0000000..0148d95 --- /dev/null +++ b/wasp/boards/dsd6/watch.py.in @@ -0,0 +1,8 @@ +# SPDX-License-Identifier: LGPL-3.0-or-later +# Copyright (C) 2020 Daniel Thompson + +from machine import RTCounter as RTC + +# Start measuring time (and feeding the watchdog) +rtc = RTC(1, mode=RTC.PERIODIC) +rtc.start() diff --git a/wasp/boards/nitrogen/watch.py b/wasp/boards/nitrogen/watch.py deleted file mode 100644 index 0148d95..0000000 --- a/wasp/boards/nitrogen/watch.py +++ /dev/null @@ -1,8 +0,0 @@ -# SPDX-License-Identifier: LGPL-3.0-or-later -# Copyright (C) 2020 Daniel Thompson - -from machine import RTCounter as RTC - -# Start measuring time (and feeding the watchdog) -rtc = RTC(1, mode=RTC.PERIODIC) -rtc.start() diff --git a/wasp/boards/nitrogen/watch.py.in b/wasp/boards/nitrogen/watch.py.in new file mode 100644 index 0000000..0148d95 --- /dev/null +++ b/wasp/boards/nitrogen/watch.py.in @@ -0,0 +1,8 @@ +# SPDX-License-Identifier: LGPL-3.0-or-later +# Copyright (C) 2020 Daniel Thompson + +from machine import RTCounter as RTC + +# Start measuring time (and feeding the watchdog) +rtc = RTC(1, mode=RTC.PERIODIC) +rtc.start() -- cgit v0.10.2