diff options
| author | Daniel Thompson <daniel@redfelineninja.org.uk> | 2020-05-14 21:29:35 (GMT) |
|---|---|---|
| committer | Daniel Thompson <daniel@redfelineninja.org.uk> | 2020-05-14 21:29:35 (GMT) |
| commit | b8efcd30537f04269738e6969376129f4ed88315 (patch) | |
| tree | cf0f4f2d12603ca85bc5f0b664bcd4883b85f436 /docs | |
| parent | f07fb6d22a7124f945a29c2895cec87a69e08b37 (diff) | |
wasp: Even more docstrings
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/wasp.rst | 53 |
1 files changed, 20 insertions, 33 deletions
diff --git a/docs/wasp.rst b/docs/wasp.rst index 87dd301..36be6d6 100644 --- a/docs/wasp.rst +++ b/docs/wasp.rst @@ -6,35 +6,32 @@ WASP Reference Manual .. contents:: :local: -System management ------------------ +System +------ .. automodule:: wasp :members: - :undoc-members: -Applications ------------- +.. automodule:: draw565 + :members: -.. automodule:: apps.clock +.. automodule:: icons :members: :undoc-members: -.. automodule:: apps.flashlight +.. automodule:: fonts.clock :members: :undoc-members: -.. automodule:: apps.launcher +.. automodule:: fonts.sans24 :members: - :undoc-members: -.. automodule:: apps.pager +.. automodule:: logo :members: :undoc-members: -.. automodule:: apps.testapp +.. automodule:: widgets :members: - :undoc-members: Device drivers -------------- @@ -57,28 +54,26 @@ Device drivers .. automodule:: drivers.vibrator :members: -Libraries ---------- - -.. automodule:: draw565 - :members: +Applications +------------ -.. automodule:: icons +.. automodule:: apps.clock :members: :undoc-members: -.. automodule:: fonts.clock +.. automodule:: apps.flashlight :members: :undoc-members: -.. automodule:: fonts.sans24 +.. automodule:: apps.launcher :members: + :undoc-members: -.. automodule:: logo +.. automodule:: apps.pager :members: :undoc-members: -.. automodule:: widgets +.. automodule:: apps.testapp :members: :undoc-members: @@ -139,8 +134,8 @@ active (during splash screen or early UART recovery mode, during an update). It can be consumed by the application to prevent the current time being lost during an update. -Watchdog --------- +Watchdog protocol +~~~~~~~~~~~~~~~~~ Form-factor devices such as smart watches and fitness trackers do not usually have any hardware mechanism to allow the user to force a failed device into @@ -156,9 +151,6 @@ The software responsibilities to implement this are split between the bootloader and the application, although the application responsibilities are intentionally minimal. -Bootloader -~~~~~~~~~~ - The bootloader implements an over-the-air recovery mode, as well as handling normal boot, where it's role is to display the splash screen. @@ -183,14 +175,9 @@ From this list #1 and #2 are needed to ensure robust WDT handling whilst #3 and # 4 ensure the user can switch back to application from the device itself if they ever accidentally trigger entry to recovery mode. -Application -~~~~~~~~~~~ - The application's role is to carefully pet the watchdog so that it will trigger automatically if the hardware button is held down for five -seconds. - -Key points for robustness: +seconds. Key points for application robustness include: 1. Unlike a normal watchdog we can be fairly reckless about where in the code we pet the dog. For example petting the dog from a timer interrupt |
