lowRISC / tock

A secure embedded operating system for microcontrollers
https://www.tockos.org
Other
2 stars 3 forks source link

[tock] rewrite GPIO to use autogenerated register map #5

Closed mazurek-michal closed 1 year ago

mazurek-michal commented 1 year ago

Pull Request Overview

This pull request replace GPIO register definitions with auto-generated register map form OpenTitan project.

Testing Strategy

Run TockOS kernel with Opentitan app hello.

TODO or Help Wanted

N/A

Documentation Updated

Formatting

mazurek-michal commented 1 year ago

Size difference analysis

Result generated by command:

make clean
make flash
hash name text data bss dec hex diff
e1dc0cbb3 baseline 140518 28 13280 153826 258e2 0
64c8ecb3d regs update 140518 28 13280 153826 258e2 0
75f22d593 GPIO new regs 143174 28 13280 156482 26342 +2656
8e84b371f GPIO direct bitfield 142230 28 13280 155538 25f92 +1712
mazurek-michal commented 1 year ago

@cfrantz LGTM