/*

  Zerocat Chipflasher --- Flash free firmware, kick the Management Engine.

  Copyright (C) 2016, 2017, 2018, 2019, 2020, 2021, 2022  Kai Mertens <kmx@posteo.net>

  This file is part of Zerocat Chipflasher.

  Zerocat Chipflasher 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.

  Zerocat Chipflasher 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 Zerocat Chipflasher.
  If not, see <http://www.gnu.org/licenses/>.


***/


/*

  Documentation
  =============


  TODO: Set VERSION automatically,
  via `firmware/src/Makefile` and `host/src/Makefile`.


  Brief
  -----


  This file is used by both, `kick` and `connect`.


***/


# ifndef __COMMON_H__
#   define __COMMON_H__


//  Macros
//  ======


#   define ON                  1
#   define OFF                 0

// Width of menu lines.
#   define MENUWIDTH           96

// Version string for the chipflasher software (`kick` and `connect`).
// Version according to: `doc/version-history.md`
#   define VERSION             "<VERSION>"


//  Function Prototypes
//  ===================


signed char hexdigit2bin (
  unsigned char hexdigit
);

# endif
/* __COMMON_H__ */

