📄 gui.plg
字号:
BSP\touchstreen.c: GPIO_InitStructure.GPIO_Mode = GPIO_Mode_Out_PP; //推挽输出模式
BSP\touchstreen.c: ^
BSP\touchstreen.c(74): error: #20: identifier "GPIO_Pin_4" is undefined
BSP\touchstreen.c: GPIO_InitStructure.GPIO_Pin = GPIO_Pin_4; //SPI1 SST25VF016B片选
BSP\touchstreen.c: ^
BSP\touchstreen.c(76): error: #20: identifier "GPIO_Pin_12" is undefined
BSP\touchstreen.c: GPIO_InitStructure.GPIO_Pin = GPIO_Pin_12; //SPI1 VS1003片选
BSP\touchstreen.c: ^
BSP\touchstreen.c(80): warning: #223-D: function "GPIO_SetBits" declared implicitly
BSP\touchstreen.c: GPIO_SetBits(GPIOC, GPIO_Pin_4); //SPI CS1
BSP\touchstreen.c: ^
BSP\touchstreen.c(85): error: #20: identifier "SPI_Direction_2Lines_FullDuplex" is undefined
BSP\touchstreen.c: SPI_InitStructure.SPI_Direction = SPI_Direction_2Lines_FullDuplex; //全双工
BSP\touchstreen.c: ^
BSP\touchstreen.c(86): error: #20: identifier "SPI_Mode_Master" is undefined
BSP\touchstreen.c: SPI_InitStructure.SPI_Mode = SPI_Mode_Master; //主模式
BSP\touchstreen.c: ^
BSP\touchstreen.c(87): error: #20: identifier "SPI_DataSize_8b" is undefined
BSP\touchstreen.c: SPI_InitStructure.SPI_DataSize = SPI_DataSize_8b; //8位
BSP\touchstreen.c: ^
BSP\touchstreen.c(88): error: #20: identifier "SPI_CPOL_Low" is undefined
BSP\touchstreen.c: SPI_InitStructure.SPI_CPOL = SPI_CPOL_Low; //时钟极性 空闲状态时,SCK保持低电平
BSP\touchstreen.c: ^
BSP\touchstreen.c(89): error: #20: identifier "SPI_CPHA_1Edge" is undefined
BSP\touchstreen.c: SPI_InitStructure.SPI_CPHA = SPI_CPHA_1Edge; //时钟相位 数据采样从第一个时钟边沿开始
BSP\touchstreen.c: ^
BSP\touchstreen.c(90): error: #20: identifier "SPI_NSS_Soft" is undefined
BSP\touchstreen.c: SPI_InitStructure.SPI_NSS = SPI_NSS_Soft; //软件产生NSS
BSP\touchstreen.c: ^
BSP\touchstreen.c(91): error: #20: identifier "SPI_BaudRatePrescaler_64" is undefined
BSP\touchstreen.c: SPI_InitStructure.SPI_BaudRatePrescaler = SPI_BaudRatePrescaler_64; //波特率控制 SYSCLK/64
BSP\touchstreen.c: ^
BSP\touchstreen.c(92): error: #20: identifier "SPI_FirstBit_MSB" is undefined
BSP\touchstreen.c: SPI_InitStructure.SPI_FirstBit = SPI_FirstBit_MSB; //数据高位在前
BSP\touchstreen.c: ^
BSP\touchstreen.c(94): warning: #223-D: function "SPI_Init" declared implicitly
BSP\touchstreen.c: SPI_Init(SPI1, &SPI_InitStructure);
BSP\touchstreen.c: ^
BSP\touchstreen.c(97): warning: #223-D: function "SPI_Cmd" declared implicitly
BSP\touchstreen.c: SPI_Cmd(SPI1,ENABLE);
BSP\touchstreen.c: ^
BSP\touchstreen.c(113): warning: #223-D: function "SPI_I2S_GetFlagStatus" declared implicitly
BSP\touchstreen.c: while(SPI_I2S_GetFlagStatus(SPI1,SPI_I2S_FLAG_TXE)==RESET);
BSP\touchstreen.c: ^
BSP\touchstreen.c(113): error: #20: identifier "SPI_I2S_FLAG_TXE" is undefined
BSP\touchstreen.c: while(SPI_I2S_GetFlagStatus(SPI1,SPI_I2S_FLAG_TXE)==RESET);
BSP\touchstreen.c: ^
BSP\touchstreen.c(115): warning: #223-D: function "SPI_I2S_SendData" declared implicitly
BSP\touchstreen.c: SPI_I2S_SendData(SPI1,ucData);
BSP\touchstreen.c: ^
BSP\touchstreen.c(118): error: #20: identifier "SPI_I2S_FLAG_RXNE" is undefined
BSP\touchstreen.c: while(SPI_I2S_GetFlagStatus(SPI1,SPI_I2S_FLAG_RXNE)==RESET);
BSP\touchstreen.c: ^
BSP\touchstreen.c(120): warning: #223-D: function "SPI_I2S_ReceiveData" declared implicitly
BSP\touchstreen.c: ucDat = SPI_I2S_ReceiveData(SPI1);
BSP\touchstreen.c: ^
BSP\touchstreen.c(138): warning: #223-D: function "GPIO_ResetBits" declared implicitly
BSP\touchstreen.c: TP_CS(); //选择XPT2046
BSP\touchstreen.c: ^
BSP\touchstreen.c(138): error: #20: identifier "GPIO_Pin_7" is undefined
BSP\touchstreen.c: TP_CS(); //选择XPT2046
BSP\touchstreen.c: ^
BSP\touchstreen.c(146): warning: #223-D: function "GPIO_SetBits" declared implicitly
BSP\touchstreen.c: TP_DCS();
BSP\touchstreen.c: ^
BSP\touchstreen.c(162): warning: #223-D: function "GPIO_ResetBits" declared implicitly
BSP\touchstreen.c: TP_CS(); //选择XPT2046
BSP\touchstreen.c: ^
BSP\touchstreen.c(162): error: #20: identifier "GPIO_Pin_7" is undefined
BSP\touchstreen.c: TP_CS(); //选择XPT2046
BSP\touchstreen.c: ^
BSP\touchstreen.c(170): warning: #223-D: function "GPIO_SetBits" declared implicitly
BSP\touchstreen.c: TP_DCS();
BSP\touchstreen.c: ^
BSP\touchstreen.c(408): warning: #223-D: function "GPIO_ReadInputDataBit" declared implicitly
BSP\touchstreen.c: if(PEN==0) //点击第一个校正点 等待触摸检测电平变低
BSP\touchstreen.c: ^
BSP\touchstreen.c(408): error: #20: identifier "GPIO_Pin_6" is undefined
BSP\touchstreen.c: if(PEN==0) //点击第一个校正点 等待触摸检测电平变低
BSP\touchstreen.c: ^
BSP\touchstreen.c(440): warning: #223-D: function "GPIO_ReadInputDataBit" declared implicitly
BSP\touchstreen.c: if(PEN==0)
BSP\touchstreen.c: ^
BSP\touchstreen.c(440): error: #20: identifier "GPIO_Pin_6" is undefined
BSP\touchstreen.c: if(PEN==0)
BSP\touchstreen.c: ^
BSP\touchstreen.c(777): error: #20: identifier "GPIO_InitTypeDef" is undefined
BSP\touchstreen.c: GPIO_InitTypeDef GPIO_InitStructure;
BSP\touchstreen.c: ^
BSP\touchstreen.c(779): error: #20: identifier "GPIO_Pin_6" is undefined
BSP\touchstreen.c: GPIO_InitStructure.GPIO_Pin = GPIO_Pin_6; //触摸检测引脚
BSP\touchstreen.c: ^
BSP\touchstreen.c(780): error: #20: identifier "GPIO_Mode_IPU" is undefined
BSP\touchstreen.c: GPIO_InitStructure.GPIO_Mode = GPIO_Mode_IPU;
BSP\touchstreen.c: ^
BSP\touchstreen.c(781): warning: #223-D: function "GPIO_Init" declared implicitly
BSP\touchstreen.c: GPIO_Init(GPIOB, &GPIO_InitStructure);
BSP\touchstreen.c: ^
BSP\touchstreen.c(790): error: #20: identifier "NVIC_InitTypeDef" is undefined
BSP\touchstreen.c: NVIC_InitTypeDef NVIC_InitStructure;
BSP\touchstreen.c: ^
BSP\touchstreen.c: BSP\touchstreen.c: 15 warnings, 30 errors
compiling usart.c...
BSP\usart.c(7): error: #5: cannot open source input file "misc.h": No such file or directory
BSP\usart.c: #include "misc.h"
BSP\usart.c: ^
BSP\usart.c: BSP\usart.c: 0 warnings, 1 error
compiling stm32f10x_gpio.c...
..\STMGUI\Libraries\STM32F10x_StdPeriph_Driver\src\stm32f10x_gpio.c(175): error: #20: identifier "uint32_t" is undefined
..\STMGUI\Libraries\STM32F10x_StdPeriph_Driver\src\stm32f10x_gpio.c: uint32_t currentmode = 0x00, currentpin = 0x00, pinpos = 0x00, pos = 0x00;
..\STMGUI\Libraries\STM32F10x_StdPeriph_Driver\src\stm32f10x_gpio.c: ^
..\STMGUI\Libraries\STM32F10x_StdPeriph_Driver\src\stm32f10x_gpio.c(176): error: #20: identifier "uint32_t" is undefined
..\STMGUI\Libraries\STM32F10x_StdPeriph_Driver\src\stm32f10x_gpio.c: uint32_t tmpreg = 0x00, pinmask = 0x00;
..\STMGUI\Libraries\STM32F10x_StdPeriph_Driver\src\stm32f10x_gpio.c: ^
..\STMGUI\Libraries\STM32F10x_StdPeriph_Driver\src\stm32f10x_gpio.c(183): error: #20: identifier "uint32_t" is undefined
..\STMGUI\Libraries\STM32F10x_StdPeriph_Driver\src\stm32f10x_gpio.c: currentmode = ((uint32_t)GPIO_InitStruct->GPIO_Mode) & ((uint32_t)0x0F);
..\STMGUI\Libraries\STM32F10x_StdPeriph_Driver\src\stm32f10x_gpio.c: ^
..\STMGUI\Libraries\STM32F10x_StdPeriph_Driver\src\stm32f10x_gpio.c(183): error: #18: expected a ")"
..\STMGUI\Libraries\STM32F10x_StdPeriph_Driver\src\stm32f10x_gpio.c: currentmode = ((uint32_t)GPIO_InitStruct->GPIO_Mode) & ((uint32_t)0x0F);
..\STMGUI\Libraries\STM32F10x_StdPeriph_Driver\src\stm32f10x_gpio.c: ^
..\STMGUI\Libraries\STM32F10x_StdPeriph_Driver\src\stm32f10x_gpio.c(183): error: #18: expected a ")"
..\STMGUI\Libraries\STM32F10x_StdPeriph_Driver\src\stm32f10x_gpio.c: currentmode = ((uint32_t)GPIO_InitStruct->GPIO_Mode) & ((uint32_t)0x0F);
..\STMGUI\Libraries\STM32F10x_StdPeriph_Driver\src\stm32f10x_gpio.c: ^
..\STMGUI\Libraries\STM32F10x_StdPeriph_Driver\src\stm32f10x_gpio.c(184): error: #18: expected a ")"
..\STMGUI\Libraries\STM32F10x_StdPeriph_Driver\src\stm32f10x_gpio.c: if ((((uint32_t)GPIO_InitStruct->GPIO_Mode) & ((uint32_t)0x10)) != 0x00)
..\STMGUI\Libraries\STM32F10x_StdPeriph_Driver\src\stm32f10x_gpio.c: ^
..\STMGUI\Libraries\STM32F10x_StdPeriph_Driver\src\stm32f10x_gpio.c(184): error: #18: expected a ")"
..\STMGUI\Libraries\STM32F10x_StdPeriph_Driver\src\stm32f10x_gpio.c: if ((((uint32_t)GPIO_InitStruct->GPIO_Mode) & ((uint32_t)0x10)) != 0x00)
..\STMGUI\Libraries\STM32F10x_StdPeriph_Driver\src\stm32f10x_gpio.c: ^
..\STMGUI\Libraries\STM32F10x_StdPeriph_Driver\src\stm32f10x_gpio.c(189): error: #65: expected a ";"
..\STMGUI\Libraries\STM32F10x_StdPeriph_Driver\src\stm32f10x_gpio.c: currentmode |= (uint32_t)GPIO_InitStruct->GPIO_Speed;
..\STMGUI\Libraries\STM32F10x_StdPeriph_Driver\src\stm32f10x_gpio.c: ^
..\STMGUI\Libraries\STM32F10x_StdPeriph_Driver\src\stm32f10x_gpio.c(193): error: #18: expected a ")"
..\STMGUI\Libraries\STM32F10x_StdPeriph_Driver\src\stm32f10x_gpio.c: if (((uint32_t)GPIO_InitStruct->GPIO_Pin & ((uint32_t)0x00FF)) != 0x00)
..\STMGUI\Libraries\STM32F10x_StdPeriph_Driver\src\stm32f10x_gpio.c: ^
..\STMGUI\Libraries\STM32F10x_StdPeriph_Driver\src\stm32f10x_gpio.c(198): error: #18: expected a ")"
..\STMGUI\Libraries\STM32F10x_StdPeriph_Driver\src\stm32f10x_gpio.c: pos = ((uint32_t)0x01) << pinpos;
..\STMGUI\Libraries\STM32F10x_StdPeriph_Driver\src\stm32f10x_gpio.c: ^
..\STMGUI\Libraries\STM32F10x_StdPeriph_Driver\src\stm32f10x_gpio.c(205): error: #18: expected a ")"
..\STMGUI\Libraries\STM32F10x_StdPeriph_Driver\src\stm32f10x_gpio.c: pinmask = ((uint32_t)0x0F) << pos;
..\STMGUI\Libraries\STM32F10x_StdPeriph_Driver\src\stm32f10x_gpio.c: ^
..\STMGUI\Libraries\STM32F10x_StdPeriph_Driver\src\stm32f10x_gpio.c(212): error: #18: expected a ")"
..\STMGUI\Libraries\STM32F10x_StdPeriph_Driver\src\stm32f10x_gpio.c: GPIOx->BRR = (((uint32_t)0x01) << pinpos);
..\STMGUI\Libraries\STM32F10x_StdPeriph_Driver\src\stm32f10x_gpio.c: ^
..\STMGUI\Libraries\STM32F10x_StdPeriph_Driver\src\stm32f10x_gpio.c(219): error: #18: expected a ")"
..\STMGUI\Libraries\STM32F10x_StdPeriph_Driver\src\stm32f10x_gpio.c: GPIOx->BSRR = (((uint32_t)0x01) << pinpos);
..\STMGUI\Libraries\STM32F10x_StdPeriph_Driver\src\stm32f10x_gpio.c: ^
..\STMGUI\Libraries\STM32F10x_StdPeriph_Driver\src\stm32f10x_gpio.c(233): error: #18: expected a ")"
..\STMGUI\Libraries\STM32F10x_StdPeriph_Driver\src\stm32f10x_gpio.c: pos = (((uint32_t)0x01) << (pinpos + 0x08));
..\STMGUI\Libraries\STM32F10x_StdPeriph_Driver\src\stm32f10x_gpio.c: ^
..\STMGUI\Libraries\STM32F10x_StdPeriph_Driver\src\stm32f10x_gpio.c(240): error: #18: expected a ")"
..\STMGUI\Libraries\STM32F10x_StdPeriph_Driver\src\stm32f10x_gpio.c: pinmask = ((uint32_t)0x0F) << pos;
..\STMGUI\Libraries\STM32F10x_StdPeriph_Driver\src\stm32f10x_gpio.c: ^
..\STMGUI\Libraries\STM32F10x_StdPeriph_Driver\src\stm32f10x_gpio.c(247): error: #18: expected a ")"
..\STMGUI\Libraries\STM32F10x_StdPeriph_Driver\src\stm32f10x_gpio.c: GPIOx->BRR = (((uint32_t)0x01) << (pinpos + 0x08));
..\STMGUI\Libraries\STM32F10x_StdPeriph_Driver\src\stm32f10x_gpio.c: ^
..\STMGUI\Libraries\STM32F10x_StdPeriph_Driver\src\stm32f10x_gpio.c(252): error: #18: expected a ")"
..\STMGUI\Libraries\STM32F10x_StdPeriph_Driver\src\stm32f10x_gpio.c: GPIOx->BSRR = (((uint32_t)0x01) << (pinpos + 0x08));
..\STMGUI\Libraries\STM32F10x_StdPeriph_Driver\src\stm32f10x_gpio.c: ^
..\STMGUI\Libraries\STM32F10x_StdPeriph_Driver\src\stm32f10x_gpio.c(281): error: #20: identifier "uint8_t" is undefined
..\STMGUI\Libraries\STM32F10x_StdPeriph_Driver\src\stm32f10x_gpio.c: uint8_t GPIO_ReadInputDataBit(GPIO_TypeDef* GPIOx, uint16_t GPIO_Pin)
..\STMGUI\Libraries\STM32F10x_StdPeriph_Driver\src\stm32f10x_gpio.c: ^
..\STMGUI\Libraries\STM32F10x_StdPeriph_Driver\src\stm32f10x_gpio.c(281): error: #20: identifier "uint16_t" is undefined
..\STMGUI\Libraries\STM32F10x_StdPeriph_Driver\src\stm32f10x_gpio.c: uint8_t GPIO_ReadInputDataBit(GPIO_TypeDef* GPIOx, uint16_t GPIO_Pin)
..\STMGUI\Libraries\STM32F10x_StdPeriph_Driver\src\stm32f10x_gpio.c: ^
..\STMGUI\Libraries\STM32F10x_StdPeriph_Driver\src\stm32f10x_gpio.c(283): error: #20: identifier "uint8_t" is undefined
..\STMGUI\Libraries\STM32F10x_StdPeriph_Driver\src\stm32f10x_gpio.c: uint8_t bitstatus = 0x00;
..\STMGUI\Libraries\STM32F10x_StdPeriph_Driver\src\stm32f10x_gpio.c: ^
..\STMGUI\Libraries\STM32F10x_StdPeriph_Driver\src\stm32f10x_gpio.c(289): error: #20: identifier "uint32_t" is undefined
..\STMGUI\Libraries\STM32F10x_StdPeriph_Driver\src\stm32f10x_gpio.c: if ((GPIOx->IDR & GPIO_Pin) != (uint32_t)Bit_RESET)
..\STMGUI\Libraries\STM32F10x_StdPeriph_Driver\src\stm32f10x_gpio.c: ^
..\STMGUI\Libraries\STM32F10x_StdPeriph_Driver\src\stm32f10x_gpio.c(289): error: #18: expected a ")"
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -