mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-12-02 05:33:40 +08:00
board: delete unused macros and tags (MISRA 2.4, 2.5) (#2525)
This commit is contained in:
committed by
firestar5683
parent
46ad2b8792
commit
d2d27d821c
@@ -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;
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user