2017-06-05 01:04 AM
Hi,
Hopefully a simple question :-)
Developing code on STM32F429. I have Cube installed on my Mac, running demo programs without issue.
I am after the definition of HAL_StatusTypeDef . Where is it defined (what file?).
I see it used in the APIs, but I cannot see it defined anywhere.
Example usage.
HAL_StatusTypeDef HAL_TIM_IC_Stop_DMA(TIM_HandleTypeDef *htim, uint32_t Channel)
Thanks / Frank
2017-06-05 01:37 AM
Hi
b17flyboy
,The 'HAL_StatusTypeDef' is defined in 'stm32f4xx_hal_def.h' file.
Khouloud.
2017-06-05 05:26 AM
Ok, got it.
/* Exported types ------------------------------------------------------------*/
/**
* @brief HAL Status structures definition
*/
typedef enum
{
HAL_OK = 0x00U,
HAL_ERROR = 0x01U,
HAL_BUSY = 0x02U,
HAL_TIMEOUT = 0x03U
} HAL_StatusTypeDef;
2017-06-05 06:04 AM
2017-06-05 07:10 AM
if you are using ide like Keil MDK,
you can right click on some type or struct XXX that you're interested,
and click Go to definition of 'xxx',
then you will jump to the definition.
you can find similar function in your ide.
Good Luck!
:)