aboutsummaryrefslogtreecommitdiffstats
path: root/fw/types.c
diff options
context:
space:
mode:
Diffstat (limited to 'fw/types.c')
-rw-r--r--fw/types.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/fw/types.c b/fw/types.c
new file mode 100644
index 0000000..c18392e
--- /dev/null
+++ b/fw/types.c
@@ -0,0 +1,13 @@
+#include <xc.h>
+
+#include <stdint.h>
+
+#include "types.h"
+
+void
+incU16(U16 *x) {
+ x->lo++;
+ if (x->lo == 0u) {
+ x->hi++;
+ }
+}