SPI reading issues
i have configured the spi in stm8l controller.I have attached the code below:void SetupSPI(){ PB_DDR |= BIT(6) | BIT(5) ; // mosi and sck as output. PB_DDR &= ~BIT(7); // miso as input. PB_CR1 |= BIT(7); PB_CR1 |= BIT(6)| BIT(5) ; // mosi and **** a...