99#include <stdint.h>
1010
1111typedef enum [[clang ::flag_enum ]] i2c_intr : uint32_t {
12+ i2c_intr_none = 0 ,
1213 i2c_intr_fmt_threshold = (1u << 0 ),
1314 i2c_intr_rx_threshold = (1u << 1 ),
1415 i2c_intr_acq_threshold = (1u << 2 ),
@@ -32,6 +33,7 @@ typedef struct [[gnu::aligned(4)]] {
3233} i2c_alert_test ;
3334
3435typedef enum [[clang ::flag_enum ]] i2c_ctrl : uint32_t {
36+ i2c_ctrl_none = 0 ,
3537 i2c_ctrl_enablehost = (1u << 0 ),
3638 i2c_ctrl_enabletarget = (1u << 1 ),
3739 i2c_ctrl_llpbk = (1u << 2 ),
@@ -42,6 +44,7 @@ typedef enum [[clang::flag_enum]] i2c_ctrl : uint32_t {
4244} i2c_ctrl ;
4345
4446typedef enum [[clang ::flag_enum ]] i2c_status : uint32_t {
47+ i2c_status_none = 0 ,
4548 i2c_status_fmtfull = (1u << 0 ),
4649 i2c_status_rxfull = (1u << 1 ),
4750 i2c_status_fmtempty = (1u << 2 ),
@@ -108,6 +111,7 @@ typedef struct [[gnu::aligned(4)]] {
108111} i2c_target_fifo_status ;
109112
110113typedef enum [[clang ::flag_enum ]] i2c_ovrd : uint32_t {
114+ i2c_ovrd_none = 0 ,
111115 i2c_ovrd_txovrden = (1u << 0 ),
112116 i2c_ovrd_sclval = (1u << 1 ),
113117 i2c_ovrd_sdaval = (1u << 2 ),
@@ -210,13 +214,15 @@ typedef struct [[gnu::aligned(4)]] {
210214} i2c_acq_fifo_next_data ;
211215
212216typedef enum [[clang ::flag_enum ]] i2c_controller_events : uint32_t {
217+ i2c_controller_events_none = 0 ,
213218 i2c_controller_events_nack = (1u << 0 ),
214219 i2c_controller_events_unhandled_nack_timeout = (1u << 1 ),
215220 i2c_controller_events_bus_timeout = (1u << 2 ),
216221 i2c_controller_events_arbitration_lost = (1u << 3 ),
217222} i2c_controller_events ;
218223
219224typedef enum [[clang ::flag_enum ]] i2c_target_events : uint32_t {
225+ i2c_target_events_none = 0 ,
220226 i2c_target_events_tx_pending = (1u << 0 ),
221227 i2c_target_events_bus_timeout = (1u << 1 ),
222228 i2c_target_events_arbitration_lost = (1u << 2 ),
0 commit comments