def cm3_fixup(d): d.cpu_info.name = 'CM3' d.insert(cm_romtable) d.insert(systick) d.insert(cm3_mpu) d.insert(cm3_scb) d.insert(build_nvic(d.cpu_info.deviceNumInterrupts)) cortexm.add_system_exceptions(d)
def cm0_fixup(d): d.cpu_info.name = 'CM0' d.cpu_info.nvicPrioBits = 2 d.insert(cm_romtable) d.insert(systick) d.insert(cm0_scb) d.insert(build_nvic(d.cpu_info.deviceNumInterrupts)) cortexm.add_system_exceptions(d)
def cm4_fixup(d): d.cpu_info.name = 'CM4' d.cpu_info.nvicPrioBits = 4 # nvic d.deviceNumInterrupts = 106 d.remove(d.NVIC) d.insert(cmregs.build_nvic(d.deviceNumInterrupts)) # systick d.remove(d.SysTick) d.insert(cmregs.systick) # scb d.remove(d.SystemControl) d.insert(cmregs.cm3_scb) d.insert(cmregs.cm4_fpu) cortexm.add_system_exceptions(d)