Activate cache
This commit is contained in:
10
nokia.c
10
nokia.c
@@ -55,10 +55,12 @@ void NokiaControl(uint8_t controlByte) {
|
||||
HAL_TIMEOUT = 0x03U
|
||||
*/
|
||||
|
||||
if(HAL_SPI_Transmit(&hspi2, &controlByte, 1, 0)!=HAL_OK){
|
||||
HAL_SPI_Transmit(&hspi2, &controlByte, 1, 10);
|
||||
/*
|
||||
if(HAL_SPI_Transmit(&hspi2, &controlByte, 1, 10)!=HAL_OK){
|
||||
//#PROBLEM !!!
|
||||
printf("Error while sending Control Data\r\n");
|
||||
}
|
||||
}*/
|
||||
HAL_GPIO_WritePin(CS_NOKIA_GPIO_Port, CS_NOKIA_Pin, GPIO_PIN_SET);
|
||||
HAL_GPIO_WritePin(D_C_NOKIA_GPIO_Port, D_C_NOKIA_Pin, GPIO_PIN_SET);
|
||||
|
||||
@@ -83,10 +85,12 @@ void NokiaData(uint8_t dataByte)
|
||||
HAL_TIMEOUT = 0x03U
|
||||
*/
|
||||
|
||||
HAL_SPI_Transmit(&hspi2, &dataByte, 1, 0);
|
||||
/*
|
||||
if(HAL_SPI_Transmit(&hspi2, &dataByte, 1, 0)!=HAL_OK){
|
||||
//#PROBLEM !!!
|
||||
printf("Error while sending Control Data\r\n");
|
||||
}
|
||||
} */
|
||||
HAL_GPIO_WritePin(CS_NOKIA_GPIO_Port, CS_NOKIA_Pin, GPIO_PIN_SET);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user