STM32CubeIDEで定義されている列挙型(enum)。
STM32CubeIDEでは次のように列挙型(enum)が定義されているので同じような列挙型(enum)を定義せずに済みます。
Drivers/CMSIS/Device/ST/STM32F4xx/Include/stm32f4xx.h
/** @addtogroup Exported_types
* @{
*/
typedef enum
{
RESET = 0U,
SET = !RESET
} FlagStatus, ITStatus;
typedef enum
{
DISABLE = 0U,
ENABLE = !DISABLE
} FunctionalState;
#define IS_FUNCTIONAL_STATE(STATE) (((STATE) == DISABLE) || ((STATE) == ENABLE))
typedef enum
{
SUCCESS = 0U,
ERROR = !SUCCESS
} ErrorStatus;
/**
* @}
*/