I/O Driver Configuration Settings
Some information regarding the hardware configuration (such as the frequency or the resolution for the PWM port, or the range of the value read from the ADC port) is available to the driver at run time. Until the information exists in the card file, it is hardcoded in a part of the driver source code.
A C structure that holds all the required information is instantiated in the file
stm_ds<xxxx>_config.c
, where<xxxx>
is the model number of the board. The structure is initialized to labels defined in the corresponding header filestm_ds<xxxx>_config.h
.You must change the header file according to the actual card configuration, then compile the file with the rest of the driver libraries. Instructions for modifying the header file are included in the
stm_ds<xxxx>_config.h
file.