Crates.io | aevum |
lib.rs | aevum |
version | 0.1.1 |
source | src |
created_at | 2020-09-15 21:36:44.034872 |
updated_at | 2020-09-15 22:15:16.235665 |
description | A CLI utility to calculate timer register values for STM32 microcontrollers. |
homepage | |
repository | https://github.com/dylanwishner/aevum |
max_upload_size | |
id | 289234 |
size | 12,615 |
A CLI utility to calculate timer register values for STM32 microcontrollers. Given the desired length of the timer, aevum will calculate and spit out the prescaler and auto-reload register values.
Run aevum with ./aevum --help
for more information.
When using aevum, you must always provide the desired period of time to run the timer. By default the units are in seconds. The program assumes that the prescaler and auto-reload registers are both 16-bit.
-h, --help
: Display help information-c, --clock
: Specify the timer clock speed-u, --microseconds
: Sets the desired time period to microseconds-m, --milliseconds
: Sets the desired time period to milliseconds-s, --seconds
: Sets the desired time period to seconds (default)-r, --results
: Sets the number of results to calculate before exitingSets a search for a 10 second timer with a 16MHz timer clock
aevum 10 -c 16000000
Sets a search for 20 milliseconds with a 8MHz timer clock
aevum 20 -m -c 8000000
Sets a search for 10 microseconds with the default clock value and only calculates the first 2 matches
aevum 10 -u -r 2
Precompiled binaries are not yet available. You can compile the project from source if your machine has Rust.
$ git clone https://github.com/dylanwishner/aevum.git
$ cd aevum
$ cargo build