2020-10-22 20:17:13 +00:00
|
|
|
/***************************************************************************
|
2023-02-08 15:33:02 +00:00
|
|
|
* Copyright (C) 2020 - 2023 by Federico Amedeo Izzo IU2NUO, *
|
2022-04-03 16:12:18 +00:00
|
|
|
* Niccolò Izzo IU2KIN *
|
|
|
|
|
* Silvano Seva IU2KWO *
|
2020-10-22 20:17:13 +00:00
|
|
|
* *
|
|
|
|
|
* 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 <http://www.gnu.org/licenses/> *
|
|
|
|
|
***************************************************************************/
|
|
|
|
|
|
|
|
|
|
#ifndef HWCONFIG_H
|
|
|
|
|
#define HWCONFIG_H
|
|
|
|
|
|
2020-10-24 08:40:40 +00:00
|
|
|
#include <stm32f4xx.h>
|
2023-12-26 09:20:14 +00:00
|
|
|
#include "pinmap.h"
|
2020-10-23 06:33:44 +00:00
|
|
|
|
2022-01-20 11:54:34 +00:00
|
|
|
#ifdef __cplusplus
|
|
|
|
|
extern "C" {
|
|
|
|
|
#endif
|
|
|
|
|
|
2021-01-01 17:58:35 +00:00
|
|
|
/* Device has a working real time clock */
|
2022-06-28 09:19:50 +00:00
|
|
|
#define RTC_PRESENT
|
2021-01-01 17:58:35 +00:00
|
|
|
|
2021-02-14 16:49:23 +00:00
|
|
|
/* Device supports an optional GPS chip */
|
2022-06-28 09:19:50 +00:00
|
|
|
#define GPS_PRESENT
|
2021-02-14 16:49:23 +00:00
|
|
|
|
2021-01-28 11:52:10 +00:00
|
|
|
/* Device has a channel selection knob */
|
|
|
|
|
#define HAS_ABSOLUTE_KNOB
|
|
|
|
|
|
2020-10-22 20:17:13 +00:00
|
|
|
/* Screen dimensions */
|
2023-12-26 09:40:34 +00:00
|
|
|
#define CONFIG_SCREEN_WIDTH 160
|
|
|
|
|
#define CONFIG_SCREEN_HEIGHT 128
|
2020-10-22 20:17:13 +00:00
|
|
|
|
2020-12-19 11:49:30 +00:00
|
|
|
/* Screen pixel format */
|
2023-12-26 09:40:34 +00:00
|
|
|
#define CONFIG_PIX_FMT_RGB565
|
2020-12-19 11:49:30 +00:00
|
|
|
|
2023-08-07 18:36:22 +00:00
|
|
|
/* Screen has adjustable brightness */
|
2023-12-26 09:40:34 +00:00
|
|
|
#define CONFIG_SCREEN_BRIGHTNESS
|
2023-08-07 18:36:22 +00:00
|
|
|
|
2020-12-11 13:09:20 +00:00
|
|
|
/* Battery type */
|
2023-12-26 09:43:51 +00:00
|
|
|
#define CONFIG_BAT_LIPO_2S
|
2020-12-06 18:49:10 +00:00
|
|
|
|
2022-01-20 11:54:34 +00:00
|
|
|
#ifdef __cplusplus
|
|
|
|
|
}
|
2020-10-22 20:17:13 +00:00
|
|
|
#endif
|
2022-01-20 11:54:34 +00:00
|
|
|
|
|
|
|
|
#endif /* HWCONFIG_H */
|