File tree Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -1088,12 +1088,13 @@ def wait(
1088
1088
assert addr >= 0
1089
1089
addr += self .apb_base
1090
1090
1091
- if self .memfile is None :
1091
+ mfile = self .apifile or self .memfile
1092
+ if mfile is None :
1092
1093
return
1093
1094
1094
- self . memfile .write (f' while ((*((volatile uint32_t *) 0x{ addr :08x} ) & 0x{ mask :0x} )'
1095
- f' != 0x{ val :0x} );'
1096
- f'{ comment } \n ' )
1095
+ mfile .write (f' while ((*((volatile uint32_t *) 0x{ addr :08x} ) & 0x{ mask :0x} )'
1096
+ f' != 0x{ val :0x} );'
1097
+ f'{ comment } \n ' )
1097
1098
1098
1099
def copyright_header (
1099
1100
self ,
Original file line number Diff line number Diff line change @@ -525,7 +525,7 @@ def main(
525
525
526
526
if embedded_code and apifile is not None :
527
527
if tc .dev .SUPPORT_PLL :
528
- mfile .write (' if (clock_source == MXC_F_GCR_PCLKDIV_CNNCLKSEL_ITO )\n ' )
528
+ mfile .write (' if (clock_source == MXC_S_GCR_PCLKDIV_CNNCLKSEL_ITO )\n ' )
529
529
mfile .write (' while ((MXC_GCR->ito_ctrl & MXC_F_GCR_ITO_CTRL_RDY) != '
530
530
'MXC_F_GCR_ITO_CTRL_RDY) ; // Wait for PLL\n ' )
531
531
mfile .write (' MXC_GCR->pclkdiv = (MXC_GCR->pclkdiv & '
You can’t perform that action at this time.
0 commit comments