should be finish

This commit is contained in:
Julien Chevalley
2023-12-11 16:22:42 +01:00
parent a9c0f1b148
commit bfd877c267
98 changed files with 5868 additions and 4804 deletions

15
nokia.c
View File

@@ -53,8 +53,19 @@ void NokiaControl(uint8_t controlByte) {
HAL_ERROR = 0x01U,
HAL_BUSY = 0x02U,
HAL_TIMEOUT = 0x03U
HAL_StatusTypeDef
*/
/*HAL_DMA_State
HAL_DMA_STATE_RESET = 0x00U, !< DMA not yet initialized or disabled
HAL_DMA_STATE_READY = 0x01U, !< DMA initialized and ready for use
HAL_DMA_STATE_BUSY = 0x02U, !< DMA process is ongoing
HAL_DMA_STATE_TIMEOUT = 0x03U, !< DMA timeout state
HAL_DMA_STATE_ERROR = 0x04U, !< DMA error state
HAL_DMA_STATE_ABORT = 0x05U, !< DMA Abort state
}HAL_DMA_StateTypeDef;
*/
HAL_SPI_Transmit(&hspi2, &controlByte, 1, 10);
/*
if(HAL_SPI_Transmit(&hspi2, &controlByte, 1, 10)!=HAL_OK){
@@ -85,7 +96,9 @@ void NokiaData(uint8_t dataByte)
HAL_TIMEOUT = 0x03U
*/
HAL_SPI_Transmit(&hspi2, &dataByte, 1, 0);
HAL_SPI_Transmit(&hspi2, &dataByte, 1, 10);
/*
if(HAL_SPI_Transmit(&hspi2, &dataByte, 1, 0)!=HAL_OK){
//#PROBLEM !!!