Commit Graph

22 Commits

Author SHA1 Message Date
08085c465d Verify the main app mostly sleeps
This validates that the main watch app spends at
least 99.5% of it's time sleeping in the first 10
seconds.
2020-06-14 18:12:36 +00:00
0ee9d39e81 Clean up test code
Separate/consolidate board initialization code, and a few functions
that are shared across tests. Update the Makefile accordingly.

Resolves #18
2020-06-12 18:57:09 -07:00
573504547c Add button tests
This is implemented by connecting the DTR pin of the serial device to the BTN_UP pin of the watch.

Also, make it possible to flash different applications with the Makefile.

Resolves #4
2020-06-11 16:39:51 +00:00
cdf0f4ffc9 Update such that tests pass for v1.2
This includes minor updates for the th different MCU variant, and bugfixes.

Resolves #7
2020-06-03 04:51:19 +00:00
0f0cb73fa5 Fix building for BOARD=watch (Fixes #8), enable in CI 2020-05-16 22:04:56 +00:00
f455ce9113 Fix RTC synchronization after sleep, add many more tests
There were two issues with the tests

1. Incorrect print formats causing incorrect output.

2. The RTC driver was not waiting for the shadow registers to be
updated after sleeping, their reset values to be read.
2020-05-14 09:47:38 -07:00
e5057da888 Add a variety of automated tests 2020-04-20 07:32:04 -07:00
cd121ffc19 Add missing Init.c file 2020-04-19 08:59:30 -07:00
9e72091479 Add missing SystemInit.cpp 2020-04-19 08:57:08 -07:00
c32b3dc632 Fix the vector table for STM32L412RB 2020-04-18 12:19:28 -07:00
acba841bf1 Add Makefile support for more output binaries, add clock test 2020-04-18 12:18:32 -07:00
8bc0220838 More JLink stuff 2020-04-13 19:54:44 -07:00
e58a366c14 Add missing JLink flashing bits 2020-04-13 19:50:24 -07:00
5b0dbb9743 Add lightweight printf support
For now, printf() isn't hooked up to anything, but snprintf() can be
used to create a string to pass off to usart.tx_blocking().
2020-04-13 19:47:33 -07:00
5942d98e21 Add UsartDriver (TX-only) 2020-04-11 11:08:50 -07:00
99317eb99b Hack in support for other boards/microcontrollers, add GpioDriver
There's definitely plenty of cleanup work to be done (see:
"ifdefs").
2020-04-11 11:07:57 -07:00
385402e7aa Add/update STM32 headers 2020-04-11 10:41:39 -07:00
08bf863e79 Move .gdbinit to the firmware directory 2019-12-17 22:19:39 -08:00
463c3afd3d Add Stopwatch application
It can be started, stopped, and cleared. It also continues to run if
you leave the screen.
2019-12-17 22:19:39 -08:00
00c9910872 Swap button assignments
They were flipped in the watch v1.1 design, since the are now on the
opposite side.
2019-12-17 22:19:39 -08:00
ae837eef12 refactor tree, add ecad, mcad 2019-08-28 23:23:48 -07:00
d5ddd76bef Full color support, rework the directory structure 2019-08-05 22:15:40 -07:00