Download AN 78K0R/Kx3 16-bit single-chip microcontrollers Flash Memory
Transcript
Chapter 6
Library for IAR Compiler
Note
The preset interrupt mask flags are defined in the FSL user-configurable source
file fsl_user.h
#define
FSL_MK0L_MASK
0xFF
/* all interrupts disabled */
#define
FSL_MK0H_MASK
0xFF
/* all interrupts disabled */
#define
FSL_MK1L_MASK
0xFF
/* all interrupts disabled */
#define
FSL_MK1H_MASK
0xFF
/* all interrupts disabled */
#define
FSL_MK2L_MASK
0xFF
/* all interrupts disabled */
#define
FSL_MK2H_MASK
0xFF
/* all interrupts disabled */
/*For the correct settings please refer to the chapter "Interrupt Functions"
of the corresponding device user's manual.*/
Interrupt backup
If backup of interrupt mask flags is not necessary, user may comment out the
following line.
#define FSL_INT_BACKUP
FLMD0 port setting
example
Following example shows the macro definition for the FLMD0 control.
/* FLMD0 control bit
#define FSL_FLMD0_HIGH
#define FSL_FLMD0_LOW
/* FSL_Open();
FSL_FLMD0_HIGH;
30
*/
{BECTL_bit.no7 = 1;}
{BECTL_bit.no7 = 0;}
*/
Application Note U19236EE1V0AN00