AVR-LibC  2.3.0git
Standard C library for AVR-GCC
 

AVR-LibC Documen­tation

AVR-LibC Development Pages

Main Page

User Manual

Library Refe­rence

FAQ

Example Projects

File List

Index

Loading...
Searching...
No Matches
project.h
1/*
2 * ----------------------------------------------------------------------------
3 * "THE BEER-WARE LICENSE" (Revision 42):
4 * Joerg Wunsch wrote this file. As long as you retain this notice you
5 * can do whatever you want with this stuff. If we meet some day, and you think
6 * this stuff is worth it, you can buy me a beer in return. Joerg Wunsch
7 * ----------------------------------------------------------------------------
8 *
9 * Demo combining C and assembly source files.
10 */
11
12/*
13 * Global register variables.
14 */
15#ifdef __ASSEMBLER__
16
17# define sreg_save r2
18# define flags r16
19# define counter_hi r4
20
21#else /* !ASSEMBLER */
22
23#include <stdint.h>
24
25register uint8_t sreg_save asm("r2");
26register uint8_t flags asm("r16");
27register uint8_t counter_hi asm("r4");
28
29#endif /* ASSEMBLER */
unsigned char uint8_t
Definition: stdint.h:81