aboutsummaryrefslogtreecommitdiff
path: root/tk.h
diff options
context:
space:
mode:
authorSelene ToyKeeper2023-11-02 11:05:02 -0600
committerSelene ToyKeeper2023-11-02 11:05:02 -0600
commitffd9f90898699df87bf9cb283aaa724774bd91bd (patch)
treee8b6a33a5814d0b1adc6c630043650dfc19ee959 /tk.h
parentadded a "tactical mode" on "Off -> 6C" (diff)
parentslightly longer smooth-off animation, to make on and off feel symmetrical (diff)
downloadanduril-ffd9f90898699df87bf9cb283aaa724774bd91bd.tar.gz
anduril-ffd9f90898699df87bf9cb283aaa724774bd91bd.tar.bz2
anduril-ffd9f90898699df87bf9cb283aaa724774bd91bd.zip
merged multi-channel branch with a major refactor and half a year of updates
Diffstat (limited to 'tk.h')
-rw-r--r--tk.h15
1 files changed, 12 insertions, 3 deletions
diff --git a/tk.h b/tk.h
index b61db08..785808d 100644
--- a/tk.h
+++ b/tk.h
@@ -1,5 +1,7 @@
-#ifndef TK_H
-#define TK_H
+// tk.h : misc handy stuff
+// Copyright (C) 2015-2023 Selene ToyKeeper
+// SPDX-License-Identifier: GPL-3.0-or-later
+#pragma once
/////
// tk.h
@@ -7,6 +9,14 @@
// but which don't need to be repeated in every source file
////
+// AVR GCC has no boolean type by default
+// (this isn't native bool, but it's mostly okay)
+#define bool uint8_t
+#define false 0
+#define true 1
+#define FALSE 0
+#define TRUE 1
+
// create a way to include files defined at the command line,
// like with "gcc -DCONFIGFILE=foo.h"
#define incfile2(s) #s
@@ -14,4 +24,3 @@
// use it like this:
//#include incfile(CONFIGFILE)
-#endif