AVR Libc Home Page |  | AVR Libc Development Pages
Main Page | User Manual | Library Reference | FAQ | Alphabetical Index | Example Projects

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 * $Id: project.h 1124 2006-08-29 19:45:06Z joerg_wunsch $
12 */
13
14 /*
15 * Global register variables.
16 */
17 #ifdef __ASSEMBLER__
18
19 # define sreg_save r2
20 # define flags r16
21 # define counter_hi r4
22
23 #else /* !ASSEMBLER */
24
25 #include <stdint.h>
26
27 register uint8_t sreg_save asm("r2");
28 register uint8_t flags asm("r16");
29 register uint8_t counter_hi asm("r4");
30
31 #endif /* ASSEMBLER */

Automatically generated by Doxygen 1.8.3.1 on Sun Sep 29 2013.