diff options
| author | Sam Anthony <sam@samanthony.xyz> | 2025-08-16 12:19:09 -0230 |
|---|---|---|
| committer | Sam Anthony <sam@samanthony.xyz> | 2025-08-16 12:19:09 -0230 |
| commit | 4a99ede565fa61005f2a6202669adaa87a8ce0ee (patch) | |
| tree | 472d4e45858d50b4f719591dc3666b5fdc129549 /sw/types.c | |
| parent | 31f8d3b1edbe9dd965dba663e40c62c336fe7ca9 (diff) | |
| download | can-gauge-interface-4a99ede565fa61005f2a6202669adaa87a8ce0ee.zip | |
spi and eeprom modules
Diffstat (limited to 'sw/types.c')
| -rw-r--r-- | sw/types.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/sw/types.c b/sw/types.c new file mode 100644 index 0000000..c18392e --- /dev/null +++ b/sw/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++; + } +} |