IAR Aug 2000
For the configurations made earlier in the simple example project above, the device
driver functions listed in table 1 will be generated by default. The drivers are generated
as one *.c file and one *.h file for each peripheral module, and contain both initialization,
run-time control, and interrupt handler functions.
Bus controller driver functions
Initialize the bus controller according to the dialog box.
Cause transition to wait mode.
Cause transition to stop mode.
Change clocking/power consumption.
Reset the chip.
Trig the watchdog timer.
Interrupt handler for the watchdog interrupt.
Interrupt handler for the NMI interrupt.
Interrupt controller driver
Initialize the interrupt controller according to the dialog box.
Change the priority mask for interrupt filtering.
Interrupt handler for the external INT1 interrupt.
Interrupt handler for the external INT2 interrupt.
Serial communications driver
Initialize the UART channel 1 according to the dialog box.
Send a character on channel 1.
Send a character string on channel 1.
Receive a character from channel 1.
Receive a character string from channel 1.
Interrupt handler for the channel 1 transmit empty interrupt.
Interrupt handler for the channel 1 receive full interrupt.
Table 1: Device driver functions generated from the example project
Figure 5 shows an example of how unnecessary driver functions can be removed from
code generation; the functions for sending and receiving character strings are removed
in this case.