Skip to content

Commit

Permalink
Added missing documentation to EXTI fields (#2)
Browse files Browse the repository at this point in the history
  • Loading branch information
lucas-yotsui committed Aug 19, 2024
1 parent d8a5e8c commit 75eb817
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions hal/stmicro/stm32f411cc/exti.zig
Original file line number Diff line number Diff line change
Expand Up @@ -59,13 +59,15 @@ const EXTI = packed struct {
/// If 0, the interrupt request on EXTI line 18 is masked,
/// if 1, it isn't.
line_18: bool,
/// This field is reserved. DO NOT ACCESS IT!
_reserved1: u2,
/// If 0, the interrupt request on EXTI line 21 is masked,
/// if 1, it isn't.
line_21: bool,
/// If 0, the interrupt request on EXTI line 22 is masked,
/// if 1, it isn't.
line_22: bool,
/// This field is reserved. DO NOT ACCESS IT!
_reserved2: u9,
},
/// Event mask register.
Expand Down Expand Up @@ -127,13 +129,15 @@ const EXTI = packed struct {
/// If 0, the event request on EXTI line 18 is masked,
/// if 1, it isn't.
line_18: bool,
/// This field is reserved. DO NOT ACCESS IT!
_reserved1: u2,
/// If 0, the event request on EXTI line 21 is masked,
/// if 1, it isn't.
line_21: bool,
/// If 0, the event request on EXTI line 22 is masked,
/// if 1, it isn't.
line_22: bool,
/// This field is reserved. DO NOT ACCESS IT!
_reserved2: u9,
},
/// Rising trigger selection register.
Expand Down Expand Up @@ -195,13 +199,15 @@ const EXTI = packed struct {
/// If 0, the rising trigger for EXTI line 18 is disabled,
/// if 1, it is enabled.
line_18: bool,
/// This field is reserved. DO NOT ACCESS IT!
_reserved1: u2,
/// If 0, the rising trigger for EXTI line 21 is disabled,
/// if 1, it is enabled.
line_21: bool,
/// If 0, the rising trigger for EXTI line 22 is disabled,
/// if 1, it is enabled.
line_22: bool,
/// This field is reserved. DO NOT ACCESS IT!
_reserved2: u9,
},
/// Falling trigger selection register.
Expand Down Expand Up @@ -263,13 +269,15 @@ const EXTI = packed struct {
/// If 0, the falling trigger for EXTI line 18 is disabled,
/// if 1, it is enabled.
line_18: bool,
/// This field is reserved. DO NOT ACCESS IT!
_reserved1: u2,
/// If 0, the falling trigger for EXTI line 21 is disabled,
/// if 1, it is enabled.
line_21: bool,
/// If 0, the falling trigger for EXTI line 22 is disabled,
/// if 1, it is enabled.
line_22: bool,
/// This field is reserved. DO NOT ACCESS IT!
_reserved2: u9,
},
/// Software interrupt event register.
Expand Down Expand Up @@ -407,6 +415,7 @@ const EXTI = packed struct {
/// This bit is cleared indirectly when the corresponding
/// bit in the PR register is cleared.
line_18: bool,
/// This field is reserved. DO NOT ACCESS IT!
_reserved1: u2,
/// If this line's interrupt is enabled (corresponding bit
/// in the IMR register is set), writing a 1 to this bit triggers
Expand All @@ -422,6 +431,7 @@ const EXTI = packed struct {
/// This bit is cleared indirectly when the corresponding
/// bit in the PR register is cleared.
line_22: bool,
/// This field is reserved. DO NOT ACCESS IT!
_reserved2: u9,
},
/// Pending interrupt register.
Expand Down Expand Up @@ -540,6 +550,7 @@ const EXTI = packed struct {
///
/// This bit is cleared by writing a 1 to it.
line_18: bool,
/// This field is reserved. DO NOT ACCESS IT!
_reserved1: u2,
/// If this bit is set to 0, then no events came to the
/// EXTI line 21.
Expand All @@ -553,6 +564,7 @@ const EXTI = packed struct {
///
/// This bit is cleared by writing a 1 to it.
line_22: bool,
/// This field is reserved. DO NOT ACCESS IT!
_reserved2: u9,
},
};
Expand Down

0 comments on commit 75eb817

Please sign in to comment.