Header file for compiler compatibility.
This file contains some general definitions and macros to ensure code compatibility with both IAR and GCC.
Copyright (C) 2012 Atmel Corporation. All rights reserved.
Definition in file avr_compiler.h.
#include <stdint.h>#include <stdbool.h>#include <stdlib.h>
Include dependency graph for avr_compiler.h:
This graph shows which files directly or indirectly include this file:Go to the source code of this file.
Macros | |
| #define | CLASSB_EEMAP_BEGIN() |
| Enable memory mapping of EEPROM, if it is not already enabled. | |
| #define | CLASSB_EEMAP_END() |
| Disable memory mapping of EEPROM, unless it was previously enabled. | |
| #define | ENTER_CRITICAL_REGION() |
| #define | LEAVE_CRITICAL_REGION() SREG = saved_sreg; |
| #define CLASSB_EEMAP_BEGIN | ( | ) |
Enable memory mapping of EEPROM, if it is not already enabled.
Definition at line 81 of file avr_compiler.h.
Referenced by CLASSB_CRC16_EEPROM_HW(), CLASSB_CRC16_EEPROM_SW(), CLASSB_CRC16_Flash_HW(), CLASSB_CRC16_Flash_SW(), CLASSB_CRC32_EEPROM_HW(), CLASSB_CRC32_EEPROM_SW(), CLASSB_CRC32_Flash_HW(), and CLASSB_CRC32_Flash_SW().
| #define CLASSB_EEMAP_END | ( | ) |
Disable memory mapping of EEPROM, unless it was previously enabled.
Definition at line 96 of file avr_compiler.h.
Referenced by CLASSB_CRC16_EEPROM_HW(), CLASSB_CRC16_EEPROM_SW(), CLASSB_CRC16_Flash_HW(), CLASSB_CRC16_Flash_SW(), CLASSB_CRC32_EEPROM_HW(), CLASSB_CRC32_EEPROM_SW(), CLASSB_CRC32_Flash_HW(), and CLASSB_CRC32_Flash_SW().
| #define ENTER_CRITICAL_REGION | ( | ) |
This macro will protect the following code from interrupts.
Definition at line 103 of file avr_compiler.h.
| #define LEAVE_CRITICAL_REGION | ( | ) | SREG = saved_sreg; |
This macro must always be used in conjunction with ENTER_CRITICAL_REGION so that interrupts are enabled again.
Definition at line 110 of file avr_compiler.h.