Visible to Intel only — GUID: mwh1416946696198
Ixiasoft
Visible to Intel only — GUID: mwh1416946696198
Ixiasoft
5.4.3.3. Managing Device Drivers
The SBT includes BSP Tcl commands to manage device drivers. With these commands you can control which driver is used for each device. When the alt_sys_init.c file is generated, it is set up to initialize drivers as you have requested.
If you are using nios2-bsp, you disable the driver for the uart0 device as follows:
nios2-bsp hal my_bsp --cmd set_driver none uart0
Use the --cmd option to call a Tcl command on the command line. The nios2-bsp-create-settings command also supports the --cmd option. Alternatively, you can put the set_driver command in a Tcl script and pass the script to nios2-bsp or nios2-bsp-create-settings with the --script option.
You replace the default driver for uart0 with a specific version of a driver as follows:
nios2-bsp hal my_bsp --cmd set_driver altera_avalon_uart:6.1 uart0