summaryrefslogtreecommitdiff
path: root/goal.fiddle
diff options
context:
space:
mode:
Diffstat (limited to 'goal.fiddle')
-rw-r--r--goal.fiddle4
1 files changed, 3 insertions, 1 deletions
diff --git a/goal.fiddle b/goal.fiddle
index ded2c42..b2abca7 100644
--- a/goal.fiddle
+++ b/goal.fiddle
@@ -8,7 +8,7 @@ import "./types.fdl";
[[ cpp: namespace = "stm32l432::gpio" ]]
[[ rust: package = "Stm32l432.Gpio" ]]
[[ zig: package = "stm32l432.gpio" ]]
-[[ c: prefix = "stm32l432_gpio_" ]]
+[[ c: unqualified ]]
package stm32l4.gpio {
location gpio_a_base = 0x4800_0000;
location gpio_b_base = 0x4800_0400;
@@ -19,6 +19,7 @@ package stm32l4.gpio {
/**
* Structure of the GPIO port on an stm32l432
*/
+ [[ c: unqualified ]]
type gpio_t : struct {
assert_pos(0);
@@ -55,6 +56,7 @@ package stm32l4.gpio {
* The GPIO pin is capable of sinking to ground (for LOW) or providing
* power (for HIGH).
*/
+ [[ c: unqualified ]]
push_pull = 0,
/**