An attempt to make the "Hello world" of microcontroller programming finally right: using interrupts and keeping the MCU asleep most of the time.
You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
Go to file
LEdoian 7aa4315ee7 I guessed the pins wrong... 4 years ago
libopencm3@503cebab87 Add libopencm3 as submodule 5 years ago
.gitignore The code works better 9 years ago
.gitmodules Add libopencm3 as submodule 5 years ago
Makefile Comment the setup a bit 5 years ago
Makefile.old Renamed files 9 years ago
Makefile_analysis Not many changes 9 years ago
Makefile_libopencm3-examples First commit 9 years ago
README.md Add readme 4 years ago
main.c I guessed the pins wrong... 4 years ago

README.md

Setup

  1. Need the "newlib" arm library (else there is no stdint.h &co.)
pacman -S arm-none-eabi-newlib
  1. Get Libopencm3
git submodule init
git submodule update
  1. Generate headers in Libopencm3
cd libopencm3
make
cd ..

Possibly there are also some udev rules & co, I think they can be acquired from the stlink package.

Usage

make

It does everything. At least for STM32VLDISCOVERY board at my computer.