Forum Discussion
Hi CAlex
Sorry for the late reply.
Could you change to line 10 of the make files to the line below:
CFLAGS = -g -Wall -D$(ALT_DEVICE_FAMILY) --include-dir=$(HWLIBS_ROOT)/include/$(ALT_DEVICE_FAMILY) --include-dir=$(HWLIBS_ROOT)/include/
For the F2H interrupt, all the interrupts for F2H0 starts from 72 and F2H1 starts from 104.
The number you see in platform designer will be the offset from the start number base on which F2H controller it is connected.
E.g.:
In the GHRD.
The interrupt number for the dipsw _pio will be (72 +0)
The interrupt number for the button_pio will be (72 +1)
The interrupt number for the jtag_uartwill be (72 +2)
I checked from my colleague there is no need to change the linux device tree or create a linux module for the interrupt.
The important thing is getting the interrupt number.
With the interrupt number you can register a callback to the interrupt number.
Regards
Jingyang, Teh
- CAlex3 years ago
Contributor
Hi,
Thank you for the reply,
I tried your suggestion and the makefile was changed as below:
And the EDS gave me the error said unrecognize the command line option --include-dir=
reguards