Skip to content

Commit 50bdbb4

Browse files
committed
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 eb4620a commit 50bdbb4

File tree

3 files changed

+32
-484
lines changed

3 files changed

+32
-484
lines changed

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)