LIS3D using SPI issues
-
Im reconfiguring 1HCL 3.5FW for a custom board. I want to use the LIS3D on the SPI PA(15-19) of SAME5x , no other peripherals on the SPI bus. Heres part of my .h config;
#define SUPPORT_SPI_SENSORS 1 //**REMAPP**//# define SUPPORT_I2C_SENSORS 1 /**REMAPPED**/# define SUPPORT_I2C_SENSORS 0 # define SUPPORT_LIS3DH #if SUPPORT_LIS3DH # define ACCELEROMETER_USES_SPI (1) // accelerometer is connected via SPI constexpr Pin Lis3dhCsPin = PortAPin(18); // same as encoder CS pin constexpr Pin Lis3dhInt1Pin = PortAPin(12); // same as io1.in # endif // Shared SPI (used for interface to encoders, not for temperature sensors) constexpr uint8_t SspiSercomNumber = 1; constexpr uint32_t SspiDataInPad = 3; constexpr Pin SSPIMosiPin = PortAPin(16); constexpr GpioPinFunction SSPIMosiPinPeriphMode = GpioPinFunction::C; constexpr Pin SSPISclkPin = PortAPin(17); constexpr GpioPinFunction SSPISclkPinPeriphMode = GpioPinFunction::C; constexpr Pin SSPIMisoPin = PortAPin(19); constexpr GpioPinFunction SSPIMisoPinPeriphMode = GpioPinFunction::C;
Im getting a bunch of errors
Any help on clearing this up? Thanks!
-
@wayneosdias I've just committed a change to Duet3Expansioh 3.5-dev to fix those compile errors.
-
@dc42 I updated the LISAccelerometer.cpp and now getting the following errors: