/*************************************************************************** * Copyright (C) 2020 - 2025 by Federico Amedeo Izzo IU2NUO, * * Niccolò Izzo IU2KIN * * Frederik Saraci IU2NRO * * Silvano Seva IU2KWO * * * * 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 * ***************************************************************************/ #ifndef HWCONFIG_H #define HWCONFIG_H #include "MK22F51212.h" #ifdef PLATFORM_GD77 #include "pinmap_GD77.h" #else #include "pinmap_DM1801.h" #endif #ifdef __cplusplus extern "C" { #endif extern const struct spiCustomDevice nvm_spi; extern const struct spiDevice c6000_spi; /* Screen dimensions */ #define CONFIG_SCREEN_WIDTH 128 #define CONFIG_SCREEN_HEIGHT 64 /* Screen pixel format */ #define CONFIG_PIX_FMT_BW /* Screen has adjustable contrast */ #define CONFIG_SCREEN_CONTRAST #define CONFIG_DEFAULT_CONTRAST 71 /* Screen has adjustable brightness */ #define CONFIG_SCREEN_BRIGHTNESS /* Battery type */ #define CONFIG_BAT_LIION #define CONFIG_BAT_NCELLS 2 #ifdef __cplusplus } #endif #endif /* HWCONFIG_H */