File tree Expand file tree Collapse file tree 2 files changed +14
-0
lines changed
microcontroller/rockchip/rk3566 Expand file tree Collapse file tree 2 files changed +14
-0
lines changed Original file line number Diff line number Diff line change 63
63
RXD = D0_D0
64
64
TX = D0_D1
65
65
RX = D0_D0
66
+
67
+ # PWM
68
+ PWM8 = D3_B1
69
+ PWM9 = D3_B2
Original file line number Diff line number Diff line change 242
242
globals ()[alias + "_RX" ] = GPIO2_A3
243
243
uartPorts .append ((int (alias [- 1 ]), GPIO2_A4 , GPIO2_A3 ))
244
244
245
+ if board in ("RADXA_ZERO3" ):
246
+ alias = get_pwm_chipid ("fe6f0000.pwm" )
247
+ if alias is not None :
248
+ globals ()["PWM" + alias ] = GPIO3_B1
249
+ pwmOuts .append (((int (alias [- 1 ]), 0 ), GPIO3_B1 ))
250
+ alias = get_pwm_chipid ("fe6f0010.pwm" )
251
+ if alias is not None :
252
+ globals ()["PWM" + alias ] = GPIO3_B2
253
+ pwmOuts .append (((int (alias [- 1 ]), 0 ), GPIO3_B2 ))
254
+
245
255
analogIns = tuple (analogIns )
246
256
i2cPorts = tuple (i2cPorts )
247
257
pwmOuts = tuple (pwmOuts )
You can’t perform that action at this time.
0 commit comments