aboutsummaryrefslogtreecommitdiff
path: root/fdl/ch573/gpio.fdl
diff options
context:
space:
mode:
Diffstat (limited to 'fdl/ch573/gpio.fdl')
-rw-r--r--fdl/ch573/gpio.fdl10
1 files changed, 8 insertions, 2 deletions
diff --git a/fdl/ch573/gpio.fdl b/fdl/ch573/gpio.fdl
index c54d956..bab481a 100644
--- a/fdl/ch573/gpio.fdl
+++ b/fdl/ch573/gpio.fdl
@@ -34,7 +34,10 @@ package ch573.gpio {
};
/** Pin input register. */
- reg pin(32);
+ reg pin(32) : struct {
+ in : bit_t[16];
+ reserved(16);
+ };
/** Pin output register. */
reg (32) : struct {
@@ -46,7 +49,10 @@ package ch573.gpio {
reg clr(32);
/** Pull-up resistor configuration. */
- reg pu(32);
+ reg (32) : struct {
+ pu : enable_t[16];
+ reserved(16);
+ };
/** pull-down/drive configuration register. */
reg (32) : struct {