刚开始学STM8,写了几句控制端口的语句,发现如下提示,求指导,开发环境为IAR 2.10
#include "stm8l15x.h"
int main(void)
{
GPIOD->DDR=0x80;
GPIOD->ODR=0X33;
GPIOD->CR1=0X00;
GPIOD->CR2=0X00;
PD_DDR=0X00;
PD_ODR=0X00;
GPIOD_CR1=0X00;
GPIOD_CR2=0X00;
}
Error[Pe020]: identifier "PD_DDR" is undefined F:\code_test\main.c 11
Error[Pe020]: identifier "PD_ODR" is undefined F:\code_test\main.c 12
Error[Pe020]: identifier "GPIOD_CR1" is undefined F:\code_test\main.c 13
Error[Pe020]: identifier "GPIOD_CR2" is undefined F:\code_test\main.c 14
|