Skip to content

Commit 5c44f28

Browse files
committed
TEMP: santiago: fix P408 pinmux
We must fix this thing properly or it will be very difficult to keep track of these changes * Proposal: return a vector/struct with all the muxes to choose from
1 parent e2cfdf5 commit 5c44f28

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

variants/SANTIAGO/variant.cpp

+8
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,14 @@ SCI_CHANNEL|PIN_SCK|CHANNEL_0|SCI_EVEN_CFG|LAST_ITEM_GUARD
99
};
1010
#define P400 P400_b
1111

12+
const uint16_t P408_b[] = {
13+
PIN_PWM|CHANNEL_5|PWM_CHANNEL_B|GPT_ODD_CFG,
14+
PIN_INTERRUPT|CHANNEL_7,
15+
SCI_CHANNEL|PIN_CTS_RTS_SS|CHANNEL_1|SCI_EVEN_CFG,
16+
SCI_CHANNEL|PIN_RX_MISO_SCL|CHANNEL_9|SCI_ODD_CFG|LAST_ITEM_GUARD
17+
};
18+
#define P408 P408_b
19+
1220
uint16_t getPinCfg(const uint16_t *cfg, PinCfgReq_t req, bool prefer_sci /*= false*/) {
1321
if(cfg == nullptr) {
1422
return 0;

0 commit comments

Comments
 (0)