1
0
Fork 0
Commit Graph

45 Commits (dd7f0d2772f4c425468bf9940cb9904fc052b703)

Author SHA1 Message Date
Daniel Thompson 477d2e07db boards: Fix builds for nRF52840 devices
The PNVRAM feature is currently only available on NRF52832 board and is
breaking the builds for the nRF52840 devices. Fix this the obvious way.

Fixes: d8d7d76 ("boards: Add pseudo-NVRAM support")
Signed-off-by: Daniel Thompson <daniel@redfelineninja.org.uk>
2020-08-15 18:14:32 +01:00
Daniel Thompson efa4942659 boards: Add a no button mode
Generally having no button is a bad idea because it makes it hard to
manage the watchdog. However if we haven't yet figured out how the
button works it is still useful to have a bootloader.

Signed-off-by: Daniel Thompson <daniel@redfelineninja.org.uk>
2020-08-09 18:18:09 +01:00
Daniel Thompson 89ba9a874f p8: Update bootloader logo
wasp-os now has an official logo. Let's use it.

Signed-off-by: Daniel Thompson <daniel@redfelineninja.org.uk>
2020-07-27 22:08:08 +01:00
SteveAmor 9148e76c41 Adds P8 smart watch
Signed-off-by: Steve Amor <steveamor@users.noreply.github.com>
2020-06-17 18:49:51 +01:00
Daniel Thompson 71f37dd5b2 Extend the button blackout slightly
If the button blackout time is too short then we can reset before
we remove the splash screen... which means we can't hold down the
button when we transition to the payload... which, for wasp-os,
makes it really hard to trigger safe mode.

Signed-off-by: Daniel Thompson <daniel@redfelineninja.org.uk>
2020-06-11 20:38:53 +01:00
Daniel Thompson 21bcf675a4 Ergonomic changes for PineTime
This involves a longer double reset delay aligned the button blackout
period. The result is that the <- Start will not appear until the button
is active. Finally we shorten the debounce window to make the button
press appear more repsonsive.
2020-05-27 21:41:10 +01:00
Daniel Thompson d8d7d76b17 boards: Add pseudo-NVRAM support
Currently the pseudo-NVRAM is used only to measure the time spent in the
bootloader (which keeps the watch time stable when we reset the device).

At this stage the legacy mechanisms to pass messages via the SRAM have
not been modified.
2020-05-09 14:17:42 +01:00
Daniel Thompson 7786926950 board: Fix build on boards without ST7789_SPI_DISPLAY 2020-01-31 19:19:33 +00:00
Daniel Thompson b89f9d43b9 boards: Improve the boot button behaviour 2020-01-28 21:14:49 +00:00
Daniel Thompson 0125b3e49b boards: Add an SPI and ST7789 driver
This code is somewhat hacky and it (currently) hard coded for PineTime
but it's brings the demo together nicely... so let's capture progress
here!
2020-01-28 21:14:49 +00:00
Daniel Thompson 0d74a6efca boards: Make the watchdog more aggressive
Let's not tune for debug by default... the point of the bootloader is that
it is for use when the SWD pins are not easily accessed.
2020-01-23 22:20:32 +00:00
Daniel Thompson 20f5764f64 boards: Extend the watchdog to cover the bootloader too
If the bootloader fails for any reason we'd like to be able to restart
it! This is approach is a bit of a cheat... we are feeding the dog from
a periodic interrupt and there are plenty of ways to the system to fail
that leave periodic interrupts still ticking. However since we test the
user button and reboot from the ISR then this is OK... either the SysTick
stops and we reboot or the SysTick is running and the reboot switch will
still work.
2020-01-23 22:20:06 +00:00
Daniel Thompson fb03ef1dda boards: Remove the pin sense setting
This is redundant (and therefore slightly misleading) we do not "sense"
the pins from the bootloader. We simply poll their status.
2020-01-23 22:20:06 +00:00
Daniel Thompson cfe6b69534 boards/main: Enable the WDT and related entry modes 2020-01-23 22:20:04 +00:00
Daniel Thompson 4d0e439229 boards: Alter the flashing rates
Now it is slow for idle, fast for active...
2020-01-23 22:17:50 +00:00
Daniel Thompson 1d2dfa955d boards: Add support for active high buttons
The button on the PineTime isn't a simple pull low design. Instead
the switch is connected across two GPIO pins *and* has external
pull downs on both pins. This circuit requires special handling since
it must be active high and we need to configure the other pin as an
output for the pin to work correctly.
2020-01-21 20:44:23 +00:00
fanoush 282fd12bba Add support for single button and no LED boards
From c4579ff251/micropython/Adafruit_nRF52_Bootloader-dsd6.diff

