Commit 7adae683 authored by Mikaël BRIDAY's avatar Mikaël BRIDAY
Browse files

remove warning

parent 8409431d
# define CPU OPTIONS
set(CPU_OPTIONS -mthumb -mcpu=cortex-m4 -mfloat-abi=hard -mfpu=fpv4-sp-d16 -DSTM32F303x8 -DARMCM4)
#set(CPU_OPTIONS -mthumb -mcpu=cortex-m4 -mfloat-abi=soft -DSTM32F303x8 -DARMCM4)
#set(CPU_OPTIONS -mthumb -mcpu=cortex-m4 -mfloat-abi=hard -mfpu=fpv4-sp-d16 -DSTM32F303x8 -DARMCM4)
set(CPU_OPTIONS -mthumb -mcpu=cortex-m4 -mfloat-abi=soft -DSTM32F303x8 -DARMCM4)
set(CMAKE_C_FLAGS_DEBUG "-O0 -Wno-deprecated -Werror -DDEBUG")
set(CMAKE_CXX_FLAGS_DEBUG "-O0 -Wno-deprecated -Werror -DDEBUG")
......
......@@ -94,60 +94,60 @@ static uint8_t heap[__HEAP_SIZE] __attribute__ ((aligned(8), used, section(".h
Exception / Interrupt Handler
*----------------------------------------------------------------------------*/
/* Exceptions */
void NMI_Handler (void) __attribute__ ((weak, alias("Default_Handler")));
void HardFault_Handler (void) __attribute__ ((weak, alias("Default_Handler")));
void MemManage_Handler (void) __attribute__ ((weak, alias("Default_Handler")));
void BusFault_Handler (void) __attribute__ ((weak, alias("Default_Handler")));
void UsageFault_Handler (void) __attribute__ ((weak, alias("Default_Handler")));
void SVC_Handler (void) __attribute__ ((weak, alias("Default_Handler")));
void DebugMon_Handler (void) __attribute__ ((weak, alias("Default_Handler")));
void PendSV_Handler (void) __attribute__ ((weak, alias("Default_Handler")));
void SysTick_Handler (void) __attribute__ ((weak, alias("Default_Handler")));
void NMI_Handler (void) __attribute__ ((noreturn)) __attribute__ ((weak, alias("Default_Handler")));
void HardFault_Handler (void) __attribute__ ((noreturn)) __attribute__ ((weak, alias("Default_Handler")));
void MemManage_Handler (void) __attribute__ ((noreturn)) __attribute__ ((weak, alias("Default_Handler")));
void BusFault_Handler (void) __attribute__ ((noreturn)) __attribute__ ((weak, alias("Default_Handler")));
void UsageFault_Handler (void) __attribute__ ((noreturn)) __attribute__ ((weak, alias("Default_Handler")));
void SVC_Handler (void) __attribute__ ((noreturn)) __attribute__ ((weak, alias("Default_Handler")));
void DebugMon_Handler (void) __attribute__ ((noreturn)) __attribute__ ((weak, alias("Default_Handler")));
void PendSV_Handler (void) __attribute__ ((noreturn)) __attribute__ ((weak, alias("Default_Handler")));
void SysTick_Handler (void) __attribute__ ((noreturn)) __attribute__ ((weak, alias("Default_Handler")));
/* interrupts */
void WWDG_IRQHandler (void) __attribute__ ((weak, alias("Default_Handler")));
void PVD_IRQHandler (void) __attribute__ ((weak, alias("Default_Handler")));
void TAMP_STAMP_IRQHandler (void) __attribute__ ((weak, alias("Default_Handler")));
void RTC_WKUP_IRQHandler (void) __attribute__ ((weak, alias("Default_Handler")));
void FLASH_IRQHandler (void) __attribute__ ((weak, alias("Default_Handler")));
void RCC_IRQHandler (void) __attribute__ ((weak, alias("Default_Handler")));
void EXTI0_IRQHandler (void) __attribute__ ((weak, alias("Default_Handler")));
void EXTI1_IRQHandler (void) __attribute__ ((weak, alias("Default_Handler")));
void EXTI2_TSC_IRQHandler (void) __attribute__ ((weak, alias("Default_Handler")));
void EXTI3_IRQHandler (void) __attribute__ ((weak, alias("Default_Handler")));
void EXTI4_IRQHandler (void) __attribute__ ((weak, alias("Default_Handler")));
void DMA1_Channel1_IRQHandler (void) __attribute__ ((weak, alias("Default_Handler")));
void DMA1_Channel2_IRQHandler (void) __attribute__ ((weak, alias("Default_Handler")));
void DMA1_Channel3_IRQHandler (void) __attribute__ ((weak, alias("Default_Handler")));
void DMA1_Channel4_IRQHandler (void) __attribute__ ((weak, alias("Default_Handler")));
void DMA1_Channel5_IRQHandler (void) __attribute__ ((weak, alias("Default_Handler")));
void DMA1_Channel6_IRQHandler (void) __attribute__ ((weak, alias("Default_Handler")));
void DMA1_Channel7_IRQHandler (void) __attribute__ ((weak, alias("Default_Handler")));
void ADC1_2_IRQHandler (void) __attribute__ ((weak, alias("Default_Handler")));
void CAN_TX_IRQHandler (void) __attribute__ ((weak, alias("Default_Handler")));
void CAN_RX0_IRQHandler (void) __attribute__ ((weak, alias("Default_Handler")));
void CAN_RX1_IRQHandler (void) __attribute__ ((weak, alias("Default_Handler")));
void CAN_SCE_IRQHandler (void) __attribute__ ((weak, alias("Default_Handler")));
void EXTI9_5_IRQHandler (void) __attribute__ ((weak, alias("Default_Handler")));
void TIM1_BRK_TIM15_IRQHandler (void) __attribute__ ((weak, alias("Default_Handler")));
void TIM1_UP_TIM16_IRQHandler (void) __attribute__ ((weak, alias("Default_Handler")));
void TIM1_TRG_COM_TIM17_IRQHandler (void) __attribute__ ((weak, alias("Default_Handler")));
void TIM1_CC_IRQHandler (void) __attribute__ ((weak, alias("Default_Handler")));
void TIM2_IRQHandler (void) __attribute__ ((weak, alias("Default_Handler")));
void TIM3_IRQHandler (void) __attribute__ ((weak, alias("Default_Handler")));
void I2C1_EV_IRQHandler (void) __attribute__ ((weak, alias("Default_Handler")));
void I2C1_ER_IRQHandler (void) __attribute__ ((weak, alias("Default_Handler")));
void SPI1_IRQHandler (void) __attribute__ ((weak, alias("Default_Handler")));
void USART1_IRQHandler (void) __attribute__ ((weak, alias("Default_Handler")));
void USART2_IRQHandler (void) __attribute__ ((weak, alias("Default_Handler")));
void USART3_IRQHandler (void) __attribute__ ((weak, alias("Default_Handler")));
void EXTI15_10_IRQHandler (void) __attribute__ ((weak, alias("Default_Handler")));
void RTC_Alarm_IRQHandler (void) __attribute__ ((weak, alias("Default_Handler")));
void TIM6_DAC1_IRQHandler (void) __attribute__ ((weak, alias("Default_Handler")));
void TIM7_DAC2_IRQHandler (void) __attribute__ ((weak, alias("Default_Handler")));
void COMP2_IRQHandler (void) __attribute__ ((weak, alias("Default_Handler")));
void COMP4_6_IRQHandler (void) __attribute__ ((weak, alias("Default_Handler")));
void FPU_IRQHandler (void) __attribute__ ((weak, alias("Default_Handler")));
void WWDG_IRQHandler (void) __attribute__ ((noreturn)) __attribute__ ((weak, alias("Default_Handler")));
void PVD_IRQHandler (void) __attribute__ ((noreturn)) __attribute__ ((weak, alias("Default_Handler")));
void TAMP_STAMP_IRQHandler (void) __attribute__ ((noreturn)) __attribute__ ((weak, alias("Default_Handler")));
void RTC_WKUP_IRQHandler (void) __attribute__ ((noreturn)) __attribute__ ((weak, alias("Default_Handler")));
void FLASH_IRQHandler (void) __attribute__ ((noreturn)) __attribute__ ((weak, alias("Default_Handler")));
void RCC_IRQHandler (void) __attribute__ ((noreturn)) __attribute__ ((weak, alias("Default_Handler")));
void EXTI0_IRQHandler (void) __attribute__ ((noreturn)) __attribute__ ((weak, alias("Default_Handler")));
void EXTI1_IRQHandler (void) __attribute__ ((noreturn)) __attribute__ ((weak, alias("Default_Handler")));
void EXTI2_TSC_IRQHandler (void) __attribute__ ((noreturn)) __attribute__ ((weak, alias("Default_Handler")));
void EXTI3_IRQHandler (void) __attribute__ ((noreturn)) __attribute__ ((weak, alias("Default_Handler")));
void EXTI4_IRQHandler (void) __attribute__ ((noreturn)) __attribute__ ((weak, alias("Default_Handler")));
void DMA1_Channel1_IRQHandler (void) __attribute__ ((noreturn)) __attribute__ ((weak, alias("Default_Handler")));
void DMA1_Channel2_IRQHandler (void) __attribute__ ((noreturn)) __attribute__ ((weak, alias("Default_Handler")));
void DMA1_Channel3_IRQHandler (void) __attribute__ ((noreturn)) __attribute__ ((weak, alias("Default_Handler")));
void DMA1_Channel4_IRQHandler (void) __attribute__ ((noreturn)) __attribute__ ((weak, alias("Default_Handler")));
void DMA1_Channel5_IRQHandler (void) __attribute__ ((noreturn)) __attribute__ ((weak, alias("Default_Handler")));
void DMA1_Channel6_IRQHandler (void) __attribute__ ((noreturn)) __attribute__ ((weak, alias("Default_Handler")));
void DMA1_Channel7_IRQHandler (void) __attribute__ ((noreturn)) __attribute__ ((weak, alias("Default_Handler")));
void ADC1_2_IRQHandler (void) __attribute__ ((noreturn)) __attribute__ ((weak, alias("Default_Handler")));
void CAN_TX_IRQHandler (void) __attribute__ ((noreturn)) __attribute__ ((weak, alias("Default_Handler")));
void CAN_RX0_IRQHandler (void) __attribute__ ((noreturn)) __attribute__ ((weak, alias("Default_Handler")));
void CAN_RX1_IRQHandler (void) __attribute__ ((noreturn)) __attribute__ ((weak, alias("Default_Handler")));
void CAN_SCE_IRQHandler (void) __attribute__ ((noreturn)) __attribute__ ((weak, alias("Default_Handler")));
void EXTI9_5_IRQHandler (void) __attribute__ ((noreturn)) __attribute__ ((weak, alias("Default_Handler")));
void TIM1_BRK_TIM15_IRQHandler (void) __attribute__ ((noreturn)) __attribute__ ((weak, alias("Default_Handler")));
void TIM1_UP_TIM16_IRQHandler (void) __attribute__ ((noreturn)) __attribute__ ((weak, alias("Default_Handler")));
void TIM1_TRG_COM_TIM17_IRQHandler (void) __attribute__ ((noreturn)) __attribute__ ((weak, alias("Default_Handler")));
void TIM1_CC_IRQHandler (void) __attribute__ ((noreturn)) __attribute__ ((weak, alias("Default_Handler")));
void TIM2_IRQHandler (void) __attribute__ ((noreturn)) __attribute__ ((weak, alias("Default_Handler")));
void TIM3_IRQHandler (void) __attribute__ ((noreturn)) __attribute__ ((weak, alias("Default_Handler")));
void I2C1_EV_IRQHandler (void) __attribute__ ((noreturn)) __attribute__ ((weak, alias("Default_Handler")));
void I2C1_ER_IRQHandler (void) __attribute__ ((noreturn)) __attribute__ ((weak, alias("Default_Handler")));
void SPI1_IRQHandler (void) __attribute__ ((noreturn)) __attribute__ ((weak, alias("Default_Handler")));
void USART1_IRQHandler (void) __attribute__ ((noreturn)) __attribute__ ((weak, alias("Default_Handler")));
void USART2_IRQHandler (void) __attribute__ ((noreturn)) __attribute__ ((weak, alias("Default_Handler")));
void USART3_IRQHandler (void) __attribute__ ((noreturn)) __attribute__ ((weak, alias("Default_Handler")));
void EXTI15_10_IRQHandler (void) __attribute__ ((noreturn)) __attribute__ ((weak, alias("Default_Handler")));
void RTC_Alarm_IRQHandler (void) __attribute__ ((noreturn)) __attribute__ ((weak, alias("Default_Handler")));
void TIM6_DAC1_IRQHandler (void) __attribute__ ((noreturn)) __attribute__ ((weak, alias("Default_Handler")));
void TIM7_DAC2_IRQHandler (void) __attribute__ ((noreturn)) __attribute__ ((weak, alias("Default_Handler")));
void COMP2_IRQHandler (void) __attribute__ ((noreturn)) __attribute__ ((weak, alias("Default_Handler")));
void COMP4_6_IRQHandler (void) __attribute__ ((noreturn)) __attribute__ ((weak, alias("Default_Handler")));
void FPU_IRQHandler (void) __attribute__ ((noreturn)) __attribute__ ((weak, alias("Default_Handler")));
/*----------------------------------------------------------------------------
Exception / Interrupt Vector table
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment