Nie jestem pewien czy dobrze zrozumiałem Twoją radę. Dołączyłem do projektu GUI pliki znajdujące się w projekcie czujnika, stworzyłem drzewo katalogów w Keilu tak aby było połączeniem drzew z obu projektów, dodałem w zakładce C/C++ adresy do plików nagłówkowych, po skompilowaniu zniknęły błędy związane z dołączaniem plików, ale pojawiło się mnóstwo nowych błędów związanych ze składnią w kodzie.
Poniżej przesyłam błędy:
*** Using Compiler 'V5.05 update 2 (build 169)', folder: 'C:\Keil_v5\ARM\ARMCC\Bin'
Build target 'STM32F429I_DISCO_MB1075'
compiling BASIC_HelloWorld.c...
compiling main.c...
compiling stm32f4xx_it.c...
compiling DLGDay.c...
compiling DLGMain.c...
compiling DLGMonth.c...
compiling DLGSetDate2.c...
compiling DLGWeek.c...
compiling ili9341.c...
compiling stmpe811.c...
compiling stm32f429i_discovery.c...
compiling stm32f429i_discovery_io.c...
compiling stm32f429i_discovery_lcd.c...
compiling stm32f429i_discovery_sdram.c...
compiling stm32f429i_discovery_ts.c...
compiling system_stm32f4xx.c...
compiling stm32f4xx_hal.c...
compiling stm32f4xx_hal_cortex.c...
compiling stm32f4xx_hal_crc.c...
compiling stm32f4xx_hal_dma.c...
compiling stm32f4xx_hal_dma2d.c...
compiling stm32f4xx_hal_flash.c...
compiling stm32f4xx_hal_flash_ex.c...
compiling stm32f4xx_hal_gpio.c...
compiling stm32f4xx_hal_i2c.c...
compiling stm32f4xx_hal_i2c_ex.c...
compiling stm32f4xx_hal_i2s.c...
compiling stm32f4xx_hal_i2s_ex.c...
compiling stm32f4xx_hal_ltdc.c...
compiling stm32f4xx_hal_pwr.c...
compiling stm32f4xx_hal_pwr_ex.c...
compiling stm32f4xx_hal_rcc.c...
compiling stm32f4xx_hal_rcc_ex.c...
compiling stm32f4xx_hal_sdram.c...
compiling stm32f4xx_hal_spi.c...
compiling stm32f4xx_hal_tim.c...
compiling stm32f4xx_hal_tim_ex.c...
compiling stm32f4xx_hal_uart.c...
compiling stm32f4xx_ll_fmc.c...
compiling GUI_X.c...
compiling GUIConf.c...
compiling LCDConf_stm32f429i_disco_MB1075.c...
compiling misc.c...
..\STD\misc.c(121): warning: #223-D: function "assert_param" declared implicitly
assert_param(IS_NVIC_PRIORITY_GROUP(NVIC_PriorityGroup));
..\STD\misc.c(141): warning: #223-D: function "assert_param" declared implicitly
assert_param(IS_FUNCTIONAL_STATE(NVIC_InitStruct->NVIC_IRQChannelCmd));
..\STD\misc.c(183): warning: #223-D: function "assert_param" declared implicitly
assert_param(IS_NVIC_VECTTAB(NVIC_VectTab));
..\STD\misc.c(202): warning: #223-D: function "assert_param" declared implicitly
assert_param(IS_NVIC_LP(LowPowerMode));
..\STD\misc.c(226): warning: #223-D: function "assert_param" declared implicitly
assert_param(IS_SYSTICK_CLK_SOURCE(SysTick_CLKSource));
..\STD\misc.c: 5 warnings, 0 errors
compiling stm32f4xx_gpio.c...
..\STD\stm32f4xx_gpio.c(130): warning: #223-D: function "assert_param" declared implicitly
assert_param(IS_GPIO_ALL_PERIPH(GPIOx));
..\STD\stm32f4xx_gpio.c(207): warning: #223-D: function "assert_param" declared implicitly
assert_param(IS_GPIO_ALL_PERIPH(GPIOx));
..\STD\stm32f4xx_gpio.c(282): warning: #223-D: function "assert_param" declared implicitly
assert_param(IS_GPIO_ALL_PERIPH(GPIOx));
..\STD\stm32f4xx_gpio.c(328): warning: #223-D: function "assert_param" declared implicitly
assert_param(IS_GPIO_ALL_PERIPH(GPIOx));
..\STD\stm32f4xx_gpio.c(352): warning: #223-D: function "assert_param" declared implicitly
assert_param(IS_GPIO_ALL_PERIPH(GPIOx));
..\STD\stm32f4xx_gpio.c(371): warning: #223-D: function "assert_param" declared implicitly
assert_param(IS_GPIO_ALL_PERIPH(GPIOx));
..\STD\stm32f4xx_gpio.c(395): warning: #223-D: function "assert_param" declared implicitly
assert_param(IS_GPIO_ALL_PERIPH(GPIOx));
..\STD\stm32f4xx_gpio.c(415): warning: #223-D: function "assert_param" declared implicitly
assert_param(IS_GPIO_ALL_PERIPH(GPIOx));
..\STD\stm32f4xx_gpio.c(418): error: #136: struct "<unnamed>" has no field "BSRRL"
GPIOx->BSRRL = GPIO_Pin;
..\STD\stm32f4xx_gpio.c(436): warning: #223-D: function "assert_param" declared implicitly
assert_param(IS_GPIO_ALL_PERIPH(GPIOx));
..\STD\stm32f4xx_gpio.c(439): error: #136: struct "<unnamed>" has no field "BSRRH"
GPIOx->BSRRH = GPIO_Pin;
..\STD\stm32f4xx_gpio.c(458): warning: #223-D: function "assert_param" declared implicitly
assert_param(IS_GPIO_ALL_PERIPH(GPIOx));
..\STD\stm32f4xx_gpio.c(464): error: #136: struct "<unnamed>" has no field "BSRRL"
GPIOx->BSRRL = GPIO_Pin;
..\STD\stm32f4xx_gpio.c(468): error: #136: struct "<unnamed>" has no field "BSRRH"
GPIOx->BSRRH = GPIO_Pin ;
..\STD\stm32f4xx_gpio.c(483): warning: #223-D: function "assert_param" declared implicitly
assert_param(IS_GPIO_ALL_PERIPH(GPIOx));
..\STD\stm32f4xx_gpio.c(499): warning: #223-D: function "assert_param" declared implicitly
assert_param(IS_GPIO_ALL_PERIPH(GPIOx));
..\STD\stm32f4xx_gpio.c(585): warning: #223-D: function "assert_param" declared implicitly
assert_param(IS_GPIO_ALL_PERIPH(GPIOx));
..\STD\stm32f4xx_gpio.c(587): warning: #223-D: function "IS_GPIO_AF" declared implicitly
assert_param(IS_GPIO_AF(GPIO_AF));
..\STD\stm32f4xx_gpio.c: 14 warnings, 4 errors
compiling stm32f4xx_rcc.c...
..\STD\stm32f4xx_rcc.c(266): warning: #223-D: function "assert_param" declared implicitly
assert_param(IS_RCC_HSE(RCC_HSE));
..\STD\stm32f4xx_rcc.c(297): error: #20: identifier "HSE_STARTUP_TIMEOUT" is undefined
} while((startupcounter != HSE_STARTUP_TIMEOUT) && (hsestatus == RESET));
..\STD\stm32f4xx_rcc.c(322): warning: #223-D: function "assert_param" declared implicitly
assert_param(IS_RCC_CALIBRATION_VALUE(HSICalibrationValue));
..\STD\stm32f4xx_rcc.c(357): warning: #223-D: function "assert_param" declared implicitly
assert_param(IS_FUNCTIONAL_STATE(NewState));
..\STD\stm32f4xx_rcc.c(382): warning: #223-D: function "assert_param" declared implicitly
assert_param(IS_RCC_LSE(RCC_LSE));
..\STD\stm32f4xx_rcc.c(422): warning: #223-D: function "assert_param" declared implicitly
assert_param(IS_FUNCTIONAL_STATE(NewState));
..\STD\stm32f4xx_rcc.c(545): warning: #223-D: function "assert_param" declared implicitly
assert_param(IS_FUNCTIONAL_STATE(NewState));
..\STD\stm32f4xx_rcc.c(714): warning: #223-D: function "assert_param" declared implicitly
assert_param(IS_FUNCTIONAL_STATE(NewState));
..\STD\stm32f4xx_rcc.c(805): warning: #223-D: function "assert_param" declared implicitly
assert_param(IS_FUNCTIONAL_STATE(NewState));
..\STD\stm32f4xx_rcc.c(823): warning: #223-D: function "assert_param" declared implicitly
assert_param(IS_FUNCTIONAL_STATE(NewState));
..\STD\stm32f4xx_rcc.c(850): warning: #223-D: function "assert_param" declared implicitly
assert_param(IS_RCC_MCO1SOURCE(RCC_MCO1Source));
..\STD\stm32f4xx_rcc.c(888): warning: #223-D: function "assert_param" declared implicitly
assert_param(IS_RCC_MCO2SOURCE(RCC_MCO2Source));
..\STD\stm32f4xx_rcc.c(1084): warning: #223-D: function "assert_param" declared implicitly
assert_param(IS_RCC_SYSCLK_SOURCE(RCC_SYSCLKSource));
..\STD\stm32f4xx_rcc.c(1084): warning: #223-D: function "IS_RCC_SYSCLK_SOURCE" declared implicitly
assert_param(IS_RCC_SYSCLK_SOURCE(RCC_SYSCLKSource));
..\STD\stm32f4xx_rcc.c(1138): warning: #223-D: function "assert_param" declared implicitly
assert_param(IS_RCC_HCLK(RCC_SYSCLK));
..\STD\stm32f4xx_rcc.c(1170): warning: #223-D: function "assert_param" declared implicitly
assert_param(IS_RCC_PCLK(RCC_HCLK));
..\STD\stm32f4xx_rcc.c(1201): warning: #223-D: function "assert_param" declared implicitly
assert_param(IS_RCC_PCLK(RCC_HCLK));
..\STD\stm32f4xx_rcc.c(1261): error: #20: identifier "HSI_VALUE" is undefined
RCC_Clocks->SYSCLK_Frequency = HSI_VALUE;
..\STD\stm32f4xx_rcc.c(1264): error: #20: identifier "HSE_VALUE" is undefined
RCC_Clocks->SYSCLK_Frequency = HSE_VALUE;
..\STD\stm32f4xx_rcc.c(1406): warning: #223-D: function "assert_param" declared implicitly
assert_param(IS_RCC_RTCCLK_SOURCE(RCC_RTCCLKSource));
..\STD\stm32f4xx_rcc.c(1436): warning: #223-D: function "assert_param" declared implicitly
assert_param(IS_FUNCTIONAL_STATE(NewState));
..\STD\stm32f4xx_rcc.c(1453): warning: #223-D: function "assert_param" declared implicitly
assert_param(IS_FUNCTIONAL_STATE(NewState));
..\STD\stm32f4xx_rcc.c(1648): warning: #223-D: function "assert_param" declared implicitly
assert_param(IS_RCC_PLLI2S_DIVQ_VALUE(RCC_PLLI2SDivQ));
..\STD\stm32f4xx_rcc.c(1680): warning: #223-D: function "assert_param" declared implicitly
assert_param(IS_RCC_PLLSAI_DIVQ_VALUE(RCC_PLLSAIDivQ));
..\STD\stm32f4xx_rcc.c(1716): warning: #223-D: function "assert_param" declared implicitly
assert_param(IS_RCC_PLLSAI_DIVR_VALUE(RCC_PLLSAIDivR));
..\STD\stm32f4xx_rcc.c(1751): warning: #223-D: function "assert_param" declared implicitly
assert_param(IS_RCC_TIMCLK_PRESCALER(RCC_TIMCLKPrescaler));
..\STD\stm32f4xx_rcc.c(1793): warning: #223-D: function "assert_param" declared implicitly
assert_param(IS_RCC_AHB1_CLOCK_PERIPH(RCC_AHB1Periph));
..\STD\stm32f4xx_rcc.c(1825): warning: #223-D: function "assert_param" declared implicitly
assert_param(IS_RCC_AHB2_PERIPH(RCC_AHB2Periph));
..\STD\stm32f4xx_rcc.c(1911): warning: #223-D: function "assert_param" declared implicitly
assert_param(IS_RCC_APB1_PERIPH(RCC_APB1Periph));
..\STD\stm32f4xx_rcc.c(1957): warning: #223-D: function "assert_param" declared implicitly
assert_param(IS_RCC_APB2_PERIPH(RCC_APB2Periph));
..\STD\stm32f4xx_rcc.c(1999): warning: #223-D: function "assert_param" declared implicitly
assert_param(IS_RCC_AHB1_RESET_PERIPH(RCC_AHB1Periph));
..\STD\stm32f4xx_rcc.c(2028): warning: #223-D: function "assert_param" declared implicitly
assert_param(IS_RCC_AHB2_PERIPH(RCC_AHB2Periph));
..\STD\stm32f4xx_rcc.c(2108): warning: #223-D: function "assert_param" declared implicitly
assert_param(IS_RCC_APB1_PERIPH(RCC_APB1Periph));
..\STD\stm32f4xx_rcc.c(2150): warning: #223-D: function "assert_param" declared implicitly
assert_param(IS_RCC_APB2_RESET_PERIPH(RCC_APB2Periph));
..\STD\stm32f4xx_rcc.c(2199): warning: #223-D: function "assert_param" declared implicitly
assert_param(IS_RCC_AHB1_LPMODE_PERIPH(RCC_AHB1Periph));
..\STD\stm32f4xx_rcc.c(2231): warning: #223-D: function "assert_param" declared implicitly
assert_param(IS_RCC_AHB2_PERIPH(RCC_AHB2Periph));
..\STD\stm32f4xx_rcc.c(2317): warning: #223-D: function "assert_param" declared implicitly
assert_param(IS_RCC_APB1_PERIPH(RCC_APB1Periph));
..\STD\stm32f4xx_rcc.c(2363): warning: #223-D: function "assert_param" declared implicitly
assert_param(IS_RCC_APB2_PERIPH(RCC_APB2Periph));
..\STD\stm32f4xx_rcc.c(2387): warning: #223-D: function "assert_param" declared implicitly
assert_param(IS_RCC_LSE_MODE(RCC_Mode));
..\STD\stm32f4xx_rcc.c(2391): error: #20: identifier "RCC_BDCR_LSEMOD" is undefined
ET_BIT(RCC->BDCR, RCC_BDCR_LSEMOD);
..\STD\stm32f4xx_rcc.c(2395): error: #20: identifier "RCC_BDCR_LSEMOD" is undefined
LEAR_BIT(RCC->BDCR, RCC_BDCR_LSEMOD);
..\STD\stm32f4xx_rcc.c(2585): warning: #223-D: function "assert_param" declared implicitly
assert_param(IS_RCC_IT(RCC_IT));
..\STD\stm32f4xx_rcc.c(2626): warning: #223-D: function "assert_param" declared implicitly
assert_param(IS_RCC_FLAG(RCC_FLAG));
..\STD\stm32f4xx_rcc.c(2689): warning: #223-D: function "assert_param" declared implicitly
assert_param(IS_RCC_GET_IT(RCC_IT));
..\STD\stm32f4xx_rcc.c(2721): warning: #223-D: function "assert_param" declared implicitly
assert_param(IS_RCC_CLEAR_IT(RCC_IT));
..\STD\stm32f4xx_rcc.c: 40 warnings, 5 errors
compiling stm32f4xx_usart.c...
..\STD\stm32f4xx_usart.c(190): warning: #223-D: function "assert_param" declared implicitly
assert_param(IS_USART_ALL_PERIPH(USARTx));
..\STD\stm32f4xx_usart.c(254): warning: #223-D: function "assert_param" declared implicitly
assert_param(IS_USART_ALL_PERIPH(USARTx));
..\STD\stm32f4xx_usart.c(383): warning: #223-D: function "assert_param" declared implicitly
assert_param(IS_USART_1236_PERIPH(USARTx));
..\STD\stm32f4xx_usart.c(430): warning: #223-D: function "assert_param" declared implicitly
assert_param(IS_USART_ALL_PERIPH(USARTx));
..\STD\stm32f4xx_usart.c(456): warning: #223-D: function "assert_param" declared implicitly
assert_param(IS_USART_ALL_PERIPH(USARTx));
..\STD\stm32f4xx_usart.c(477): warning: #223-D: function "assert_param" declared implicitly
assert_param(IS_USART_ALL_PERIPH(USARTx));
..\STD\stm32f4xx_usart.c(503): warning: #223-D: function "assert_param" declared implicitly
assert_param(IS_USART_ALL_PERIPH(USARTx));
..\STD\stm32f4xx_usart.c(560): warning: #223-D: function "assert_param" declared implicitly
assert_param(IS_USART_ALL_PERIPH(USARTx));
..\STD\stm32f4xx_usart.c(576): warning: #223-D: function "assert_param" declared implicitly
assert_param(IS_USART_ALL_PERIPH(USARTx));
..\STD\stm32f4xx_usart.c(628): warning: #223-D: function "assert_param" declared implicitly
assert_param(IS_USART_ALL_PERIPH(USARTx));
..\STD\stm32f4xx_usart.c(648): warning: #223-D: function "assert_param" declared implicitly
assert_param(IS_USART_ALL_PERIPH(USARTx));
..\STD\stm32f4xx_usart.c(675): warning: #223-D: function "assert_param" declared implicitly
assert_param(IS_USART_ALL_PERIPH(USARTx));
..\STD\stm32f4xx_usart.c(744): warning: #223-D: function "assert_param" declared implicitly
assert_param(IS_USART_ALL_PERIPH(USARTx));
..\STD\stm32f4xx_usart.c(762): warning: #223-D: function "assert_param" declared implicitly
assert_param(IS_USART_ALL_PERIPH(USARTx));
..\STD\stm32f4xx_usart.c(786): warning: #223-D: function "assert_param" declared implicitly
assert_param(IS_USART_ALL_PERIPH(USARTx));
..\STD\stm32f4xx_usart.c(839): warning: #223-D: function "assert_param" declared implicitly
assert_param(IS_USART_ALL_PERIPH(USARTx));
..\STD\stm32f4xx_usart.c(923): warning: #223-D: function "assert_param" declared implicitly
assert_param(IS_USART_1236_PERIPH(USARTx));
..\STD\stm32f4xx_usart.c(942): warning: #223-D: function "assert_param" declared implicitly
assert_param(IS_USART_1236_PERIPH(USARTx));
..\STD\stm32f4xx_usart.c(967): warning: #223-D: function "assert_param" declared implicitly
assert_param(IS_USART_1236_PERIPH(USARTx));
..\STD\stm32f4xx_usart.c(1038): warning: #223-D: function "assert_param" declared implicitly
assert_param(IS_USART_ALL_PERIPH(USARTx));
..\STD\stm32f4xx_usart.c(1056): warning: #223-D: function "assert_param" declared implicitly
assert_param(IS_USART_ALL_PERIPH(USARTx));
..\STD\stm32f4xx_usart.c(1102): warning: #223-D: function "assert_param" declared implicitly
assert_param(IS_USART_ALL_PERIPH(USARTx));
..\STD\stm32f4xx_usart.c(1236): warning: #223-D: function "assert_param" declared implicitly
assert_param(IS_USART_ALL_PERIPH(USARTx));
..\STD\stm32f4xx_usart.c(1299): warning: #223-D: function "assert_param" declared implicitly
assert_param(IS_USART_ALL_PERIPH(USARTx));
..\STD\stm32f4xx_usart.c(1347): warning: #223-D: function "assert_param" declared implicitly
assert_param(IS_USART_ALL_PERIPH(USARTx));
..\STD\stm32f4xx_usart.c(1383): warning: #223-D: function "assert_param" declared implicitly
assert_param(IS_USART_ALL_PERIPH(USARTx));
..\STD\stm32f4xx_usart.c(1456): warning: #223-D: function "assert_param" declared implicitly
assert_param(IS_USART_ALL_PERIPH(USARTx));
..\STD\stm32f4xx_usart.c: 27 warnings, 0 errors
compiling tm_stm32f4_delay.c...
compiling tm_stm32f4_disco.c...
..\00-STM32F429_LIBRARIES\tm_stm32f4_disco.h(244): error: #35: #error directive: "tm_stm32f4_disco.h: Please select your board. Open tm_stm32f4_disco.h and follow instructions!!"
#error "tm_stm32f4_disco.h: Please select your board. Open tm_stm32f4_disco.h and follow instructions!!"
..\00-STM32F429_LIBRARIES\tm_stm32f4_disco.c: 0 warnings, 1 error
compiling tm_stm32f4_ds18b20.c...
compiling tm_stm32f4_gpio.c...
compiling tm_stm32f4_onewire.c...
..\00-STM32F429_LIBRARIES\tm_stm32f4_onewire.c(37): error: #136: struct "<unnamed>" has no field "BSRRH"
NEWIRE_LOW(OneWireStruct);
..\00-STM32F429_LIBRARIES\tm_stm32f4_onewire.c(58): error: #136: struct "<unnamed>" has no field "BSRRH"
NEWIRE_LOW(OneWireStruct);
..\00-STM32F429_LIBRARIES\tm_stm32f4_onewire.c(70): error: #136: struct "<unnamed>" has no field "BSRRH"
NEWIRE_LOW(OneWireStruct);
..\00-STM32F429_LIBRARIES\tm_stm32f4_onewire.c(88): error: #136: struct "<unnamed>" has no field "BSRRH"
NEWIRE_LOW(OneWireStruct);
..\00-STM32F429_LIBRARIES\tm_stm32f4_onewire.c: 0 warnings, 4 errors
compiling tm_stm32f4_usart.c...
..\00-STM32F429_LIBRARIES\tm_stm32f4_usart.c(740): warning: #177-D: function "TM_USART_INT_Init" was declared but never referenced
static void TM_USART_INT_Init(
..\00-STM32F429_LIBRARIES\tm_stm32f4_usart.c: 1 warning, 0 errors
compiling stm32f4xx_it.c...
compiling system_stm32f4xx.c...
..\User\system_stm32f4xx.c(504): error: #20: identifier "HSI_VALUE" is undefined
SystemCoreClock = HSI_VALUE;
..\User\system_stm32f4xx.c(507): error: #20: identifier "HSE_VALUE" is undefined
SystemCoreClock = HSE_VALUE;
..\User\system_stm32f4xx.c(496): warning: #550-D: variable "pllsource" was set but never used
uint32_t tmp = 0, pllvco = 0, pllp = 2, pllsource = 0, pllm = 2;
..\User\system_stm32f4xx.c(496): warning: #550-D: variable "pllm" was set but never used
uint32_t tmp = 0, pllvco = 0, pllp = 2, pllsource = 0, pllm = 2;
..\User\system_stm32f4xx.c: 2 warnings, 2 errors
"STM32F429I_DISCO_MB1075\STM32F429I_DISCO_MB1075.axf" - 16 Error(s), 89 Warning(s).
Target not created.
Build Time Elapsed: 00:01:06
Zauważyłem że błędy związane z "error: #136: struct "<unnamed>" has no field "BSRRH"" są spowodowane tym że ta struktura jest zdefiniowana w pliku "stm32f4xx.h" który dołączyłem, jednak program bierze do kompilacji inną wersję tego pliku dołączoną wcześniej do projektu automatycznie, a nie widzi mojej.