hi guys, I'm working with stm32l412kb and I'm having an issue. I want to talk SPI with 2 components I have. I want to communicate with one of those 2using the SPI machine and with the 2nd i want to bit-banging (same pins connected). what should I do?
HAL_GPIO_WritePin(dac_cs_GPIO_Port, dac_cs_Pin, GPIO_PIN_RESET);////Select SPI DAC_Data = (DAC_Data&0x0FFF)<<2 ; uint8_t DAC_Data1= (uint8_t)((DAC_Data>>8)&0x00FF); uint8_t DAC_Data2= (uint8_t)(DAC_Data&0x00FF); HAL_SPI_Transmit(&hspi1,DAC_Da...