from binaryninja_cortex.platforms import MCU

class Chip(MCU):
    NAME="SAM3N"
    ROM_OFF=0x00400000 
    RAM_OFF=0x20000000
    IRQ=MCU.IRQ+ [
        "NVIC_SUPC_IRQ",
        "NVIC_RSTC_IRQ",
        "NVIC_RTC_IRQ",
        "NVIC_RTT_IRQ",
        "NVIC_WDT_IRQ",
        "NVIC_PMC_IRQ",
        "NVIC_EEFC_IRQ",
        "NVIC_RESERVED0_IRQ",
        "NVIC_UART0_IRQ",
        "NVIC_UART1_IRQ",
        "NVIC_RESERVED1_IRQ",
        "NVIC_PIOA_IRQ",
        "NVIC_PIOB_IRQ",
        "NVIC_PIOC_IRQ",
        "NVIC_USART0_IRQ",
        "NVIC_USART1_IRQ",
        "NVIC_RESERVED2_IRQ",
        "NVIC_RESERVED3_IRQ",
        "NVIC_RESERVED4_IRQ",
        "NVIC_TWI0_IRQ",
        "NVIC_TWI1_IRQ",
        "NVIC_SPI_IRQ",
        "NVIC_RESERVED5_IRQ",
        "NVIC_TC0_IRQ",
        "NVIC_TC1_IRQ",
        "NVIC_TC2_IRQ",
        "NVIC_TC3_IRQ",
        "NVIC_TC4_IRQ",
        "NVIC_TC5_IRQ",
        "NVIC_ADC_IRQ",
        "NVIC_DACC_IRQ",
        "NVIC_PWM_IRQ",
        ]

from binaryninja_cortex.platforms import MCU

class Chip(MCU):
    NAME="SAM3N"
    ROM_OFF=0x00400000 
    RAM_OFF=0x20000000
    IRQ=MCU.IRQ+ [
        "NVIC_SUPC_IRQ",
        "NVIC_RSTC_IRQ",
        "NVIC_RTC_IRQ",
        "NVIC_RTT_IRQ",
        "NVIC_WDT_IRQ",
        "NVIC_PMC_IRQ",
        "NVIC_EEFC_IRQ",
        "NVIC_RESERVED0_IRQ",
        "NVIC_UART0_IRQ",
        "NVIC_UART1_IRQ",
        "NVIC_RESERVED1_IRQ",
        "NVIC_PIOA_IRQ",
        "NVIC_PIOB_IRQ",
        "NVIC_PIOC_IRQ",
        "NVIC_USART0_IRQ",
        "NVIC_USART1_IRQ",
        "NVIC_RESERVED2_IRQ",
        "NVIC_RESERVED3_IRQ",
        "NVIC_RESERVED4_IRQ",
        "NVIC_TWI0_IRQ",
        "NVIC_TWI1_IRQ",
        "NVIC_SPI_IRQ",
        "NVIC_RESERVED5_IRQ",
        "NVIC_TC0_IRQ",
        "NVIC_TC1_IRQ",
        "NVIC_TC2_IRQ",
        "NVIC_TC3_IRQ",
        "NVIC_TC4_IRQ",
        "NVIC_TC5_IRQ",
        "NVIC_ADC_IRQ",
        "NVIC_DACC_IRQ",
        "NVIC_PWM_IRQ",
        ]
