Implementing the Driver
The driver consists of two parts. The first part describes the general infrastructure that can be used with other boards besides model DS1103. This infrastructure is defined in the file
stm_dspace.c.
It reads the signal mapping and selects the correct I/O function to be called by the driver function.The second part, defined in
stm_ds1103.c
, deals with items specific to the dSPACE DS1103 board. The following sections describe each of these parts in detail.