http://embedded-lab.com/blog/stm32-gpio-ports-insights/
http://hertaville.com/stm32f0-gpio-tutorial-part-1.html
The libmaple libraries, on which STM32duino is based, provides access to registers by the syntax:
GPIOA->regs->REG| #include <conio.h> | |
| #include <time.h> | |
| #include <stdlib.h> | |
| #include <dos.h> | |
| #include <inttypes.h> | |
| void fill_scr_rand(void); | |
| void rand_palette(void) { | |
| int i=0; |
| #!/bin/sh | |
| base="/sys/devices/system/cpu/cpufreq/policy0/" | |
| ME="${0}" | |
| SCALING_DRIVER="$(<${base}/scaling_driver)" | |
| SCALING_GOVERNOR="$(<${base}/scaling_governor)" | |
| AC_ONLINE=$(</sys/class/power_supply/AC/online) | |
| # install this script in udev |
http://embedded-lab.com/blog/stm32-gpio-ports-insights/
http://hertaville.com/stm32f0-gpio-tutorial-part-1.html
The libmaple libraries, on which STM32duino is based, provides access to registers by the syntax:
GPIOA->regs->REG| #!/usr/bin/sh | |
| # Start a new libopencm3 based project for Blue Pill STM32F103C8 board. | |
| # Takes project name as a parameter. | |
| EXAMPLES_MASTER=\ | |
| "https://raw.githubusercontent.com/libopencm3/libopencm3-examples/master" | |
| mkdir "$1" | |
| cd "$1" |