Skip to content
This repository was archived by the owner on Aug 2, 2020. It is now read-only.

Programming

Vince v. Oosten edited this page Dec 28, 2016 · 7 revisions

Programming

Here are general ideas I have about programming the keyboard

Ideas

Language: rust

For as much safety as possible also, I like the language

Functional

Though purely functional will be impossible, I would like to have most functions be as pure as possible

Debugging

Send debug output to pc as keyboard presses
or use serial / remote debugging

Regarding built-in processor features

Hardware destribed in the reference manual

Wathdog (3.3.11)

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

Interrupt controller (3.2.2)

Possibly use each keypress as interrupt. Works best if everything is functional.

System mode controller (3.3.2)

set power mode or suspend device entirely use as much as possible to save power

Resources

to build upon

for debugging and testing

to use

  • Geal/nom might not work due to nostd so I might need to fork and remove all std stuff (if any)

porting keyboard driver/interface

teensy 3 manual

Clone this wiki locally