This repository was archived by the owner on Aug 2, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Programming
Vince v. Oosten edited this page Dec 28, 2016
·
7 revisions
Here are general ideas I have about programming the keyboard
For as much safety as possible also, I like the language
Though purely functional will be impossible, I would like to have most functions be as pure as possible
Send debug output to pc as keyboard presses
or use serial / remote debugging
Hardware destribed in the reference manual
In minimal-embedded-rust the panic! is implemented as literally loop {}.
I found out that the chip has a watchdog and I thought that I might use it to reset the device on a panic
Possibly use each keypress as interrupt. Works best if everything is functional.
set power mode or suspend device entirely use as much as possible to save power
- cbiffle/minimal-embedded-rust
- thiagopnts/rustico
- hackndev/zinc
- japaric/cortex-m-template
- japaric/xargo
- ve3wwg/teensy3_qemu
- snipsco/dinghy
- thiagopnts/rustico though x86, it uses qemu, so might be useful to look into
- japaric/m
- rust-embedded/fixedvec-rs
- japaric/alloc-cortex-m
- alexchandel/keystroke-rs
- alexchandel/keystroke-rs check the pull-requests
- dcuddeback/libusb-rs requires libusb, so that's a maybe
- robigalia but it most likely won't compile out-of-the-way for ARM and it's likely to be too big
- Geal/nom might not work due to nostd so I might need to fork and remove all std stuff (if any)
- reference manual: https://www.pjrc.com/teensy/K20P64M72SF1RM.pdf
- electrical spec: https://www.pjrc.com/teensy/K20P64M72SF1.pdf