Skip to content

Commit af0a524

Browse files
Andy PughAndy Pugh
authored andcommitted
halcompile: Accept hal pins of type "port"
The pin type is supported in 2.9, but the 2.9 version of halcompile does not accept them.
1 parent a036b54 commit af0a524

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/hal/utils/halcompile.g

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ parser Hal:
2424
token END: ";;"
2525
token PARAMDIRECTION: "rw|r"
2626
token PINDIRECTION: "in|out|io"
27-
token TYPE: "float|bit|signed|unsigned|u32|s32"
27+
token TYPE: "float|bit|signed|unsigned|u32|s32|port"
2828
token NAME: "[a-zA-Z_][a-zA-Z0-9_]*"
2929
token STARREDNAME: "[*]*[a-zA-Z_][a-zA-Z0-9_]*"
3030
token HALNAME: "[#a-zA-Z_][-#a-zA-Z0-9_.]*"

0 commit comments

Comments
 (0)