From d2d27d821cba17b7576df1fecce2abcedc45e329 Mon Sep 17 00:00:00 2001 From: Adeeb Shihadeh Date: Sat, 28 Nov 2026 12:25:51 -0600 Subject: [PATCH] board: delete unused macros and tags (MISRA 2.4, 2.5) (#2525) --- panda/board/drivers/registers.h | 2 +- panda/board/stm32h7/stm32h7_config.h | 2 -- panda/board/sys/sys.h | 2 -- 3 files changed, 1 insertion(+), 5 deletions(-) diff --git a/panda/board/drivers/registers.h b/panda/board/drivers/registers.h index 690299f068..67b12627a3 100644 --- a/panda/board/drivers/registers.h +++ b/panda/board/drivers/registers.h @@ -3,7 +3,7 @@ #include "board/drivers/drivers.h" -typedef struct reg { +typedef struct { volatile uint32_t *address; uint32_t value; uint32_t check_mask; diff --git a/panda/board/stm32h7/stm32h7_config.h b/panda/board/stm32h7/stm32h7_config.h index 985caa1c95..7a69b9491a 100644 --- a/panda/board/stm32h7/stm32h7_config.h +++ b/panda/board/stm32h7/stm32h7_config.h @@ -41,8 +41,6 @@ separate IRQs for RX and TX. #define INTERRUPT_TIMER_IRQ TIM6_DAC_IRQn #define INTERRUPT_TIMER TIM6 -#define IND_WDG IWDG1 - #define PROVISION_CHUNK_ADDRESS 0x080FFFE0U #define DEVICE_SERIAL_NUMBER_ADDRESS 0x080FFFC0U diff --git a/panda/board/sys/sys.h b/panda/board/sys/sys.h index 55b1367ffc..4946596d77 100644 --- a/panda/board/sys/sys.h +++ b/panda/board/sys/sys.h @@ -36,7 +36,6 @@ extern uint8_t global_critical_depth; #define FAULT_INTERRUPT_RATE_CAN_3 (1UL << 4) #define FAULT_INTERRUPT_RATE_TACH (1UL << 5) #define FAULT_INTERRUPT_RATE_INTERRUPTS (1UL << 7) -#define FAULT_INTERRUPT_RATE_SPI_DMA (1UL << 8) #define FAULT_SELF_TEST_CPU (1UL << 9) #define FAULT_SELF_TEST_RAM (1UL << 10) #define FAULT_SELF_TEST_FLASH (1UL << 11) @@ -47,7 +46,6 @@ extern uint8_t global_critical_depth; #define FAULT_CLOCK (1UL << 16) #define FAULT_INTERRUPT_MISSING (1UL << 17) #define FAULT_REGISTER_DIVERGENT (1UL << 18) -#define FAULT_INTERRUPT_RATE_CLOCK_SOURCE (1UL << 20) #define FAULT_INTERRUPT_RATE_TICK (1UL << 21) #define FAULT_INTERRUPT_RATE_EXTI (1UL << 22) #define FAULT_INTERRUPT_RATE_SPI (1UL << 23)