Skip to content

Commit a05276d

Browse files
ArcaneNibbledlech
authored andcommitted
pbio/drv/uart/uart_ev3_pru_lib/suart_api.c: Remove PRU1 support
At this point, we are more-or-less committed to running our own firmware on PRU1. This means that we cannot use it for SUART instances. Remove support for running SUART across both PRUs in order to simplify the code and make it easier to understand.
1 parent 7d9b601 commit a05276d

3 files changed

Lines changed: 32 additions & 550 deletions

File tree

lib/pbio/drv/uart/uart_ev3_pru_lib/pru.c

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -129,19 +129,6 @@ uint32_t pru_disable(arm_pru_iomap *pru_arm_iomap) {
129129
hPru->CONTROL = CSL_PRUCORE_CONTROL_RESETVAL;
130130
}
131131

132-
// Disable PRU1
133-
hPru = (CSL_PrucoreRegsOvly)((uint32_t)pru_arm_iomap->pru_io_addr + 0x7800); // CSL_PRUCORE_1_REGS;
134-
CSL_FINST(hPru->CONTROL, PRUCORE_CONTROL_COUNTENABLE, DISABLE);
135-
136-
for (delay_cnt = 0x10000; delay_cnt > 0; delay_cnt--) {
137-
CSL_FINST(hPru->CONTROL, PRUCORE_CONTROL_ENABLE, DISABLE);
138-
}
139-
140-
for (delay_cnt = 0x10000; delay_cnt > 0; delay_cnt--) {
141-
// Reset PRU1
142-
hPru->CONTROL = CSL_PRUCORE_CONTROL_RESETVAL;
143-
}
144-
145132
return E_PASS;
146133
}
147134

0 commit comments

Comments
 (0)