I want to develop a C program on the STM32F303 board that uses the SPI interface where the microcontroller is the master and the L3GD20 gyroscope is the slave: I want to perform a transmission to ask the gyroscope to provide me with the x, y, z coordinate
Considering that the gyroscope's chip select is the PE3 pin, how should I do this? The program below doesn't work#include <stm32f30x.h>void GPIO_Config();void SPI_Config();uint8_t L3GD20_Read(uint8_t reg);void L3GD20_Write(uint8_t reg, uint8_t data);...