Files
@ e8e5873934fa
Branch filter:
Location: windsonde/Source/system/interrupts.c - annotation
e8e5873934fa
962 B
text/plain
Move power to config.h
0f04af7169be 0f04af7169be 0f04af7169be 0f04af7169be 0f04af7169be 0f04af7169be 0f04af7169be 0f04af7169be 0f04af7169be 0f04af7169be 55ef914749dc 67d1f9d02048 0f04af7169be 0f04af7169be 0f04af7169be 0f04af7169be 0f04af7169be 0f04af7169be 0f04af7169be 0f04af7169be 0f04af7169be 0f04af7169be 0f04af7169be 0f04af7169be 0f04af7169be 0f04af7169be 0f04af7169be 0f04af7169be 0f04af7169be 0f04af7169be 34a13647cf13 34a13647cf13 34a13647cf13 34a13647cf13 34a13647cf13 55ef914749dc 55ef914749dc 34a13647cf13 55ef914749dc 34a13647cf13 34a13647cf13 67d1f9d02048 67d1f9d02048 67d1f9d02048 67d1f9d02048 67d1f9d02048 2ee6c8e67f32 2ee6c8e67f32 | //
// Interrupts: ISRs for all global interrupts
//
#include <system/gpio.h>
#include <system/stm32f0xx_it.h>
#include "stm32f0xx_hal.h"
#include "stm32f0xx.h"
#include "system/gpio.h"
#include "aprs/afsk.h"
#include "bme280.h"
#include "system/adc.h"
// Systick
void SysTick_Handler(void)
{
HAL_IncTick();
HAL_SYSTICK_IRQHandler();
}
void TIM1_CC_IRQHandler(void)
{
HAL_TIM_IRQHandler(afsk_timer_gethandle());
}
void TIM1_BRK_UP_TRG_COM_IRQHandler(void)
{
HAL_TIM_IRQHandler(afsk_timer_gethandle());
}
// Handle I2C interrupts
void I2C1_IRQHandler(void)
{
if (bme280_get_i2c_handle()->Instance->ISR & (I2C_FLAG_BERR | I2C_FLAG_ARLO | I2C_FLAG_OVR)) {
HAL_I2C_ER_IRQHandler(bme280_get_i2c_handle());
} else {
HAL_I2C_EV_IRQHandler(bme280_get_i2c_handle());
}
}
void DMA1_Channel1_IRQHandler(void)
{
HAL_DMA_IRQHandler(adc__hdma_gethandle());
}
// vim:softtabstop=4 shiftwidth=4 expandtab
|