STM32 RTOS 0.2.3
Bare-metal preemptive RTOS for STM32F446RE
Loading...
Searching...
No Matches
driver_status.h
Go to the documentation of this file.
1
13#ifndef DRIVER_STATUS_H
14#define DRIVER_STATUS_H
15
20
22#define DRIVER_MUST_CHECK __attribute__((warn_unused_result))
23
50
52
53#endif /* DRIVER_STATUS_H */
DriverStatus_e
Outcome of a driver call: a category for control flow, not a diagnosis.
@ DRIVER_STATUS_ERR_NOT_INITIALIZED
The peripheral or clock source was used before it was enabled or ready.
@ DRIVER_STATUS_OK
Succeeded.
@ DRIVER_STATUS_ERR_BUSY
The hardware is in a state that makes the request unsafe, such as a running PLL.
@ DRIVER_STATUS_UNINITIALIZED
Never returned.
@ DRIVER_STATUS_ERR_UNSUPPORTED
Valid on the hardware, but not implemented by this driver.
@ DRIVER_STATUS_ERR_HW_FAULT
The hardware answered with a fault, such as a UART framing error or a rejected write.
@ DRIVER_STATUS_ERR_INVALID_PARAM
A parameter is outside its valid domain.
@ DRIVER_STATUS_ERR_TIMEOUT
A bounded wait for a hardware flag ran out.