/*
AMiRo-OS is an operating system designed for the Autonomous Mini Robot (AMiRo) platform.
Copyright (C) 2016..2019 Thomas Schöpping et al.
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 .
*/
/**
* @file
* @brief AMiRo-LLD configuration file for the PowerManagement v1.1 module.
* @details Contains the application specific AMiRo-LLD settings.
*
* @addtogroup powermanagement_lld_config
* @{
*/
#ifndef ALLDCONF_H
#define ALLDCONF_H
/*
* compatibility guards
*/
#define _AMIRO_LLD_CFG_
#define AMIRO_LLD_CFG_VERSION_MAJOR 1
#define AMIRO_LLD_CFG_VERSION_MINOR 0
/**
* @brief Width of the apalTime_t data type.
*
* @details Possible values are 8, 16, 32, and 64 bits.
* By definition time is represented at microsecond precision.
*/
#define AMIROLLD_CFG_TIME_SIZE 32
// required to differentiate between various sensor rings
#include
/**
* @brief Enable flag for the AT24C01BN-SH-B EEPROM.
*/
#define AMIROLLD_CFG_AT24C01B 1
/**
* @brief Enable flag for the BQ24103A charger.
*/
#define AMIROLLD_CFG_BQ241xx 1
/**
* @brief Enable flag for the BQ27500 fuel gauge.
*/
#define AMIROLLD_CFG_BQ27500 1
#define BQ27500_LLD_HWVERSION 120
/**
* @brief Enable flag for the INA219 power monitor.
*/
#define AMIROLLD_CFG_INA219 1
/**
* @brief Enable flag for the status LED.
*/
#define AMIROLLD_CFG_LED 1
/**
* @brief Enable flag for the PKLCS1212E4001 buzzer.
*/
#define AMIROLLD_CFG_PKxxxExxx 1
#define PKxxxExxx_LLD_FREQUENCY_MIN 2000
#define PKxxxExxx_LLD_FREQUENCY_SPEC 4000
#define PKxxxExxx_LLD_FREQUENCY_MAX 6000
/**
* @brief Enable flag for the TPS2051BDBV power switch.
*/
#define AMIROLLD_CFG_TPS20xxB 1
/**
* @brief Enable flag for the TPS62113 step-down converter.
*/
#define AMIROLLD_CFG_TPS6211x 1
#if (BOARD_SENSORRING == BOARD_PROXIMITYSENSOR) || defined(__DOXYGEN__)
/**
* @brief Enable flag for the MPR121 touch sensor.
*/
#define AMIROLLD_CFG_MPR121 1
/**
* @brief Enable flag for the PCA9544A I2C multiplexer.
*/
#define AMIROLLD_CFG_PCA9544A 1
/**
* @brief Enable flag for the VCNL4020 proximity sensor.
*/
#define AMIROLLD_CFG_VCNL4020 1
#endif /* (BOARD_SENSORRING == BOARD_PROXIMITYSENSOR) */
#if (BOARD_SENSORRING == BOARD_DISTANCESENSOR_VL53L0X) || defined(__DOXYGEN__)
/**
* @brief Enable flag for the PCAL6524 GPIO extender
*/
#define AMIROLLD_CFG_PCAL6524 1
/**
* @brief Enable flag for the AT42Q1050 touch sensor.
*/
#define AMIROLLD_CFG_AT42QT1050 1
#endif /* (BOARD_SENSORRING == BOARD_DISTANCESENSOR_VL53L0X) */
#if (BOARD_SENSORRING == BOARD_DISTANCESENSOR_VL53L1X) || defined(__DOXYGEN__)
/**
* @brief Enable flag for the PCAL6524 GPIO extender
*/
#define AMIROLLD_CFG_PCAL6524 1
/**
* @brief Enable flag for the AT42Q1050 touch sensor.
*/
#define AMIROLLD_CFG_AT42QT1050 1
#endif /* (BOARD_SENSORRING == BOARD_DISTANCESENSOR_VL53L1X) */
#endif /* ALLDCONF_H */
/** @} */