summaryrefslogtreecommitdiff
path: root/goal.fiddle
diff options
context:
space:
mode:
authorJosh Rahm <joshuarahm@gmail.com>2022-12-18 12:18:34 -0700
committerJosh Rahm <joshuarahm@gmail.com>2022-12-18 12:18:34 -0700
commit0c45ef8884ec82d26c47e952132d54d4bb8a9238 (patch)
tree76842fb093c4ff2acaee1137b9c9efc255e9c6c9 /goal.fiddle
parent01685ab88228fb602cb0e408d93560e76e1371a1 (diff)
downloadfiddle-0c45ef8884ec82d26c47e952132d54d4bb8a9238.tar.gz
fiddle-0c45ef8884ec82d26c47e952132d54d4bb8a9238.tar.bz2
fiddle-0c45ef8884ec82d26c47e952132d54d4bb8a9238.zip
Some more fleshing-out of the parser and better AST utils.
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. */