From 583854e37efde7f461e073e735a1736b02d28c70 Mon Sep 17 00:00:00 2001 From: Selene ToyKeeper Date: Mon, 17 Apr 2023 00:08:32 -0600 Subject: switched the rest of FSM + Anduril to use SPDX license headers instead of full GPL headers (or all too often, nothing at all) There are a few "FIXME" entries where I'm not sure about the correct copyright. --- tk.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'tk.h') diff --git a/tk.h b/tk.h index b61db08..d618134 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 @@ -14,4 +16,3 @@ // use it like this: //#include incfile(CONFIGFILE) -#endif -- cgit v1.2.3 From 5f6bb2bda2dd4eccbdfba94e5d35cedc8c0c42dc Mon Sep 17 00:00:00 2001 From: Selene ToyKeeper Date: Tue, 25 Apr 2023 01:07:15 -0600 Subject: updated D4Sv2-tintramp -> Emisar 2-channel build target ... ... and reworked how gradual_tick() works ... and updated LT1S Pro to use new method --- tk.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'tk.h') diff --git a/tk.h b/tk.h index d618134..785808d 100644 --- a/tk.h +++ b/tk.h @@ -9,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 -- cgit v1.2.3