summaryrefslogtreecommitdiff
path: root/goal.fiddle
diff options
context:
space:
mode:
Diffstat (limited to 'goal.fiddle')
-rw-r--r--goal.fiddle8
1 files changed, 4 insertions, 4 deletions
diff --git a/goal.fiddle b/goal.fiddle
index 811719c..312c580 100644
--- a/goal.fiddle
+++ b/goal.fiddle
@@ -8,15 +8,15 @@ package gpio {
location gpio_c_base = 0x4800_0800;
/** IO Data. This is just an expressive boolean. */
- bittype data_t : enum(1) {
- low =stream 0,
+ bits data_t : enum(1) {
+ low = 0,
high = 1,
- }
+ };
/**
* Structure of the GPIO port on an stm32l432
*/
- objtype gpio_t {
+ objtype gpio_t : {
assert_pos(0);
reg (32) : {
/** The mode for each pin. */