Statistics
| Branch: | Tag: | Revision:

amiro-os / unittests / periphery-lld / inc / ut_alld_bq27500_bq24103a.h @ 6ff06bbf

History | View | Annotate | Download (1.72 KB)

1
/*
2
AMiRo-OS is an operating system designed for the Autonomous Mini Robot (AMiRo) platform.
3
Copyright (C) 2016..2019  Thomas Schöpping et al.
4

5
This program is free software: you can redistribute it and/or modify
6
it under the terms of the GNU General Public License as published by
7
the Free Software Foundation, either version 3 of the License, or
8
(at your option) any later version.
9

10
This program is distributed in the hope that it will be useful,
11
but WITHOUT ANY WARRANTY; without even the implied warranty of
12
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13
GNU General Public License for more details.
14

15
You should have received a copy of the GNU General Public License
16
along with this program.  If not, see <http://www.gnu.org/licenses/>.
17
*/
18

    
19
#ifndef AMIROOS_UT_ALLD_BQ27500_BQ24193A_H
20
#define AMIROOS_UT_ALLD_BQ27500_BQ24193A_H
21

    
22
#include <aos_unittest.h>
23
#include <amiro-lld.h>
24

    
25
#if ((AMIROOS_CFG_TESTS_ENABLE == true) && defined(AMIROLLD_CFG_USE_BQ27500) && defined(AMIROLLD_CFG_USE_BQ24103A)) || defined(__DOXYGEN__)
26

    
27
#include <alld_bq27500.h>
28
#include <alld_bq24103a.h>
29

    
30
/**
31
 * @brief   Custom data structure for the unit test.
32
 */
33
typedef struct {
34
  /**
35
   * @brief   BQ27500 driver to use.
36
   */
37
  BQ27500Driver* bq27500;
38

    
39
  /**
40
   * @brief   BQ24103A driver to use.
41
   */
42
  BQ24103ADriver* bq24103a;
43

    
44
  /**
45
   * @brief   Timeout value (in us).
46
   */
47
  apalTime_t timeout;
48
} ut_bq27500bq24103adata_t;
49

    
50
#ifdef __cplusplus
51
extern "C" {
52
#endif
53
  aos_utresult_t utAlldBq27500Bq24103aFunc(BaseSequentialStream* stream, aos_unittest_t* ut);
54
#ifdef __cplusplus
55
}
56
#endif
57

    
58
#endif /* (AMIROOS_CFG_TESTS_ENABLE == true) && defined(AMIROLLD_CFG_USE_BQ27500) && defined(AMIROLLD_CFG_USE_BQ24103A) */
59

    
60
#endif /* AMIROOS_UT_ALLD_BQ27500_BQ24193A_H */