icss_pin_macros.inc

Brief:  PRU PINS related macro definitions

Includes

icss_constant_defines.inc

Macros
m_wait_high_pulse

Detect a high pulse on specified pin PRU_PIN:  _____᠆᠆᠆᠆᠆______

PEAK cycles: ~ cycle

Pseudo code:

wait (PRU_PIN to go HIGH)
wait (PRU_PIN to go LOW)
Parameters
FILTER_CYCLES

Debounce filter cycles

PRU_PIN

PRU pin on which we want to detect pulse

m_wait_low_pulse

Detect a low pulse on specified pin PRU_PIN:  ᠆᠆᠆᠆᠆᠆᠆᠆᠆___᠆᠆᠆᠆᠆᠆᠆᠆᠆

PEAK cycles: ~ cycle

Pseudo code:

wait (PRU_PIN to go LOW)
wait (PRU_PIN to go HIGH)
Parameters
FILTER_CYCLES

Debounce filter cycles

PRU_PIN

PRU pin on which we want to detect pulse

m_pru_clr_pin

CLEAR specified pru pin

PEAK cycles: 1 cycle

Pseudo code:

set (PRU_PIN to LOW)
Parameters
PRU_PIN

PRU pin which we want to drive LOW

m_pru_set_pin

SET specified pru pin

PEAK cycles: 1 cycle

Pseudo code:

set (PRU_PIN to HIGH)
Parameters
PRU_PIN

PRU pin which we want to drive HIGH

m_pru_set_pins

SET specified pru pin

PEAK cycles: 1 cycle

Pseudo code:

set (PRU_PIN to HIGH)
Parameters
PRU_PIN

PRU pin which we want to drive HIGH

m_drive_pru_pins

Write to r30 register to drive all PRU pins

PEAK cycles: 2 cycle

Pseudo code:

r30 = value
Parameters
PRU_PIN

PRU pin which we want to drive HIGH

m_read_pru_pins

Read from r31 register to get value of all PRU pins

PEAK cycles: 2 cycle

Pseudo code:

reg = r31
Parameters
reg

register to store the read pin values