3 Required Source Code Modifications
You must modify the dpuser.h
, dpDUTspi.c
,
dpcom.c
, and dputil.c
files when using the
SPI-DirectC source code, which contains a short description of SPI-DirectC source code
and their functions.
The following table lists the functions that must be modified.
Function | Source File | Purpose |
---|---|---|
do_SPI_SCAN_in | dpspi.c | Hardware interface function used to scan data in using the SPI driver |
do_SPI_SCAN_out | dpspi.c | Hardware interface function used to scan data out using the SPI driver |
dp_get_page_data | dpcom.c | Programming file interface function |
dp_display_text | dpuser.c | Function to display text to an output device |
dp_display_value | dpuser.c | Function to display value of a variable to an output device |
dp_delay | dputil.c | Delay function |