Forum Discussion
Altera_Forum
Honored Contributor
21 years agoremove HAL device drivers (preprocessor options)
Hello, Is there a list anywhere of the available preprocessor options? I need it because I want to remove some HAL drivers but need some others... For example, I want to access directly th...
Altera_Forum
Honored Contributor
21 years agoOne way to disable the UART driver is to add a file named 'altera_avalon_uart.h' to your system library project. This file should contain the following:
#define ALTERA_AVALON_UART_INSTANCE(name, device) # define ALTERA_AVALON_UART_INIT(name, device) This will stop the HAL installing it's driver, and allow you to provide your own instead. If you want to initialise your driver before main(), you can use these macros - as described in the Nios II Software Developers' Handbook.