ВходНаше всё Теги codebook 无线电组件 Поиск Опросы Закон Четверг
28 марта
700512
Balda (20.09.2016 16:26, просмотров: 4210)
Пытаюсь вникнуть в extern struct (первые шаги в си) ребят подскажите че этому KEILу нада? делаю заголовочный файл var_user.h --- #ifndef __var_user__ #define __var_user__ typedef struct { uint16_t rtc_mseconds; uint8_t rtc_seconds; uint8_t rtc_minuts; uint8_t rtc_hours; }RTC_Time_TypeDef; RTC_Time_TypeDef RTC_Time; typedef struct { uint8_t rtc_date; uint8_t rtc_month; uint8_t rtc_year; }RTC_Date_TypeDef; RTC_Date_TypeDef RTC_Date; #endif сделан include в stm32f4xx_it.c все ок стоит добавить include в main.c орет: tetst_timer7\tetst_timer7.axf: Error: L6200E: Symbol RTC_Date multiply defined (by main.o and stm32f4xx_it.o). tetst_timer7\tetst_timer7.axf: Error: L6200E: Symbol RTC_Time multiply defined (by main.o and stm32f4xx_it.o). Not enough information to list image symbols. Not enough information to list the image map.