2.1. Extended keywords: used to control data and pointers.
__eeprom is used for EEPROM storage space, controls data storage, controls pointer type and storage
__tinyflash, __flash, __farflash, __hugeflash are used for flash storage space, controls data storage, controls pointer type and storage:
__ext_io, __io are used for I/O storage space, controls data storage, controls pointer type and storage
__regvar places a variable in a working register
2.2. Function extension keywords:
__nearfunc __farfunc are used to control data storage. This group of keywords must be specified when declaring and defining the function:
__interrupt. Keywords control the type of the function. This group of keywords must be specified when declaring and defining the function
. __root. Keywords only control defined functions:
@ is used to locate the absolute address of the variable. You can also use the #pragma location command
#pragma vector to provide the entry address of the interrupt function.
__root ensures that unused functions or variables can also be included in the target code
__no_init prohibits initialization of variables when the system starts.
asm, __asm insert assembly code
Previous article:IAR for AVR Learning Notes (3) - Bit Operations
Next article:IAR for AVR Study Notes (1) -- Data Types
Recommended ReadingLatest update time:2024-11-23 13:43
- Popular Resources
- Popular amplifiers
- Principles and Applications of Single Chip Microcomputers 3rd Edition (Zhang Yigang)
- Metronom Real-Time Operating System RTOS for AVR microcontrollers
- IAR fully supports the new industrial-grade PX5 real-time operating system
- Learn C language for AVR microcontrollers easily (with video tutorial) (Yan Yu, Li Jia, Qin Wenhai)
- Naxin Micro and Xinxian jointly launched the NS800RT series of real-time control MCUs
- How to learn embedded systems based on ARM platform
- Summary of jffs2_scan_eraseblock issues
- Application of SPCOMM Control in Serial Communication of Delphi7.0
- Using TComm component to realize serial communication in Delphi environment
- Bar chart code for embedded development practices
- Embedded Development Learning (10)
- Embedded Development Learning (8)
- Embedded Development Learning (6)
Professor at Beihang University, dedicated to promoting microcontrollers and embedded systems for over 20 years.
- Intel promotes AI with multi-dimensional efforts in technology, application, and ecology
- ChinaJoy Qualcomm Snapdragon Theme Pavilion takes you to experience the new changes in digital entertainment in the 5G era
- Infineon's latest generation IGBT technology platform enables precise control of speed and position
- Two test methods for LED lighting life
- Don't Let Lightning Induced Surges Scare You
- Application of brushless motor controller ML4425/4426
- Easy identification of LED power supply quality
- World's first integrated photovoltaic solar system completed in Israel
- Sliding window mean filter for avr microcontroller AD conversion
- What does call mean in the detailed explanation of ABB robot programming instructions?
- STMicroelectronics discloses its 2027-2028 financial model and path to achieve its 2030 goals
- 2024 China Automotive Charging and Battery Swapping Ecosystem Conference held in Taiyuan
- State-owned enterprises team up to invest in solid-state battery giant
- The evolution of electronic and electrical architecture is accelerating
- The first! National Automotive Chip Quality Inspection Center established
- BYD releases self-developed automotive chip using 4nm process, with a running score of up to 1.15 million
- GEODNET launches GEO-PULSE, a car GPS navigation device
- Should Chinese car companies develop their own high-computing chips?
- Infineon and Siemens combine embedded automotive software platform with microcontrollers to provide the necessary functions for next-generation SDVs
- Continental launches invisible biometric sensor display to monitor passengers' vital signs
- Introduction to AGV system architecture and TI's corresponding reference design solution
- MSP430 library SPI synchronous serial communication
- Several Problem Solving Sharing of BQ25895
- Teach you how to set up power management plan
- [Zero-knowledge ESP8266 tutorial] Quick Start 15 SmartConfig one-click network configuration
- Physical design of PCB board
- Use the timer's long and short buttons
- Storage alias fuzziness (alias)
- Help: Relationship between air conditioning cooling capacity and cooling area
- The electronic teaching plan of "DSP Principles and Applications" is very useful!