<filename>platforms/STM32L1.py
from binaryninja_cortex.platforms import MCU

class Chip(MCU):
    NAME="STM32L1"
    ROM_OFF=0x08000000 
    RAM_OFF=0x20000000
    IRQ=MCU.IRQ+ [
        "NVIC_WWDG_IRQ",
        "NVIC_PVD_IRQ",
        "NVIC_TAMPER_STAMP_IRQ",
        "NVIC_RTC_WKUP_IRQ",
        "NVIC_FLASH_IRQ",
        "NVIC_RCC_IRQ",
        "NVIC_EXTI0_IRQ",
        "NVIC_EXTI1_IRQ",
        "NVIC_EXTI2_IRQ",
        "NVIC_EXTI3_IRQ",
        "NVIC_EXTI4_IRQ",
        "NVIC_DMA1_CHANNEL1_IRQ",
        "NVIC_DMA1_CHANNEL2_IRQ",
        "NVIC_DMA1_CHANNEL3_IRQ",
        "NVIC_DMA1_CHANNEL4_IRQ",
        "NVIC_DMA1_CHANNEL5_IRQ",
        "NVIC_DMA1_CHANNEL6_IRQ",
        "NVIC_DMA1_CHANNEL7_IRQ",
        "NVIC_ADC1_IRQ",
        "NVIC_USB_HP_IRQ",
        "NVIC_USB_LP_IRQ",
        "NVIC_DAC_IRQ",
        "NVIC_COMP_IRQ",
        "NVIC_EXTI9_5_IRQ",
        "NVIC_LCD_IRQ",
        "NVIC_TIM9_IRQ",
        "NVIC_TIM10_IRQ",
        "NVIC_TIM11_IRQ",
        "NVIC_TIM2_IRQ",
        "NVIC_TIM3_IRQ",
        "NVIC_TIM4_IRQ",
        "NVIC_I2C1_EV_IRQ",
        "NVIC_I2C1_ER_IRQ",
        "NVIC_I2C2_EV_IRQ",
        "NVIC_I2C2_ER_IRQ",
        "NVIC_SPI1_IRQ",
        "NVIC_SPI2_IRQ",
        "NVIC_USART1_IRQ",
        "NVIC_USART2_IRQ",
        "NVIC_USART3_IRQ",
        "NVIC_EXTI15_10_IRQ",
        "NVIC_RTC_ALARM_IRQ",
        "NVIC_USB_FS_WAKEUP_IRQ",
        "NVIC_TIM6_IRQ",
        "NVIC_TIM7_IRQ",
        "NVIC_SDIO_IRQ",
        "NVIC_TIM5_IRQ",
        "NVIC_SPI3_IRQ",
        "NVIC_UART4_IRQ",
        "NVIC_UART5_IRQ",
        "NVIC_DMA2_CH1_IRQ",
        "NVIC_DMA2_CH2_IRQ",
        "NVIC_DMA2_CH3_IRQ",
        "NVIC_DMA2_CH4_IRQ",
        "NVIC_DMA2_CH5_IRQ",
        "NVIC_AES_IRQ",
        "NVIC_COMP_ACQ_IRQ",
        ]

<filename>platforms/STM32L1.py
from binaryninja_cortex.platforms import MCU

class Chip(MCU):
    NAME="STM32L1"
    ROM_OFF=0x08000000 
    RAM_OFF=0x20000000
    IRQ=MCU.IRQ+ [
        "NVIC_WWDG_IRQ",
        "NVIC_PVD_IRQ",
        "NVIC_TAMPER_STAMP_IRQ",
        "NVIC_RTC_WKUP_IRQ",
        "NVIC_FLASH_IRQ",
        "NVIC_RCC_IRQ",
        "NVIC_EXTI0_IRQ",
        "NVIC_EXTI1_IRQ",
        "NVIC_EXTI2_IRQ",
        "NVIC_EXTI3_IRQ",
        "NVIC_EXTI4_IRQ",
        "NVIC_DMA1_CHANNEL1_IRQ",
        "NVIC_DMA1_CHANNEL2_IRQ",
        "NVIC_DMA1_CHANNEL3_IRQ",
        "NVIC_DMA1_CHANNEL4_IRQ",
        "NVIC_DMA1_CHANNEL5_IRQ",
        "NVIC_DMA1_CHANNEL6_IRQ",
        "NVIC_DMA1_CHANNEL7_IRQ",
        "NVIC_ADC1_IRQ",
        "NVIC_USB_HP_IRQ",
        "NVIC_USB_LP_IRQ",
        "NVIC_DAC_IRQ",
        "NVIC_COMP_IRQ",
        "NVIC_EXTI9_5_IRQ",
        "NVIC_LCD_IRQ",
        "NVIC_TIM9_IRQ",
        "NVIC_TIM10_IRQ",
        "NVIC_TIM11_IRQ",
        "NVIC_TIM2_IRQ",
        "NVIC_TIM3_IRQ",
        "NVIC_TIM4_IRQ",
        "NVIC_I2C1_EV_IRQ",
        "NVIC_I2C1_ER_IRQ",
        "NVIC_I2C2_EV_IRQ",
        "NVIC_I2C2_ER_IRQ",
        "NVIC_SPI1_IRQ",
        "NVIC_SPI2_IRQ",
        "NVIC_USART1_IRQ",
        "NVIC_USART2_IRQ",
        "NVIC_USART3_IRQ",
        "NVIC_EXTI15_10_IRQ",
        "NVIC_RTC_ALARM_IRQ",
        "NVIC_USB_FS_WAKEUP_IRQ",
        "NVIC_TIM6_IRQ",
        "NVIC_TIM7_IRQ",
        "NVIC_SDIO_IRQ",
        "NVIC_TIM5_IRQ",
        "NVIC_SPI3_IRQ",
        "NVIC_UART4_IRQ",
        "NVIC_UART5_IRQ",
        "NVIC_DMA2_CH1_IRQ",
        "NVIC_DMA2_CH2_IRQ",
        "NVIC_DMA2_CH3_IRQ",
        "NVIC_DMA2_CH4_IRQ",
        "NVIC_DMA2_CH5_IRQ",
        "NVIC_AES_IRQ",
        "NVIC_COMP_ACQ_IRQ",
        ]
