diff --git a/driver b/driver index 42a63d0f..60dc30bc 160000 --- a/driver +++ b/driver @@ -1 +1 @@ -Subproject commit 42a63d0fda862aa673b210b20bf40402efcf655b +Subproject commit 60dc30bc1c3b1bf934fa0340115aced56b0fce7d diff --git a/init/rev3/config/Src/stm32h7xx_it.c b/init/rev3/config/Src/stm32h7xx_it.c index 8e8df7d3..85b3a787 100644 --- a/init/rev3/config/Src/stm32h7xx_it.c +++ b/init/rev3/config/Src/stm32h7xx_it.c @@ -20,6 +20,9 @@ /* Includes ------------------------------------------------------------------*/ #include "main.h" #include "stm32h7xx_it.h" +#include "baro.h" +#include "sdr_pin_defines_A0010.h" + /* Private includes ----------------------------------------------------------*/ /* USER CODE BEGIN Includes */ /* USER CODE END Includes */ @@ -213,5 +216,26 @@ void OTG_HS_IRQHandler(void) } /* USER CODE BEGIN 1 */ +#if 0 // This is Proof-of-Concept Code, disabled to prevent breaking builds +void HAL_SPI_TxCpltCallback( SPI_HandleTypeDef *hspi ) { + if ( hspi == &( BARO_SPI ) ) { + baro_IT_handler(BARO_EVENT_TX_CPLT); + } +} +void HAL_SPI_TxRxCpltCallback( SPI_HandleTypeDef *hspi ) { + if ( hspi == &( BARO_SPI ) ) { + baro_IT_handler(BARO_EVENT_TXRX_CPLT); + } +} + +HAL_TIM_OC_DelayElapsedCallback( TIM_HandleTypeDef *htim ) { + // TODO add MICRO_TIM and BARO_TIM_CHANNEL macros to rev3 pin defines + if ( htim->Instance == MICRO_TIM ) { + if( htim->Channel == BARO_TIM_CHANNEL ) { + baro_IT_handler(BARO_EVENT_DELAY_ELAPSED); + } + } +} +#endif /* USER CODE END 1 */ diff --git a/mod b/mod index 690f370d..95482a45 160000 --- a/mod +++ b/mod @@ -1 +1 @@ -Subproject commit 690f370d123ae97ce51bcff911b79703235791b8 +Subproject commit 95482a458fcd84dd52cbb0a70a7999c93e145feb