chipKIT® Development Platform

Inspired by Arduino™

How UECIDE handle Header calls

Created Fri, 08 Jan 2016 02:17:31 +0000 by FredCailloux


FredCailloux

Fri, 08 Jan 2016 02:17:31 +0000

I am thoroughly investigating the DSPI class at the moment. Using UECIDE I am using this sketch from Microchip to demonstrate the PmodAD5. Within the sketch is #Included one libraries called AD7193.h and then AD7193.h calls DSPI.h Now, I am trying to understand how this whole arrangement is determining which pins are used to MISO MOSI clock and Chip Selec SS. This is done via some definition in a header called my another header file nested somehow in the serial calling of so many header files. In DSPI there is one particular pin name ( for example ) called PIN_DSPI0_SS which is the SS pin for DSPI0 object. This pin number is somewhere in a header but I cannot find it. I search ALL header files in the UECIDE folder and could find reference to PIN_DSPI0_SS only in the two header files AD7193 and DSPI.h which do not define the PIN_DSPI0_SS but instead refer to its value. I tried to do the same research within the MPIDE folder and found many header files defining the PIN_DSPI0_SS variable. Here is my question: Where and or how UECIDE recognize the PIN_DSPI0_SS definition ? Wich file is it using ? My board MX7 is by default within UECIDE but all folders are pointing to those folders and files that do not define PIN_DSPI0_SS. Is it possible that UECIDE is actually importing some headers from the MPIDE installation (I doubt it) So then where is the header file defining this PIN_DSPI0_SS within my UECIDE folder ?

Thanks for your help


majenko

Fri, 08 Jan 2016 10:36:02 +0000

The definition is in the file Board_Defs.h which is part of the board package you installed for the MX7. You will find it in the UECIDE data directory (find it through the help menu).

Sent from my SM-T555 using Tapatalk