[daniel@redfelineninja.org.uk: Seperate from raw board support patch]
2020-01-21 20:43:04 +00:00
hathach 9556f2ace8 follow up to PR #77 2019-09-25 12:17:46 +07:00
Kreg Hanning 8906b2a8bd Add check for button direction 2019-09-09 08:59:31 -04:00
hathach 2c13fd53f4 support 10 neopixel of cplayground 2019-06-17 22:51:38 +07:00
hathach bcbd3fa089 enhance board management 2019-04-24 12:03:26 +07:00
hathach d4cc11e132
change in file license term from BSD to MIT 2019-03-27 13:38:36 +07:00
hathach d9b275c321
increase buffer depth to fix OTA issue with nrfConnect on iOS
- also add optional debug helper
- increase led conn cycle when ble connected for easier recognition
2019-02-15 12:12:11 +07:00
hathach 7279bd9b32 added metro nrf52840 revA
clean up makefile
2019-01-31 18:01:41 +07:00
hathach 95cbe3b129
fix PWM psel[1] is not reset to 0xffffffff when teardown
also move neopixel to pwm1
2019-01-10 15:55:03 +07:00
hathach 9ece5f64a9
clean up makefile 2019-01-04 07:00:45 +07:00
hathach a316c8bd67 reduce delay to 50us 2018-12-21 15:04:48 +07:00
hathach 25f6d395bc fix neopixel didn't turn off after dfu cdc 2018-12-21 14:48:04 +07:00
hathach 19c3721151
clean up 2018-12-19 23:20:35 +07:00
hathach c69ae13423 finished testing led pattern 2018-12-19 18:29:24 +07:00
hathach 87a0124cd9 add product link to feather nrf52840 2018-12-19 17:21:10 +07:00
hathach 64f2f671f6 fixed the incosnsitent led pattern by using systick to call led_tick() 2018-12-19 17:08:23 +07:00
Scott Shawcroft 57345c9928
Fix Particle and refine build names 2018-12-04 16:03:33 -08:00
Scott Shawcroft 1b35dbf643
Add build script and hook it into Travis 2018-12-04 15:18:49 -08:00
Scott Shawcroft 2ece2daf90
Rework LED flashing and add Particle's boards 2018-12-04 13:45:55 -08:00
hathach f30199f503
change neopixel color 2018-11-24 01:27:37 +07:00
hathach 5e0195ddb4
update tinyusb, correct neopixel for usb enumeration
added binary for feather nrf52840
2018-11-23 15:54:02 +07:00
hathach 12d68f592c
add neopixel support 2018-11-23 15:00:59 +07:00
hathach 4f48b8b51a
rename led blink fast name 2018-11-23 11:46:21 +07:00
hathach 94e23a928c feed wdt in bootloader if enabled. Since it is impossible to disable wdt 2018-11-19 17:01:45 +07:00
hathach 3925ef5872 add stop LF clock in board_init()
just in case we jump from application without reset
2018-11-08 20:17:36 +07:00
hathach 3de5afc067 Use RC as LF source for all board compatible 2018-10-30 15:24:57 +07:00
hathach 633885aa51 fix OTA blinky pattern 2018-08-22 16:00:42 +07:00
hathach 6feea4e069 fix issue with dfu startup on nrf52832, change to adafruit-nrfutil
clean up dfu startup
2018-08-21 14:14:23 +07:00
hathach 85ad6e6b65 add boards.c , remove msc_uf2.h lots of clean up and refactor 2018-08-14 15:56:24 +07:00