summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/counter.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/counter.h b/src/counter.h
index e0126db..978974d 100644
--- a/src/counter.h
+++ b/src/counter.h
@@ -13,6 +13,10 @@ public:
int read() {
return _count;
}
+
+ int write(int new_count) {
+ _count = new_count;
+ }
private:
InterruptIn _interrupt;