Keil5编程之warning: #223-D

作者分享了自己遇到的编程警告,源于预编译名称在多个头文件中的重复定义,导致函数声明无效。尝试过一些解决方法但未成功,最终发现问题根源并给出相应的解决方案。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

出现这个问题 每个人可能都不一样,我出现这个警告也搜了一些解决方法,如下所示,但是无法解决。

1、参考
2、参考

出去溜达了一圈,回来发现原来是预编译的名字和其他文件中相同,导致后来创建的文件函数声明无效。
如下在两个.h文件中都声明 _ABC_H_就会出现#223-D的警告

#ifndef	_ABC_H_
#define _ABC_H_

#endif
Build target &#39;Target 1&#39; compiling main.c... dht11.h(10): error: #20: identifier "uint8_t" is undefined uint8_t DHT11_Read(float *temp, float *humid); main.c(8): error: #20: identifier "RCC" is undefined RCC->CR |= RCC_CR_HSEON; main.c(8): error: #20: identifier "RCC_CR_HSEON" is undefined RCC->CR |= RCC_CR_HSEON; main.c(9): error: #20: identifier "RCC_CR_HSERDY" is undefined while (!(RCC->CR & RCC_CR_HSERDY)); main.c(12): error: #20: identifier "RCC_CFGR_PLLMULL9" is undefined RCC->CFGR |= RCC_CFGR_PLLMULL9 | RCC_CFGR_PLLSRC; main.c(12): error: #20: identifier "RCC_CFGR_PLLSRC" is undefined RCC->CFGR |= RCC_CFGR_PLLMULL9 | RCC_CFGR_PLLSRC; main.c(15): error: #20: identifier "RCC_CR_PLLON" is undefined RCC->CR |= RCC_CR_PLLON; main.c(16): error: #20: identifier "RCC_CR_PLLRDY" is undefined while (!(RCC->CR & RCC_CR_PLLRDY)); main.c(19): error: #20: identifier "RCC_CFGR_SW_PLL" is undefined RCC->CFGR |= RCC_CFGR_SW_PLL; main.c(20): error: #20: identifier "RCC_CFGR_SWS" is undefined while ((RCC->CFGR & RCC_CFGR_SWS) != RCC_CFGR_SWS_PLL); main.c(20): error: #20: identifier "RCC_CFGR_SWS_PLL" is undefined while ((RCC->CFGR & RCC_CFGR_SWS) != RCC_CFGR_SWS_PLL); main.c(23): error: #20: identifier "RCC_CFGR_PPRE1_DIV2" is undefined RCC->CFGR |= RCC_CFGR_PPRE1_DIV2 | RCC_CFGR_PPRE2_DIV1; main.c(23): error: #20: identifier "RCC_CFGR_PPRE2_DIV1" is undefined RCC->CFGR |= RCC_CFGR_PPRE1_DIV2 | RCC_CFGR_PPRE2_DIV1; main.c(29): error: #20: identifier "RCC" is undefined RCC->APB2ENR |= RCC_APB2ENR_IOPAEN | RCC_APB2ENR_IOPBEN | RCC_APB2ENR_IOPCEN; main.c(29): error: #20: identifier "RCC_APB2ENR_IOPAEN" is undefined RCC->APB2ENR |= RCC_APB2ENR_IOPAEN | RCC_APB2ENR_IOPBEN | RCC_APB2ENR_IOPCEN; main.c(29): error: #20: identifier "RCC_APB2ENR_IOPBEN" is undefined RCC->APB2ENR |= RCC_APB2ENR_IOPAEN | RCC_APB2ENR_IOPBEN | RCC_APB2ENR_IOPCEN; main.c(29): error: #20: identifier "RCC_APB2ENR_IOPCEN" is undefined RCC->APB2ENR |= RCC_APB2ENR_IOPAEN | RCC_APB2ENR_IOPBEN | RCC_APB2ENR_IOPCEN; main.c(32): error: #20: identifier "GPIOA" is undefined GPIOA->CRL &= ~(0x0F << (BUTTON_PIN * 4)); // ???? main.c(36): error: #20: identifier "GPIOC" is undefined GPIOC->CRH &= ~(0xFF << 0); // ???? main.c(40): error: #20: identifier "GPIOB" is undefined GPIOB->CRH &= ~(0x0F << 0); main.c(48): warning: #223-D: function "__NOP" declared implicitly __NOP(); main.c(54): error: #20: identifier "GPIOB" is undefined GPIOB->BSRR = (1 << BUZZER_PIN); // ?? main.c(63): error: #20: identifier "GPIOC" is undefined GPIOC->BSRR = (1 << FAN_PIN1); // ?? main.c(66): error: #20: identifier "GPIOC" is undefined GPIOC->BRR = (1 << FAN_PIN1); // ?? main.c(70): error: #20: identifier "GPIOC" is undefined GPIOC->BRR = (1 << FAN_PIN1) | (1 << FAN_PIN2); // ?? main.c(82): error: #268: declaration may not appear after executable statement in block uint8_t fan_state = 0; main.c(83): error: #268: declaration may not appear after executable statement in block uint8_t fan_direction = 1; // 1=??, 0=?? main.c(97): warning: #223-D: function "sprintf" declared implicitly sprintf(buffer, "Temp: %.1fC", temp); main.c(113): error: #20: identifier "GPIOA" is undefined if ((GPIOA->IDR & (1 << BUTTON_PIN)) == 0) { // ????(???) main.c: 2 warnings, 27 errors compiling dht11.c... dht11.h(10): error: #20: identifier "uint8_t" is undefined uint8_t DHT11_Read(float *temp, float *humid); dht11.c(7): error: #20: identifier "GPIOA" is undefined GPIOA->CRL &= ~(0x0F << (4 * DHT11_PIN)); // ???? dht11.c(15): error: #20: identifier "uint8_t" is undefined uint8_t DHT11_Read(float *temp, float *humid) { dht11.c(16): error: #20: identifier "uint8_t" is undefined uint8_t data[5] = {0}; dht11.c(17): error: #20: identifier "uint8_t" is undefined uint8_t i, j; dht11.c(20): error: #20: identifier "GPIOA" is undefined GPIOA->CRL &= ~(0x0F << (4 * DHT11_PIN)); // ???? dht11.c(22): warning: #223-D: function "Delay_ms" declared implicitly Delay_ms(18); dht11.c(41): error: #268: declaration may not appear after executable statement in block uint32_t count = 0; dht11.c(41): error: #20: identifier "uint32_t" is undefined uint32_t count = 0; dht11.c: 1 warning, 8 errors compiling tft_gfx.c... tft_gfx.c(11): error: #20: identifier "RCC" is undefined RCC->APB2ENR |= RCC_APB2ENR_SPI1EN; tft_gfx.c(11): error: #20: identifier "RCC_APB2ENR_SPI1EN" is undefined RCC->APB2ENR |= RCC_APB2ENR_SPI1EN; tft_gfx.c(14): error: #20: identifier "GPIOA" is undefined GPIOA->CRL &= ~(0xFFF << 20); // ??PA5, PA6, PA7?? tft_gfx.c(14): warning: #61-D: integer operation result is out of range GPIOA->CRL &= ~(0xFFF << 20); // ??PA5, PA6, PA7?? tft_gfx.c(18): error: #20: identifier "SPI1" is undefined SPI1->CR1 = SPI_CR1_MSTR | SPI_CR1_SPE | SPI_CR1_SSM | SPI_CR1_SSI; tft_gfx.c(18): error: #20: identifier "SPI_CR1_MSTR" is undefined SPI1->CR1 = SPI_CR1_MSTR | SPI_CR1_SPE | SPI_CR1_SSM | SPI_CR1_SSI; tft_gfx.c(18): error: #20: identifier "SPI_CR1_SPE" is undefined SPI1->CR1 = SPI_CR1_MSTR | SPI_CR1_SPE | SPI_CR1_SSM | SPI_CR1_SSI; tft_gfx.c(18): error: #20: identifier "SPI_CR1_SSM" is undefined SPI1->CR1 = SPI_CR1_MSTR | SPI_CR1_SPE | SPI_CR1_SSM | SPI_CR1_SSI; tft_gfx.c(18): error: #20: identifier "SPI_CR1_SSI" is undefined SPI1->CR1 = SPI_CR1_MSTR | SPI_CR1_SPE | SPI_CR1_SSM | SPI_CR1_SSI; tft_gfx.c(19): error: #20: identifier "SPI_CR1_BR_0" is undefined SPI1->CR1 |= SPI_CR1_BR_0; // 36MHz/4 = 9MHz tft_gfx.c(25): error: #20: identifier "GPIOA" is undefined GPIOA->CRL &= ~(0xFF << (4 * TFT_CS_PIN)); tft_gfx.c(33): warning: #223-D: function "Delay_ms" declared implicitly Delay_ms(100); tft_gfx.c(43): error: #20: identifier "SPI1" is undefined while (!(SPI1->SR & SPI_SR_TXE)); // ???????? tft_gfx.c(43): error: #20: identifier "SPI_SR_TXE" is undefined while (!(SPI1->SR & SPI_SR_TXE)); // ???????? tft_gfx.c(45): error: #20: identifier "SPI_SR_BSY" is undefined while (SPI1->SR & SPI_SR_BSY); // ?????? tft_gfx.c(50): error: #20: identifier "GPIOA" is undefined GPIOA->BRR = (1 << TFT_DC_PIN); // DC=0(??) tft_gfx.c(58): error: #20: identifier "GPIOA" is undefined GPIOA->BSRR = (1 << TFT_DC_PIN); // DC=1(??) tft_gfx.c(85): error: #20: identifier "GPIOA" is undefined GPIOA->BSRR = (1 << TFT_DC_PIN); // DC=1(??) tft_gfx.c(88): error: #254: type name is not allowed for (uint32_t i = 0; i < 320 * 240; i++) { tft_gfx.c(88): error: #65: expected a ";" for (uint32_t i = 0; i < 320 * 240; i++) { tft_gfx.c(88): error: #20: identifier "i" is undefined for (uint32_t i = 0; i < 320 * 240; i++) { tft_gfx.c(103): warning: #223-D: function "TFT_DrawChar" declared implicitly TFT_DrawChar(x, y, *str, font, color); tft_gfx.c(100): warning: #177-D: variable "char_height" was declared but never referenced uint8_t char_height = font->height; tft_gfx.c(110): error: #159: declaration is incompatible with previous "TFT_DrawChar" (declared at line 103) void TFT_DrawChar(uint16_t x, uint16_t y, char c, FontDef *font, uint16_t color) { tft_gfx.c(114): error: #254: type name is not allowed for (uint8_t row = 0; row < font->height; row++) { tft_gfx.c(114): error: #65: expected a ";" for (uint8_t row = 0; row < font->height; row++) { tft_gfx.c(114): error: #20: identifier "row" is undefined for (uint8_t row = 0; row < font->height; row++) { tft_gfx.c(116): error: #254: type name is not allowed for (uint8_t col = 0; col < font->width; col++) { tft_gfx.c(116): error: #65: expected a ";" for (uint8_t col = 0; col < font->width; col++) { tft_gfx.c(116): error: #20: identifier "col" is undefined for (uint8_t col = 0; col < font->width; col++) { tft_gfx.c(118): warning: #223-D: function "TFT_DrawPixel" declared implicitly TFT_DrawPixel(x + col, y + row, color); tft_gfx.c(125): error: #159: declaration is incompatible with previous "TFT_DrawPixel" (declared at line 118) void TFT_DrawPixel(uint16_t x, uint16_t y, uint16_t color) { tft_gfx.c(135): error: #20: identifier "GPIOA" is undefined GPIOA->BSRR = (1 << TFT_DC_PIN); // DC=1(??) tft_gfx.c(138): error: #254: type name is not allowed for (uint32_t i = 0; i < w * h; i++) { tft_gfx.c(138): error: #65: expected a ";" for (uint32_t i = 0; i < w * h; i++) { tft_gfx.c: 5 warnings, 30 errors compiling system_stm32f10x.c... compiling fonts.c... fonts.c(29): error: #20: identifier "NULL" is undefined FontDef Font_16x26 = {16, 26, NULL}; // ?????????? fonts.c: 0 warnings, 1 error compiling misc.c... C:\Keil_v5\ARM\PACK\Keil\STM32F1xx_DFP\1.0.5\Device\StdPeriph_Driver\src\misc.c(99): warning: #223-D: function "assert_param" declared implicitly assert_param(IS_NVIC_PRIORITY_GROUP(NVIC_PriorityGroup)); C:\Keil_v5\ARM\PACK\Keil\STM32F1xx_DFP\1.0.5\Device\StdPeriph_Driver\src\misc.c(117): warning: #223-D: function "assert_param" declared implicitly assert_param(IS_FUNCTIONAL_STATE(NVIC_InitStruct->NVIC_IRQChannelCmd)); C:\Keil_v5\ARM\PACK\Keil\STM32F1xx_DFP\1.0.5\Device\StdPeriph_Driver\src\misc.c(159): warning: #223-D: function "assert_param" declared implicitly assert_param(IS_NVIC_VECTTAB(NVIC_VectTab)); C:\Keil_v5\ARM\PACK\Keil\STM32F1xx_DFP\1.0.5\Device\StdPeriph_Driver\src\misc.c(178): warning: #223-D: function "assert_param" declared implicitly assert_param(IS_NVIC_LP(LowPowerMode)); C:\Keil_v5\ARM\PACK\Keil\STM32F1xx_DFP\1.0.5\Device\StdPeriph_Driver\src\misc.c(202): warning: #223-D: function "assert_param" declared implicitly assert_param(IS_SYSTICK_CLK_SOURCE(SysTick_CLKSource)); C:\Keil_v5\ARM\PACK\Keil\STM32F1xx_DFP\1.0.5\Device\StdPeriph_Driver\src\misc.c: 5 warnings, 0 errors compiling stm32f10x_gpio.c... C:\Keil_v5\ARM\PACK\Keil\STM32F1xx_DFP\1.0.5\Device\StdPeriph_Driver\src\stm32f10x_gpio.c(111): warning: #223-D: function "assert_param" declared implicitly assert_param(IS_GPIO_ALL_PERIPH(GPIOx)); C:\Keil_v5\ARM\PACK\Keil\STM32F1xx_DFP\1.0.5\Device\StdPeriph_Driver\src\stm32f10x_gpio.c(178): warning: #223-D: function "assert_param" declared implicitly assert_param(IS_GPIO_ALL_PERIPH(GPIOx)); C:\Keil_v5\ARM\PACK\Keil\STM32F1xx_DFP\1.0.5\Device\StdPeriph_Driver\src\stm32f10x_gpio.c(286): warning: #223-D: function "assert_param" declared implicitly assert_param(IS_GPIO_ALL_PERIPH(GPIOx)); C:\Keil_v5\ARM\PACK\Keil\STM32F1xx_DFP\1.0.5\Device\StdPeriph_Driver\src\stm32f10x_gpio.c(308): warning: #223-D: function "assert_param" declared implicitly assert_param(IS_GPIO_ALL_PERIPH(GPIOx)); C:\Keil_v5\ARM\PACK\Keil\STM32F1xx_DFP\1.0.5\Device\StdPeriph_Driver\src\stm32f10x_gpio.c(324): warning: #223-D: function "assert_param" declared implicitly assert_param(IS_GPIO_ALL_PERIPH(GPIOx)); C:\Keil_v5\ARM\PACK\Keil\STM32F1xx_DFP\1.0.5\Device\StdPeriph_Driver\src\stm32f10x_gpio.c(346): warning: #223-D: function "assert_param" declared implicitly assert_param(IS_GPIO_ALL_PERIPH(GPIOx)); C:\Keil_v5\ARM\PACK\Keil\STM32F1xx_DFP\1.0.5\Device\StdPeriph_Driver\src\stm32f10x_gpio.c(361): warning: #223-D: function "assert_param" declared implicitly assert_param(IS_GPIO_ALL_PERIPH(GPIOx)); C:\Keil_v5\ARM\PACK\Keil\STM32F1xx_DFP\1.0.5\Device\StdPeriph_Driver\src\stm32f10x_gpio.c(377): warning: #223-D: function "assert_param" declared implicitly assert_param(IS_GPIO_ALL_PERIPH(GPIOx)); C:\Keil_v5\ARM\PACK\Keil\STM32F1xx_DFP\1.0.5\Device\StdPeriph_Driver\src\stm32f10x_gpio.c(397): warning: #223-D: function "assert_param" declared implicitly assert_param(IS_GPIO_ALL_PERIPH(GPIOx)); C:\Keil_v5\ARM\PACK\Keil\STM32F1xx_DFP\1.0.5\Device\StdPeriph_Driver\src\stm32f10x_gpio.c(420): warning: #223-D: function "assert_param" declared implicitly assert_param(IS_GPIO_ALL_PERIPH(GPIOx)); C:\Keil_v5\ARM\PACK\Keil\STM32F1xx_DFP\1.0.5\Device\StdPeriph_Driver\src\stm32f10x_gpio.c(437): warning: #223-D: function "assert_param" declared implicitly assert_param(IS_GPIO_ALL_PERIPH(GPIOx)); C:\Keil_v5\ARM\PACK\Keil\STM32F1xx_DFP\1.0.5\Device\StdPeriph_Driver\src\stm32f10x_gpio.c(466): warning: #223-D: function "assert_param" declared implicitly assert_param(IS_GPIO_EVENTOUT_PORT_SOURCE(GPIO_PortSource)); C:\Keil_v5\ARM\PACK\Keil\STM32F1xx_DFP\1.0.5\Device\StdPeriph_Driver\src\stm32f10x_gpio.c(486): warning: #223-D: function "assert_param" declared implicitly assert_param(IS_FUNCTIONAL_STATE(NewState)); C:\Keil_v5\ARM\PACK\Keil\STM32F1xx_DFP\1.0.5\Device\StdPeriph_Driver\src\stm32f10x_gpio.c(554): warning: #223-D: function "assert_param" declared implicitly assert_param(IS_GPIO_REMAP(GPIO_Remap)); C:\Keil_v5\ARM\PACK\Keil\STM32F1xx_DFP\1.0.5\Device\StdPeriph_Driver\src\stm32f10x_gpio.c(613): warning: #223-D: function "assert_param" declared implicitly assert_param(IS_GPIO_EXTI_PORT_SOURCE(GPIO_PortSource)); C:\Keil_v5\ARM\PACK\Keil\STM32F1xx_DFP\1.0.5\Device\StdPeriph_Driver\src\stm32f10x_gpio.c(632): warning: #223-D: function "assert_param" declared implicitly assert_param(IS_GPIO_ETH_MEDIA_INTERFACE(GPIO_ETH_MediaInterface)); C:\Keil_v5\ARM\PACK\Keil\STM32F1xx_DFP\1.0.5\Device\StdPeriph_Driver\src\stm32f10x_gpio.c: 16 warnings, 0 errors compiling stm32f10x_rcc.c... C:\Keil_v5\ARM\PACK\Keil\STM32F1xx_DFP\1.0.5\Device\StdPeriph_Driver\src\stm32f10x_rcc.c(273): warning: #223-D: function "assert_param" declared implicitly assert_param(IS_RCC_HSE(RCC_HSE)); C:\Keil_v5\ARM\PACK\Keil\STM32F1xx_DFP\1.0.5\Device\StdPeriph_Driver\src\stm32f10x_rcc.c(338): warning: #223-D: function "assert_param" declared implicitly assert_param(IS_RCC_CALIBRATION_VALUE(HSICalibrationValue)); C:\Keil_v5\ARM\PACK\Keil\STM32F1xx_DFP\1.0.5\Device\StdPeriph_Driver\src\stm32f10x_rcc.c(357): warning: #223-D: function "assert_param" declared implicitly assert_param(IS_FUNCTIONAL_STATE(NewState)); C:\Keil_v5\ARM\PACK\Keil\STM32F1xx_DFP\1.0.5\Device\StdPeriph_Driver\src\stm32f10x_rcc.c(383): warning: #223-D: function "assert_param" declared implicitly assert_param(IS_RCC_PLL_SOURCE(RCC_PLLSource)); C:\Keil_v5\ARM\PACK\Keil\STM32F1xx_DFP\1.0.5\Device\StdPeriph_Driver\src\stm32f10x_rcc.c(404): warning: #223-D: function "assert_param" declared implicitly assert_param(IS_FUNCTIONAL_STATE(NewState)); C:\Keil_v5\ARM\PACK\Keil\STM32F1xx_DFP\1.0.5\Device\StdPeriph_Driver\src\stm32f10x_rcc.c(568): warning: #223-D: function "assert_param" declared implicitly assert_param(IS_RCC_SYSCLK_SOURCE(RCC_SYSCLKSource)); C:\Keil_v5\ARM\PACK\Keil\STM32F1xx_DFP\1.0.5\Device\StdPeriph_Driver\src\stm32f10x_rcc.c(612): warning: #223-D: function "assert_param" declared implicitly assert_param(IS_RCC_HCLK(RCC_SYSCLK)); C:\Keil_v5\ARM\PACK\Keil\STM32F1xx_DFP\1.0.5\Device\StdPeriph_Driver\src\stm32f10x_rcc.c(638): warning: #223-D: function "assert_param" declared implicitly assert_param(IS_RCC_PCLK(RCC_HCLK)); C:\Keil_v5\ARM\PACK\Keil\STM32F1xx_DFP\1.0.5\Device\StdPeriph_Driver\src\stm32f10x_rcc.c(664): warning: #223-D: function "assert_param" declared implicitly assert_param(IS_RCC_PCLK(RCC_HCLK)); C:\Keil_v5\ARM\PACK\Keil\STM32F1xx_DFP\1.0.5\Device\StdPeriph_Driver\src\stm32f10x_rcc.c(703): warning: #223-D: function "assert_param" declared implicitly assert_param(IS_RCC_IT(RCC_IT)); C:\Keil_v5\ARM\PACK\Keil\STM32F1xx_DFP\1.0.5\Device\StdPeriph_Driver\src\stm32f10x_rcc.c(731): warning: #223-D: function "assert_param" declared implicitly assert_param(IS_RCC_USBCLK_SOURCE(RCC_USBCLKSource)); C:\Keil_v5\ARM\PACK\Keil\STM32F1xx_DFP\1.0.5\Device\StdPeriph_Driver\src\stm32f10x_rcc.c(770): warning: #223-D: function "assert_param" declared implicitly assert_param(IS_RCC_ADCCLK(RCC_PCLK2)); C:\Keil_v5\ARM\PACK\Keil\STM32F1xx_DFP\1.0.5\Device\StdPeriph_Driver\src\stm32f10x_rcc.c(832): warning: #223-D: function "assert_param" declared implicitly assert_param(IS_RCC_LSE(RCC_LSE)); C:\Keil_v5\ARM\PACK\Keil\STM32F1xx_DFP\1.0.5\Device\StdPeriph_Driver\src\stm32f10x_rcc.c(865): warning: #223-D: function "assert_param" declared implicitly assert_param(IS_FUNCTIONAL_STATE(NewState)); C:\Keil_v5\ARM\PACK\Keil\STM32F1xx_DFP\1.0.5\Device\StdPeriph_Driver\src\stm32f10x_rcc.c(882): warning: #223-D: function "assert_param" declared implicitly assert_param(IS_RCC_RTCCLK_SOURCE(RCC_RTCCLKSource)); C:\Keil_v5\ARM\PACK\Keil\STM32F1xx_DFP\1.0.5\Device\StdPeriph_Driver\src\stm32f10x_rcc.c(896): warning: #223-D: function "assert_param" declared implicitly assert_param(IS_FUNCTIONAL_STATE(NewState)); C:\Keil_v5\ARM\PACK\Keil\STM32F1xx_DFP\1.0.5\Device\StdPeriph_Driver\src\stm32f10x_rcc.c(1067): warning: #223-D: function "assert_param" declared implicitly assert_param(IS_RCC_AHB_PERIPH(RCC_AHBPeriph)); C:\Keil_v5\ARM\PACK\Keil\STM32F1xx_DFP\1.0.5\Device\StdPeriph_Driver\src\stm32f10x_rcc.c(1098): warning: #223-D: function "assert_param" declared implicitly assert_param(IS_RCC_APB2_PERIPH(RCC_APB2Periph)); C:\Keil_v5\ARM\PACK\Keil\STM32F1xx_DFP\1.0.5\Device\StdPeriph_Driver\src\stm32f10x_rcc.c(1129): warning: #223-D: function "assert_param" declared implicitly assert_param(IS_RCC_APB1_PERIPH(RCC_APB1Periph)); C:\Keil_v5\ARM\PACK\Keil\STM32F1xx_DFP\1.0.5\Device\StdPeriph_Driver\src\stm32f10x_rcc.c(1188): warning: #223-D: function "assert_param" declared implicitly assert_param(IS_RCC_APB2_PERIPH(RCC_APB2Periph)); C:\Keil_v5\ARM\PACK\Keil\STM32F1xx_DFP\1.0.5\Device\StdPeriph_Driver\src\stm32f10x_rcc.c(1219): warning: #223-D: function "assert_param" declared implicitly assert_param(IS_RCC_APB1_PERIPH(RCC_APB1Periph)); C:\Keil_v5\ARM\PACK\Keil\STM32F1xx_DFP\1.0.5\Device\StdPeriph_Driver\src\stm32f10x_rcc.c(1240): warning: #223-D: function "assert_param" declared implicitly assert_param(IS_FUNCTIONAL_STATE(NewState)); C:\Keil_v5\ARM\PACK\Keil\STM32F1xx_DFP\1.0.5\Device\StdPeriph_Driver\src\stm32f10x_rcc.c(1253): warning: #223-D: function "assert_param" declared implicitly assert_param(IS_FUNCTIONAL_STATE(NewState)); C:\Keil_v5\ARM\PACK\Keil\STM32F1xx_DFP\1.0.5\Device\StdPeriph_Driver\src\stm32f10x_rcc.c(1285): warning: #223-D: function "assert_param" declared implicitly assert_param(IS_RCC_MCO(RCC_MCO)); C:\Keil_v5\ARM\PACK\Keil\STM32F1xx_DFP\1.0.5\Device\StdPeriph_Driver\src\stm32f10x_rcc.c(1332): warning: #223-D: function "assert_param" declared implicitly assert_param(IS_RCC_FLAG(RCC_FLAG)); C:\Keil_v5\ARM\PACK\Keil\STM32F1xx_DFP\1.0.5\Device\StdPeriph_Driver\src\stm32f10x_rcc.c(1406): warning: #223-D: function "assert_param" declared implicitly assert_param(IS_RCC_GET_IT(RCC_IT)); C:\Keil_v5\ARM\PACK\Keil\STM32F1xx_DFP\1.0.5\Device\StdPeriph_Driver\src\stm32f10x_rcc.c(1451): warning: #223-D: function "assert_param" declared implicitly assert_param(IS_RCC_CLEAR_IT(RCC_IT)); C:\Keil_v5\ARM\PACK\Keil\STM32F1xx_DFP\1.0.5\Device\StdPeriph_Driver\src\stm32f10x_rcc.c: 27 warnings, 0 errors assembling startup_stm32f10x_hd.s... compiling system_stm32f10x.c... ".\Objects\01.axf" - 66 Error(s), 56 Warning(s). Target not created. Build Time Elapsed: 00:00:20
06-27
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

嵌入式Stark

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值