Aery32
Getting Started
Installation
Requirements
Basics of the embedded software
Project structure – where things go?
Aery32 library,
aery32/
Main source file,
main.cpp
Board specific functions,
board.h
and
.cpp
Build system,
Makefile
Project wide settings,
settings.h
The build system
Chip programming
How to add new source files to the project
Compile with debug statements
Example programs,
examples/
UC3A0/1 system clocks described
Main clock means the CPU clock
Delay functions,
#include
<aery32/delay.h>
Use RTC for long delays
String functions,
#include
<aery32/string.h>
Integer number to string
Double to string
Contributor’s guide
Sending a pull request (creating a patch)
Coding standards
Writing the documentation
Naming conventions
Global variables
Error handling
General Periheral Input/Output
Local GPIO bus
Power Manager
Use PLLs to achieve higher clock frequencies
Fine tune the CPU and Periheral BUS frequencies
General clocks
Save power and use only the peripherals that you need
How much is the clock?
Flash Controller
Read and write operations
Page locking
User page
General purpose fuse bits
Interrupt Controller
Analog-to-Digital Converter
Initialization
Reading the conversion
ADC hardware triggers
Pulse Width Modulation
Setting up PWM mode
Enabling and disabling the PWM
Modulating the PWM output waveform
Real-time Counter
Serial Peripheral Interface
Sending arbitrary wide SPI data
Two-wire (I2C) Interface
Read and write operations
Using internal device address
Universal Sync/Asynchronous Receiver/Transmitter
Initialization
Peripheral Input/Output DMA
Class instantiation
Size of transfer
Reading the input DMA,
periph_idma
Writing to the output DMA,
periph_odma
Serial Port
Class instantiation
Hello World!
Getline and line termination
Flush and other supportive functions
Hardware handshaking
Setting up the terminal software in PC side
Eclipse Juno
Installation
Import Aery32 Framework as a Makefile project
Setting Paths and Symbols
Setting Makefile targets
Sublime Text 2
Shortcut keys
Autocomplete with SublimeClang
Aery32 plug-in
Aery32
Docs
»
Edit on GitHub
Index
Read the Docs
v: latest
Versions
latest
0.6.2
0.5.0
0.4.2
0.3.0
0.2.1
0.1.2
Downloads
PDF
HTML
Epub
On Read the Docs
Project Home
Builds
Free document hosting provided by
Read the Docs
.