![]() * Registers and associated bit numbers */ #define PINB _SFR_IO8(0x03) # error "Attempt to include more than one file." */ /* This file should only be included from, never directly. equ symbol, expression (Maybe someone can clarify this?)ĪPI :~ application programming interfaces define interfaces between programĪBI :~ application binary interface (ABI) is the interface between two program modulesĪns: The compiler and the IDE will include in this location, the officially atmel recognized definition e.g.”avr/iom328p.h - definitions for ATmega328P” equ symbol = expression instead/inaddition? to. Very similar to #define, but can only be defined once.īut I think the AVR assembler is a modified version of GCC to accept. A label assigned to a value by the EQU directive is a constant and can not be changed or redefined. This label can then be used in later expressions. The EQU directive assigns a value to a label. The rest of the name is letters, usually in lower case.equ symbol = expression Which defines the IO register pointers in AVR memory.Īll assembler directives have names that begin with a period (`.’). You have an entry in file m328def.inc like: What does PORTD refer to?Ĭ:\Program Files (x86)\Atmel\Atmel Toolchain\AVR Assembler\Native\\avrassembler\include How are port registers location defined? e.g. ![]() PORTx :~ Pin Output Mode Register (read/write) )ĭDRx :~ Data Direction Register (read/write) The last byte address in the Flash program space.įor devices with bootloader support, the flash pagesize (in bytes) to be used for the SPM instruction.Īutomatically generated by Doxygen 1.5.6 on. For devices that allow external RAM, this will be larger than RAMEND. This is equal to RAMEND for devices that do not allow for external RAM. The last possible RAM location that is addressable. Note that inconsistencies in naming conventions, so even identical functions sometimes get different names on different devices.Īlso included are the specific names useable for interrupt function definitions as documented here.įinally, the following macros are defined: Included are definitions of the IO register set and their respective bit values as specified in the Atmel documentation. ![]() #include #include #include #include See : Special function registers for more details about that header file. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |