#define PI_CR2_C20 PI_CR2_bit.C20
/* Port I control register 2 */
#ifdef __IAR_SYSTEMS_ICC__
typedef struct
{undefined
unsigned char C20 : 1;
unsigned char C21 : 1;
unsigned char C22 : 1;
unsigned char C23 : 1;
unsigned char C24 : 1;
unsigned char C25 : 1;
unsigned char C26 : 1;
unsigned char C27 : 1;
} __BITS_PI_CR2;
#endif
__IO_REG8_BIT(PI_CR2, 0x502C, __READ_WRITE, __BITS_PI_CR2);
#define LED PI_ODR_ODR0//连接至LED引脚
#define PI_ODR_ODR0 PI_ODR_bit.ODR0
/* Port I data output latch register */
#ifdef __IAR_SYSTEMS_ICC__
typedef struct
{undefined
unsigned char ODR0 : 1;
unsigned char ODR1 : 1;
unsigned char ODR2 : 1;
unsigned char ODR3 : 1;
unsigned char ODR4 : 1;
unsigned char ODR5 : 1;
unsigned char ODR6 : 1;
unsigned char ODR7 : 1;
} __BITS_PI_ODR;
#endif
__IO_REG8_BIT(PI_ODR, 0x5028, __READ_WRITE, __BITS_PI_ODR);
|