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| /* global createImageBitmap */ | |
| function loadImageWithImageTag(src) { | |
| return new Promise((resolve, reject) => { | |
| const img = new Image; | |
| img.crossOrigin = ''; | |
| img.src = src; | |
| img.onload = () => { resolve(img); }; | |
| img.onerror = () => { reject(img); }; | |
| }); |
| #!/bin/bash | |
| # install can-utils | |
| git clone https://github.com/linux-can/can-utils.git | |
| cd can-utils | |
| ./autogen.sh | |
| ./configure | |
| make | |
| sudo make install |
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/env objc-run | |
| #import <Foundation/Foundation.h> | |
| #import <objc/runtime.h> | |
| #import <objc/message.h> | |
| /// | |
| /// Typedefs | |
| typedef id (^TargetMethod)(id arg); |
| # requires android ndkr8b or above | |
| .PHONY: check-ndk clean | |
| LIBOBJC2_MAKEFILE := libobjc2-1.6.1/Makefile | |
| X86SYSROOT := $(shell pwd)/androidtoolchain-x86 | |
| ARMSYSROOT := $(shell pwd)/androidtoolchain-arm | |
| GCC_X86 := $(X86SYSROOT)/bin/i686-android-linux-gcc | |
| GCC_ARM := $(ARMSYSROOT)/bin/arm-linux-androideabi-gcc | |
| LLVM_CONFIGURE := llvm/configure |
Example:
Jeffreys-MacBook-Air$ ant example
Buildfile: /Users/jsambells/Documents/example/build.xml
[echo] Parsing properties
[echo] greeting=Hello
[echo] audience=world
example:
[echo] Hello world