alloca(3) β <alloca.h>: Allocate space in the stack
asmdemo(3) β Combining C and assembly source filesFor time- or space-critical applications, it can often be desirable to combine C code (for easy maintenance) and assembly code (for maximal speed or minimal code size) together. This demo provides an example of how to do that.
avr_pgmspace(3) β <avr/pgmspace.h>: Program Space Utilities
avr_power(3) β <avr/power.h>: Power Reduction Management
avr_sfr(3) β <avr/sfr_defs.h>: Special function registers
avr_sfr_notes(3) β Additional notes from <avr/sfr_defs.h>The \fC<avr/sfr_defs.h> file is included by all of the \fC<avr/ioXXXX.h> files, which use macros defined here to make the special function register definitions look like C variables or simple constants, depending on the \fC_SFR_ASM_COMPAT define. Some examples from \fC<avr/iocanxx.h> to show how to define such macros:
demo_project(3) β A simple projectAt this point, you should have the GNU tools configured, built, and installed on your system. In this chapter, we present a simple example of using the GNU tools in an AVR project. After reading this chapter, you should have a better feel as to how the tools are used and how a \fCMakefile can be configured.
largedemo(3) β A more sophisticated projectThis project extends the basic idea of the simple project to control a LED with a PWM output, but adds methods to adjust the LED brightness. It employs a lot of the basic concepts of avr-libc to achieve that goal.
stdiodemo(3) β Using the standard IO facilitiesThis project illustrates how to use the standard IO facilities (stdio) provided by this library. It assumes a basic knowledge of how the stdio subsystem is used in standard C applications, and concentrates on the differences in this library's implementation that mainly result from the differences of the microcontroller environment, compared to a hosted environment of a standard computer.
twi_demo(3) β Example using the two-wire interface (TWI)Some newer devices of the ATmega series contain builtin support for interfacing the microcontroller to a two-wire bus, called TWI. This is essentially the same called I2C by Philips, but that term is avoided in Atmel's documentation due to patenting issues.