diff options
Diffstat (limited to 'chip/stm32')
-rw-r--r-- | chip/stm32/registers.h | 4 | ||||
-rw-r--r-- | chip/stm32/usb_pd_phy.c | 2 |
2 files changed, 6 insertions, 0 deletions
diff --git a/chip/stm32/registers.h b/chip/stm32/registers.h index c21dc50754..c4e8abb3fd 100644 --- a/chip/stm32/registers.h +++ b/chip/stm32/registers.h @@ -139,6 +139,8 @@ #define STM32_IRQ_DMA2_CHANNEL5 60 /* STM32F100 only */ #endif /* CHIP_FAMILY_STM32F0 */ +#ifndef __ASSEMBLER__ + /* --- USART --- */ #define STM32_USART1_BASE 0x40013800 #define STM32_USART2_BASE 0x40004400 @@ -1261,4 +1263,6 @@ typedef volatile struct stm32_dma_regs stm32_dma_regs_t; #define STM32_BXCAN1_BASE 0x40006400 /* STM32F10x only */ #define STM32_BXCAN2_BASE 0x40006800 /* STM32F10x only */ +#endif /* !__ASSEMBLER__ */ + #endif /* __CROS_EC_REGISTERS_H */ diff --git a/chip/stm32/usb_pd_phy.c b/chip/stm32/usb_pd_phy.c index 051d2f0710..895d5dab9d 100644 --- a/chip/stm32/usb_pd_phy.c +++ b/chip/stm32/usb_pd_phy.c @@ -390,7 +390,9 @@ void pd_rx_handler(void) /* trigger the analysis in the task */ pd_rx_event(); } +#ifndef BOARD_ZINGER DECLARE_IRQ(STM32_IRQ_COMP, pd_rx_handler, 1); +#endif /* --- Startup initialization --- */ void *pd_hw_init(void) |