Other Parts Discussed in Thread: SYSCONFIG
Tool/software:
board_gpio.c.xdt was mentioned in the user guide, but didn't find it.
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Hi Tony,
Thanks for your query.
This looks like a bug in the documentation. You will need to do changes in the board.c file present in the gpio project example.
Regards,
Tushar
There is not such content in board.c
% if(args.project.cpu == "a53ss0-1"){ #define BOARD_BUTTON_GPIO_INTR_NUM (CSLR_GICSS0_COMMON_0_SPI_MAIN_GPIOMUX_INTROUTER0_OUTP_1) #define BOARD_BUTTON_GPIO_SWITCH_NUM ("GPIO0_14") %} % else if(args.project.cpu == "a53ss0-1"){ #define GPIOMUX_INTROUTER_OUTP (1U) %}
it is below in board.c
/* * Board info */ #define BOARD_BUTTON_GPIO_INTR_NUM (CSLR_GICSS0_COMMON_0_SPI_MAIN_GPIOMUX_INTROUTER0_OUTP_0) #define BOARD_BUTTON_GPIO_SWITCH_NUM ("GPIO0_14") /** \brief bank interrupt source index base */ #define SRC_IDX_BASE_GPIO_BANK (CSLR_MAIN_GPIOMUX_INTROUTER0_IN_GPIO0_GPIO_BANK_0) /* This is based on TISCI device config and core */ #define GPIO_MUX_INTROUTER_ID (TISCI_DEV_MAIN_GPIOMUX_INTROUTER0) /* GPIO mux introuter output number */ #define GPIOMUX_INTROUTER_OUTP (0U)
board.c are same in four gpio interrupt project. not difference, but works.
BTW, what is SPI stands for in CSLR_GICSS0_COMMON_0_SPI_MAIN_GPIOMUX_INTROUTER0_OUTP_0?
Hi Tony,
There is not such content in board.c
Yes, the content which is there in the documentation is related to the *.xdt template used by the sysconfig tool to autogenerate the files.
But for AM62x device the board.c file is not autogenerated and all the content is not in *xdt format and is in *c code as you shared above.
what is SPI stands for in CSLR_GICSS0_COMMON_0_SPI_MAIN_GPIOMUX_INTROUTER0_OUTP_0
I am checking this internally and will update soon.
Regards,
Tushar
Hi Tony,
The SPI here stands for the Shared Peripheral Interrupts.
Please refer below image.
Regards,
Tushar
But for AM62x device the board.c file is not autogenerated
In user guide: “In this way different SPI_MAIN_GPIOMUX_INTROUTER and GPIO mux introuter output number can be assigned to other a53 cores”
But the four example use the same CSLR_GICSS0_COMMON_0_SPI_MAIN_GPIOMUX_INTROUTER0_OUTP_0
Hi Tony,
Yes, by default the example uses CSLR_GICSS0_COMMON_0_SPI_MAIN_GPIOMUX_INTROUTER0_OUTP_0 router output, you can configure this to supported values of the router output.
Regards,
Tushar