diff options
author | Daniel Friesel <derf@finalrewind.org> | 2017-12-11 10:28:25 +0100 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2017-12-11 10:28:25 +0100 |
commit | 2253c912c86b5196e17657ee067abfc7afa4d652 (patch) | |
tree | c10d2722e0c44355bded196209bfba6d5827d06c /src/arch/msp430fr5969lp/driver | |
parent | 540974f8f109aa8874f032eddf59819c76eb018e (diff) |
Add basic uptime getter, improve loop support
Diffstat (limited to 'src/arch/msp430fr5969lp/driver')
-rw-r--r-- | src/arch/msp430fr5969lp/driver/uptime.cc | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/arch/msp430fr5969lp/driver/uptime.cc b/src/arch/msp430fr5969lp/driver/uptime.cc new file mode 100644 index 0000000..6d16441 --- /dev/null +++ b/src/arch/msp430fr5969lp/driver/uptime.cc @@ -0,0 +1,9 @@ +#include "driver/uptime.h" +#include <msp430.h> + +uint32_t Uptime::get() +{ + return TA0R; +} + +Uptime uptime; |