Part Number: PROCESSOR-SDK-AM64X
Other Parts Discussed in Thread: SYSCONFIG
Tool/software:
Hi,
I would like to alternate GPIOs 0-7 between inputs and outputs during run time from the PRU. It seems like I might be able to do this using m_dir_bank01 from icss_gpio_cntrl_macros.inc, but I'm having trouble finding the information needed to use the macro.
- TEMP_REG Register Structure with at least 2 Registers. I'm not familiar with register structures, I found the .struct information in the PRU Assembly Language Tools Users Guide but it was not clear how to use it with registers. I did not see any info for struct in the PRU Assembly Instruction User Guide.
- GPIO_INSTANCE Base address of the corresponding GPIO Instance (Peripheral Identification Register). Based on the GPIO interrupt example it looks like the base address to use is the CSL_MCU_GPIO0_BASE value from source\drivers\hw_include\am64x_am243x\cslr_soc_baseaddress.h, is that correct?
- The SDK mentions "Supports up to 16 GPIO signals per bank", is the number of GPIOs in a bank configurable? How is this configured so I can set direction for only GPIO 0-7? The macro seems to set a whole bank at a time, I don't see where GPIOs in a bank are defined either.
Thanks,
Ryan










