Commit Graph

4 Commits

Author SHA1 Message Date
03bfd901f8 lib: fix no_std compiling
Add a conditional check to enable `no_std` if the target_os is "none".

Signed-off-by: Sean Cross <sean@xobs.io>
2020-09-27 11:49:02 +08:00
9a96cbbf4f lib: bring register into the field definition
By doing this, we prevent a mismatch between registers and fields. The
compiler ought to optimize away the `Register` field.

Signed-off-by: Sean Cross <sean@xobs.io>
2020-09-27 11:44:31 +08:00
30a9171031 lib: replae usize with Register
This ensures we can't write to random values in memory.

Signed-off-by: Sean Cross <sean@xobs.io>
2020-09-27 11:31:59 +08:00
02bb380848 initial commit
Signed-off-by: Sean Cross <sean@xobs.io>
2020-09-27 11:27:18 +08:00