This is just some STM32F4DISCOVERY demo application written in Rust.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
Paul van Tilburg f2adba108a
Reorder the task attributes for clearity
3 years ago
.cargo Remove unused example stuff from the Cargo config 4 years ago
examples Remove the deny(warnings) attributes 3 years ago
src Reorder the task attributes for clearity 3 years ago
.gitignore Initial import into Git 4 years ago
.gitlab-ci.yml Improve the README a bit more 4 years ago
Cargo.toml Port example to stm32f4xx-hal version 0.6 3 years ago
LICENSE.md Add license and readme files 4 years ago
README.md Remove trailing whitespace 3 years ago
memory.x Initial import into Git 4 years ago
openocd.cfg Initial import into Git 4 years ago
openocd.gdb Initial import into Git 4 years ago

README.md

stm32f4disc-demo

This is just some STM32F4DISCOVERY demo application using Rust. It has a simple serial command-interface for controlling (via GPIO) what the LED ring does: cycle clock-wise, counter clock-wise, or follow the accelerometer. The accelerometer is accessed via SPI.

The project also shows how to do unit testing and how to use GitLab CI.

Serial interface

The serial interface is configured on USART 2 and can be accessed using, for example, an USB-to-serial cable connected to a ground pin, and RX to PA2 and TX to PA3.

The interface will output the following lines:

  • init after initialization has finished
  • button when the user button has been pressed
  • level when the board is being held in a perfect level position (when in acceleration mode)

The following lines can be given as commands:

  • on to turn all the leds on (and disable accelerometer/cycle mode)
  • off to turn all the leds off (and disable accelerometer/cycle mode)
  • accel to switch to accelerometer mode
  • cycle to switch to cycle mode
  • stop to freeze the LEDs in the current position

License

0-clause BSD license.