Forum Discussion
Altera_Forum
Honored Contributor
20 years agoThe *_regs files are included by existing components by adding the required directory to the include path. For example in altera_avalon_uart.cdl you'll find:
cdl_option CYGPKG_ALTERA_AVALON_UART_CFLAGS_ADD {
display "Additional compiler flags"
flavor data
no_define
default_value { "-I'$(SOPC_KIT_NIOS2)'/components/altera_avalon_uart/inc -I$(PREFIX)/include/cyg/hal" }
description "
This option modifies the set of compiler flags for
building the Altera Avalon UART driver.
These flags are used in addition
to the set of global flags."
} You just need to do the equivalent for your driver.