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 ;
@@ -1622,18 +1621,7 @@ int16_t arm_to_pru_intr_init(void) {
16221621 uint32_t u32value ;
16231622 uint32_t intOffset ;
16241623 int16_t s16retval = -1 ;
1625- #if 0
1626- /* Set the MCASP Event to PRU0 as Edge Triggered */
1627- u32offset =
1628- (uint32_t )pru_arm_iomap .pru_io_addr | (PRU_INTC_TYPE0 &
1629- 0xFFFF );
1630- u32value = 0x80000000 ;
1631- s16retval =
1632- pru_ram_write_data_4byte (u32offset , (uint32_t * )& u32value , 1 );
1633- if (s16retval == -1 ) {
1634- return -1 ;
1635- }
1636- #endif
1624+
16371625 /* Clear all the host interrupts */
16381626 for (intOffset = 0 ; intOffset <= PRU_INTC_HOSTINTLVL_MAX ; intOffset ++ )
16391627 {
You can’t perform that action at this time.
0 commit comments