Between processor and driver board, there is SPI connection to set the registers in DRV8301 chip.
In lab05b GPIO is initialized at hal.c like this:
// SPI-SIMO or OCTWn
GPIO_setMode(obj->gpioHandle,GPIO_Number_16,GPIO_16_Mode_TZ2_NOT);
// SPI-SOMI or FAULTn
GPIO_setMode(obj->gpioHandle,GPIO_Number_17,GPIO_17_Mode_TZ3_NOT);
// SPI-STE or SDI
GPIO_setMode(obj->gpioHandle,GPIO_Number_19,GPIO_19_Mode_GeneralPurpose);
why pins are NOT configured as SPI like this ? :
GPIO_16_Mode_SPISIMOA, //!< Denotes a SPISIMOA function
GPIO_17_Mode_SPISOMIA, //!< Denotes a SPISOMIA function
GPIO_19_Mode_SPISTEA_NOT, //!< Denotes a SPISTEA_NOT function
How these pins can control SPI bus of DRV8301 when they are initialized like so ?