File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -449,7 +449,7 @@ def i_tsens(reg_dest, delay):
449449 return _tsens .all
450450
451451
452- def i_adc (reg_dest , adc_idx , mux ):
452+ def i_adc (reg_dest , adc_idx , mux , _not_used = None ):
453453 _adc .dreg = get_reg (reg_dest )
454454 _adc .mux = get_imm (mux )
455455 _adc .sar_sel = get_imm (adc_idx )
Original file line number Diff line number Diff line change 2828 # interpret ; as statement separator - this results in 2 NOP machine instructions
2929 nop ; nop ;
3030
31+ # adc supports an undocumented 4th argument, which should be entirely ignored
32+ # binutils-esp32ulp also ignores this argument, if present, see:
33+ # https://github.com/espressif/binutils-esp32ulp/blob/249ec34cc2c9574a86f3f86bbb175a863f988bcf/gas/config/esp32ulp-parse.y#L810
34+ adc r1, 0 , 1 , 100
35+
3136 halt
You can’t perform that action at this time.
0 commit comments