FreeCalypso > hg > fc-tourmaline
diff src/cs/drivers/drv_app/spi/spi_env.c @ 260:34b7059b9337
drv_app/spi/*: code readability fixes
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Fri, 14 May 2021 02:13:47 +0000 |
parents | 365833d1d186 |
children | 841a848ba762 |
line wrap: on
line diff
--- a/src/cs/drivers/drv_app/spi/spi_env.c Fri May 14 01:30:13 2021 +0000 +++ b/src/cs/drivers/drv_app/spi/spi_env.c Fri May 14 02:13:47 2021 +0000 @@ -35,9 +35,8 @@ T_SPI_GBL_INFO *SPI_GBL_INFO_PTR = NULL; - /****************************************************************************** -* Function : spi_get_info +* Function : spi_get_info * * Description : This function is called by the RV manager to learn * spi requirements in terms of memory, SWEs... @@ -53,7 +52,6 @@ ******************************************************************************/ T_RVM_RETURN spi_get_info(T_RVM_INFO_SWE * infoSWE) { - /* SWE info */ infoSWE->swe_type = RVM_SWE_TYPE_4; @@ -63,7 +61,6 @@ infoSWE->type_info.type4.stack_size = SPI_STACK_SIZE; infoSWE->type_info.type4.priority = RVM_SPI_TASK_PRIORITY; - /* memory bank info */ infoSWE->type_info.type4.nb_mem_bank = 1; @@ -71,11 +68,9 @@ infoSWE->type_info.type4.mem_bank[0].initial_params.size = SPI_MB_PRIM_SIZE; infoSWE->type_info.type4.mem_bank[0].initial_params.watermark = SPI_MB_PRIM_WATERMARK; - /* linked SWE info */ infoSWE->type_info.type4.nb_linked_swe = 0; - /* generic functions */ infoSWE->type_info.type4.set_info = spi_set_info; infoSWE->type_info.type4.init = spi_init; @@ -92,7 +87,7 @@ /****************************************************************************** -* Function : spi_set_info +* Function : spi_set_info * * Description : This function is called by the RV manager to inform * the spi SWE about task_id, mb_id and error function. @@ -136,7 +131,6 @@ return (RVM_MEMORY_ERR); } - /* store the pointer to the error function */ spi_error_ft = callBackFct ; @@ -162,7 +156,7 @@ /****************************************************************************** -* Function : spi_init +* Function : spi_init * * Description : This function is called by the RV manager to initialize the * spi SWE before creating the task and calling spi_start. @@ -171,20 +165,18 @@ * * Return : T_RVM_RETURN * -* History : 0.1 (20-August-2000) +* History : 0.1 (20-August-2000) * * ******************************************************************************/ T_RVM_RETURN spi_init(void) { - return RV_OK; } - /****************************************************************************** -* Function : spi_stop +* Function : spi_stop * * Description : This function is called by the RV manager to stop the spi SWE. * @@ -192,7 +184,7 @@ * * Return : T_RVM_RETURN * -* History : 0.1 (20-August-2000) +* History : 0.1 (20-August-2000) * * ******************************************************************************/ @@ -205,7 +197,7 @@ /****************************************************************************** -* Function : spi_kill +* Function : spi_kill * * Description : This function is called by the RV manager to kill the spi * SWE, after the spi_stop function has been called. @@ -223,6 +215,3 @@ /* free all memory buffer previously allocated */ return RV_OK; } - - -