Skip to content

Commit

Permalink
fix spi compile error
Browse files Browse the repository at this point in the history
  • Loading branch information
Neutree committed Jan 29, 2018
1 parent 96fedd7 commit 0539bf6
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions demo/spi/src/demo_spi.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ uint8_t SPI_ReadOneByte(SPI_ID_t SPIx)
SPI_Write(SPIx, &temp, 1);
while(!SPI_IsTxDone(SPIx));
SPI_Read(SPIx, &r_byte, 1);
return r_byte;
}

uint32_t SPI_ReadWriteData(SPI_ID_t SPIx, uint8_t *s_data, uint8_t *r_data, uint32_t length)
Expand Down Expand Up @@ -178,11 +179,11 @@ void Spi_MainTask()
}
#endif

void spi_Main(HANDLE* pHandleMainTask)
void spi_Main()
{
mainTaskHandle = OS_CreateTask(Spi_MainTask ,
NULL, NULL, MAIN_TASK_STACK_SIZE, MAIN_TASK_PRIORITY, 0, 0, MAIN_TASK_NAME);
*pHandleMainTask = mainTaskHandle;
OS_SetUserMainHandle(&mainTaskHandle);
}


0 comments on commit 0539bf6

Please sign in to comment.