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-attiny.h | 29 ++++++----------------------- 1 file changed, 6 insertions(+), 23 deletions(-) (limited to 'tk-attiny.h') diff --git a/tk-attiny.h b/tk-attiny.h index 110507b..ad2ed3b 100644 --- a/tk-attiny.h +++ b/tk-attiny.h @@ -1,25 +1,9 @@ -#ifndef TK_ATTINY_H -#define TK_ATTINY_H -/* - * Attiny portability header. - * This helps abstract away the differences between various attiny MCUs. - * - * Copyright (C) 2017 Selene ToyKeeper - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . - * - */ +// tk-attiny.h: Attiny portability header. +// Copyright (C) 2014-2023 Selene ToyKeeper +// SPDX-License-Identifier: GPL-3.0-or-later +#pragma once + +// This helps abstract away the differences between various attiny MCUs. // Choose your MCU here, or in the main .c file, or in the build script //#define ATTINY 13 @@ -171,4 +155,3 @@ #error Unable to define MCU macros. #endif -#endif // TK_ATTINY_H -- cgit v1.2.3 From a6a752a14017e79745550b8561e79491b9ca1f74 Mon Sep 17 00:00:00 2001 From: Selene ToyKeeper Date: Sun, 29 Oct 2023 14:13:38 -0600 Subject: fixed delay timing on attiny1616 (it was about 17% too long this whole time) (and re-adjusted smooth step timing accordingly) --- tk-attiny.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tk-attiny.h') diff --git a/tk-attiny.h b/tk-attiny.h index ad2ed3b..9532ed5 100644 --- a/tk-attiny.h +++ b/tk-attiny.h @@ -58,7 +58,7 @@ #elif (ATTINY == 412) || (ATTINY == 416) || (ATTINY == 417) || (ATTINY == 816) || (ATTINY == 817) || (ATTINY == 1616) || (ATTINY == 1617) || (ATTINY == 3216) || (ATTINY == 3217) #define AVRXMEGA3 #define F_CPU 10000000UL - #define BOGOMIPS (F_CPU/4000) + #define BOGOMIPS (F_CPU/4700) #define EEPSIZE 128 #define DELAY_ZERO_TIME 1020 #else -- cgit v1.2.3