diff options
| author | Selene ToyKeeper | 2023-11-03 11:05:59 -0600 |
|---|---|---|
| committer | Selene ToyKeeper | 2023-11-03 11:05:59 -0600 |
| commit | 3489015ff245861355f73674f79801279d95ea39 (patch) | |
| tree | 87f188f4f407ae83fd98ff3e4ed0bcf81b4ae9d5 /fsm/tk.h | |
| parent | moved ATTINY and MODEL_NUMBER into $target/arch and $target/model, (diff) | |
| download | anduril-3489015ff245861355f73674f79801279d95ea39.tar.gz anduril-3489015ff245861355f73674f79801279d95ea39.tar.bz2 anduril-3489015ff245861355f73674f79801279d95ea39.zip | |
renamed tk*.h to arch/*.h or fsm/*.h (part 1)
to get them out of the root dir, and to start cleaning up mcu/arch code
Diffstat (limited to 'fsm/tk.h')
| -rw-r--r-- | fsm/tk.h | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/fsm/tk.h b/fsm/tk.h new file mode 100644 index 0000000..785808d --- /dev/null +++ b/fsm/tk.h @@ -0,0 +1,26 @@ +// tk.h : misc handy stuff +// Copyright (C) 2015-2023 Selene ToyKeeper +// SPDX-License-Identifier: GPL-3.0-or-later +#pragma once + +///// +// tk.h +// misc tricks which need to be available before other includes, +// 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 +#define incfile(s) incfile2(s) +// use it like this: +//#include incfile(CONFIGFILE) + |
