File tree Expand file tree Collapse file tree 1 file changed +1
-13
lines changed
lib/pbio/drv/uart/uart_ev3_pru_lib Expand file tree Collapse file tree 1 file changed +1
-13
lines changed Original file line number Diff line number Diff line change @@ -239,7 +239,6 @@ int16_t pru_softuart_init(uint32_t txBaudValue,
239239
240240 omapl_addr = (uint32_t )arm_iomap_pru -> pru_io_addr ;
241241
242- // for (u32loop = 0; u32loop < 512; u32loop++)
243242 for (u32loop = 0 ; u32loop < 512 ; u32loop += 4 ) // Fixed the alignment fault -- ertl-liyixiao
244243 {
245244 * (uint32_t * )(omapl_addr | u32loop ) = 0x0 ;
@@ -1556,18 +1555,7 @@ int16_t arm_to_pru_intr_init(void) {
15561555 uint32_t u32value ;
15571556 uint32_t intOffset ;
15581557 int16_t s16retval = -1 ;
1559- #if 0
1560- /* Set the MCASP Event to PRU0 as Edge Triggered */
1561- u32offset =
1562- (uint32_t )pru_arm_iomap .pru_io_addr | (PRU_INTC_TYPE0 &
1563- 0xFFFF );
1564- u32value = 0x80000000 ;
1565- s16retval =
1566- pru_ram_write_data_4byte (u32offset , (uint32_t * )& u32value , 1 );
1567- if (s16retval == -1 ) {
1568- return -1 ;
1569- }
1570- #endif
1558+
15711559 /* Clear all the host interrupts */
15721560 for (intOffset = 0 ; intOffset <= PRU_INTC_HOSTINTLVL_MAX ; intOffset ++ )
15731561 {
You can’t perform that action at this time.
0 commit comments