Example #1
0
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)
Example #2
0
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)
Example #3
0
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)
Example #4
0
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)
Example #5
0
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)
Example #6
0
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)