Skip to content

Conversation

etienne-lms
Copy link
Contributor

Clarify HAL return value is of type HAL_StatusTypeDef and may not be a int. This change aims preventing one from mixing standard "errno" int return values and STM32 HAL return value finding misleading implementation in existing code.

Add tests of the value returned by initialization and deinitialization HAL functions.

Ensure STM32 SDMMC driver returns proper errno values and not HAL return
codes.

Signed-off-by: Etienne Carriere <[email protected]>
Clarify HAL return value is of type HAL_StatusTypeDef and may not
be a int. This change aims preventing one from mixing standard "errno"
int return values and STM32 HAL return value finding misleading
implementation in existing code.

No functional change.

Signed-off-by: Etienne Carriere <[email protected]>
Add tests of the value returned by initialization and deinitialization
HAL functions.

Signed-off-by: Etienne Carriere <[email protected]>
@etienne-lms
Copy link
Contributor Author

Rebased since #94895 has been merged (adds an occurrence to address).
Updated to also address stm32_sdmmc_access_deinit() that returned an HAL value to IOCTL caller.

Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants