Skip to content

Instantly share code, notes, and snippets.

Created December 22, 2017 15:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/cd3e1a1af3855f5249a65002c16d121f to your computer and use it in GitHub Desktop.
Save anonymous/cd3e1a1af3855f5249a65002c16d121f to your computer and use it in GitHub Desktop.
hal test
// Начало библиотеки
// *****************
#ifndef ILI932X_CONF_H
#define ILI932X_CONF_H 120
//#include "stm32f1xx_hal.h"
//#include "hardware_conf.h"
#ifdef __cplusplus
extern "C" {
#endif
#include "stm32f1xx_hal.h"
// Ошибки компиляции
// *****************
compiling ILI932x.c...
D:\develop\Keil_5.24\ARM\PACK\Keil\STM32F1xx_DFP\2.2.0\Device\Include\stm32f10x.h(133): warning: #47-D: incompatible redefinition of macro "HSE_STARTUP_TIMEOUT" (declared at line 105 of "../Inc/stm32f1xx_hal_conf.h")
#define HSE_STARTUP_TIMEOUT ((uint16_t)0x0500) /*!< Time out for HSE start up */
D:\develop\Keil_5.24\ARM\PACK\Keil\STM32F1xx_DFP\2.2.0\Device\Include\stm32f10x.h(163): warning: #47-D: incompatible redefinition of macro "__MPU_PRESENT" (declared at line 69 of "../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h")
#define __MPU_PRESENT 0 /*!< Other STM32 devices does not provide an MPU */
D:\develop\Keil_5.24\ARM\PACK\Keil\STM32F1xx_DFP\2.2.0\Device\Include\stm32f10x.h(165): warning: #47-D: incompatible redefinition of macro "__NVIC_PRIO_BITS" (declared at line 70 of "../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h")
#define __NVIC_PRIO_BITS 4 /*!< STM32 uses 4 Bits for the Priority Levels */
D:\develop\Keil_5.24\ARM\PACK\Keil\STM32F1xx_DFP\2.2.0\Device\Include\stm32f10x.h(166): warning: #47-D: incompatible redefinition of macro "__Vendor_SysTickConfig" (declared at line 71 of "../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h")
#define __Vendor_SysTickConfig 0 /*!< Set to 1 if different SysTick Config is used */
D:\develop\Keil_5.24\ARM\PACK\Keil\STM32F1xx_DFP\2.2.0\Device\Include\stm32f10x.h(175): error: #101: "NonMaskableInt_IRQn" has already been declared in the current scope
NonMaskableInt_IRQn = -14, /*!< 2 Non Maskable Interrupt */
D:\develop\Keil_5.24\ARM\PACK\Keil\STM32F1xx_DFP\2.2.0\Device\Include\stm32f10x.h(176): error: #101: "MemoryManagement_IRQn" has already been declared in the current scope
MemoryManagement_IRQn = -12, /*!< 4 Cortex-M3 Memory Management Interrupt */
D:\develop\Keil_5.24\ARM\PACK\Keil\STM32F1xx_DFP\2.2.0\Device\Include\stm32f10x.h(177): error: #101: "BusFault_IRQn" has already been declared in the current scope
BusFault_IRQn = -11, /*!< 5 Cortex-M3 Bus Fault Interrupt */
D:\develop\Keil_5.24\ARM\PACK\Keil\STM32F1xx_DFP\2.2.0\Device\Include\stm32f10x.h(178): error: #101: "UsageFault_IRQn" has already been declared in the current scope
UsageFault_IRQn = -10, /*!< 6 Cortex-M3 Usage Fault Interrupt */
D:\develop\Keil_5.24\ARM\PACK\Keil\STM32F1xx_DFP\2.2.0\Device\Include\stm32f10x.h(179): error: #101: "SVCall_IRQn" has already been declared in the current scope
SVCall_IRQn = -5, /*!< 11 Cortex-M3 SV Call Interrupt */
D:\develop\Keil_5.24\ARM\PACK\Keil\STM32F1xx_DFP\2.2.0\Device\Include\stm32f10x.h(180): error: #101: "DebugMonitor_IRQn" has already been declared in the current scope
DebugMonitor_IRQn = -4, /*!< 12 Cortex-M3 Debug Monitor Interrupt */
D:\develop\Keil_5.24\ARM\PACK\Keil\STM32F1xx_DFP\2.2.0\Device\Include\stm32f10x.h(181): error: #101: "PendSV_IRQn" has already been declared in the current scope
PendSV_IRQn = -2, /*!< 14 Cortex-M3 Pend SV Interrupt */
D:\develop\Keil_5.24\ARM\PACK\Keil\STM32F1xx_DFP\2.2.0\Device\Include\stm32f10x.h(182): error: #101: "SysTick_IRQn" has already been declared in the current scope
SysTick_IRQn = -1, /*!< 15 Cortex-M3 System Tick Interrupt */
D:\develop\Keil_5.24\ARM\PACK\Keil\STM32F1xx_DFP\2.2.0\Device\Include\stm32f10x.h(185): error: #101: "WWDG_IRQn" has already been declared in the current scope
WWDG_IRQn = 0, /*!< Window WatchDog Interrupt */
D:\develop\Keil_5.24\ARM\PACK\Keil\STM32F1xx_DFP\2.2.0\Device\Include\stm32f10x.h(186): error: #101: "PVD_IRQn" has already been declared in the current scope
PVD_IRQn = 1, /*!< PVD through EXTI Line detection Interrupt */
D:\develop\Keil_5.24\ARM\PACK\Keil\STM32F1xx_DFP\2.2.0\Device\Include\stm32f10x.h(187): error: #101: "TAMPER_IRQn" has already been declared in the current scope
TAMPER_IRQn = 2, /*!< Tamper Interrupt */
D:\develop\Keil_5.24\ARM\PACK\Keil\STM32F1xx_DFP\2.2.0\Device\Include\stm32f10x.h(188): error: #101: "RTC_IRQn" has already been declared in the current scope
RTC_IRQn = 3, /*!< RTC global Interrupt */
D:\develop\Keil_5.24\ARM\PACK\Keil\STM32F1xx_DFP\2.2.0\Device\Include\stm32f10x.h(189): error: #101: "FLASH_IRQn" has already been declared in the current scope
FLASH_IRQn = 4, /*!< FLASH global Interrupt */
D:\develop\Keil_5.24\ARM\PACK\Keil\STM32F1xx_DFP\2.2.0\Device\Include\stm32f10x.h(190): error: #101: "RCC_IRQn" has already been declared in the current scope
RCC_IRQn = 5, /*!< RCC global Interrupt */
D:\develop\Keil_5.24\ARM\PACK\Keil\STM32F1xx_DFP\2.2.0\Device\Include\stm32f10x.h(191): error: #101: "EXTI0_IRQn" has already been declared in the current scope
EXTI0_IRQn = 6, /*!< EXTI Line0 Interrupt */
D:\develop\Keil_5.24\ARM\PACK\Keil\STM32F1xx_DFP\2.2.0\Device\Include\stm32f10x.h(192): error: #101: "EXTI1_IRQn" has already been declared in the current scope
EXTI1_IRQn = 7, /*!< EXTI Line1 Interrupt */
D:\develop\Keil_5.24\ARM\PACK\Keil\STM32F1xx_DFP\2.2.0\Device\Include\stm32f10x.h(193): error: #101: "EXTI2_IRQn" has already been declared in the current scope
EXTI2_IRQn = 8, /*!< EXTI Line2 Interrupt */
D:\develop\Keil_5.24\ARM\PACK\Keil\STM32F1xx_DFP\2.2.0\Device\Include\stm32f10x.h(194): error: #101: "EXTI3_IRQn" has already been declared in the current scope
EXTI3_IRQn = 9, /*!< EXTI Line3 Interrupt */
D:\develop\Keil_5.24\ARM\PACK\Keil\STM32F1xx_DFP\2.2.0\Device\Include\stm32f10x.h(195): error: #101: "EXTI4_IRQn" has already been declared in the current scope
EXTI4_IRQn = 10, /*!< EXTI Line4 Interrupt */
D:\develop\Keil_5.24\ARM\PACK\Keil\STM32F1xx_DFP\2.2.0\Device\Include\stm32f10x.h(196): error: #101: "DMA1_Channel1_IRQn" has already been declared in the current scope
DMA1_Channel1_IRQn = 11, /*!< DMA1 Channel 1 global Interrupt */
D:\develop\Keil_5.24\ARM\PACK\Keil\STM32F1xx_DFP\2.2.0\Device\Include\stm32f10x.h(197): error: #101: "DMA1_Channel2_IRQn" has already been declared in the current scope
DMA1_Channel2_IRQn = 12, /*!< DMA1 Channel 2 global Interrupt */
D:\develop\Keil_5.24\ARM\PACK\Keil\STM32F1xx_DFP\2.2.0\Device\Include\stm32f10x.h(198): error: #101: "DMA1_Channel3_IRQn" has already been declared in the current scope
DMA1_Channel3_IRQn = 13, /*!< DMA1 Channel 3 global Interrupt */
D:\develop\Keil_5.24\ARM\PACK\Keil\STM32F1xx_DFP\2.2.0\Device\Include\stm32f10x.h(199): error: #101: "DMA1_Channel4_IRQn" has already been declared in the current scope
DMA1_Channel4_IRQn = 14, /*!< DMA1 Channel 4 global Interrupt */
D:\develop\Keil_5.24\ARM\PACK\Keil\STM32F1xx_DFP\2.2.0\Device\Include\stm32f10x.h(200): error: #101: "DMA1_Channel5_IRQn" has already been declared in the current scope
DMA1_Channel5_IRQn = 15, /*!< DMA1 Channel 5 global Interrupt */
D:\develop\Keil_5.24\ARM\PACK\Keil\STM32F1xx_DFP\2.2.0\Device\Include\stm32f10x.h(201): error: #101: "DMA1_Channel6_IRQn" has already been declared in the current scope
DMA1_Channel6_IRQn = 16, /*!< DMA1 Channel 6 global Interrupt */
D:\develop\Keil_5.24\ARM\PACK\Keil\STM32F1xx_DFP\2.2.0\Device\Include\stm32f10x.h(202): error: #101: "DMA1_Channel7_IRQn" has already been declared in the current scope
DMA1_Channel7_IRQn = 17, /*!< DMA1 Channel 7 global Interrupt */
D:\develop\Keil_5.24\ARM\PACK\Keil\STM32F1xx_DFP\2.2.0\Device\Include\stm32f10x.h(249): error: #101: "ADC1_2_IRQn" has already been declared in the current scope
ADC1_2_IRQn = 18, /*!< ADC1 and ADC2 global Interrupt */
D:\develop\Keil_5.24\ARM\PACK\Keil\STM32F1xx_DFP\2.2.0\Device\Include\stm32f10x.h(250): error: #101: "USB_HP_CAN1_TX_IRQn" has already been declared in the current scope
USB_HP_CAN1_TX_IRQn = 19, /*!< USB Device High Priority or CAN1 TX Interrupts */
D:\develop\Keil_5.24\ARM\PACK\Keil\STM32F1xx_DFP\2.2.0\Device\Include\stm32f10x.h(251): error: #101: "USB_LP_CAN1_RX0_IRQn" has already been declared in the current scope
USB_LP_CAN1_RX0_IRQn = 20, /*!< USB Device Low Priority or CAN1 RX0 Interrupts */
D:\develop\Keil_5.24\ARM\PACK\Keil\STM32F1xx_DFP\2.2.0\Device\Include\stm32f10x.h(252): error: #101: "CAN1_RX1_IRQn" has already been declared in the current scope
CAN1_RX1_IRQn = 21, /*!< CAN1 RX1 Interrupt */
..\..\lib\ili9328_8bit_hal\ILI932x.c: 4 warnings, 30 errors
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment