Files
@ 34a13647cf13
Branch filter:
Location: windsonde/Source/system/interrupts.c - annotation
34a13647cf13
807 B
text/plain
Pressure reading now works! Needs pullups added...
0f04af7169be 0f04af7169be 0f04af7169be 0f04af7169be 0f04af7169be 0f04af7169be 0f04af7169be 0f04af7169be 0f04af7169be 0f04af7169be 34a13647cf13 0f04af7169be 0f04af7169be 0f04af7169be 0f04af7169be 0f04af7169be 0f04af7169be 0f04af7169be 0f04af7169be 0f04af7169be 0f04af7169be 0f04af7169be 0f04af7169be 0f04af7169be 0f04af7169be 0f04af7169be 0f04af7169be 0f04af7169be 0f04af7169be 34a13647cf13 34a13647cf13 34a13647cf13 34a13647cf13 34a13647cf13 34a13647cf13 34a13647cf13 34a13647cf13 34a13647cf13 34a13647cf13 34a13647cf13 | //
// 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 "pressure.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 (pressure_get_i2c_handle()->Instance->ISR & (I2C_FLAG_BERR | I2C_FLAG_ARLO | I2C_FLAG_OVR)) {
HAL_I2C_ER_IRQHandler(pressure_get_i2c_handle());
} else {
HAL_I2C_EV_IRQHandler(pressure_get_i2c_handle());
}
}
|