Statistics
| Branch: | Tag: | Revision:

amiro-os / bootloader / aos_bootloader.h @ bc7aed20

History | View | Annotate | Download (3.261 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
/**
20
 * @file    aos_bootloader.h
21
 * @brief   Bootloader wrapper header.
22
 *
23
 * @addtogroup aos_bootloader
24
 * @{
25
 */
26

    
27
#ifndef AMIROOS_BOOTLOADER_H
28
#define AMIROOS_BOOTLOADER_H
29

    
30
#include <amiroos.h>
31

    
32
/******************************************************************************/
33
/* CONSTANTS                                                                  */
34
/******************************************************************************/
35

    
36
/**
37
 * @brief   Identifier for the case that no bootloader is installed/available.
38
 */
39
#define AOS_BOOTLOADER_NONE                     0
40

    
41
/**
42
 * @brief   Identifier for AMiRo-BLT
43
 * @note    The version of the installed AMiRo-BLT can be retreived via the AMiRo-BLT interface.
44
 */
45
#define AOS_BOOTLOADER_AMiRoBLT                 1
46

    
47
/******************************************************************************/
48
/* SETTINGS                                                                   */
49
/******************************************************************************/
50

    
51
#if (AMIROOS_CFG_BOOTLOADER == AOS_BOOTLOADER_AMiRoBLT)
52
#include <amiroblt.h>
53
#endif
54

    
55
/******************************************************************************/
56
/* CHECKS                                                                     */
57
/******************************************************************************/
58

    
59
#if (AMIROOS_CFG_BOOTLOADER != AOS_BOOTLOADER_NONE) &&                        \
60
    (AMIROOS_CFG_BOOTLOADER != AOS_BOOTLOADER_AMiRoBLT)
61
  #error "AMIROOS_CFG_BOOTLOADER set to invalid value in aosconf.h"
62
#endif
63

    
64
/******************************************************************************/
65
/* DATA STRUCTURES AND TYPES                                                  */
66
/******************************************************************************/
67

    
68
/******************************************************************************/
69
/* MACROS                                                                     */
70
/******************************************************************************/
71

    
72
/******************************************************************************/
73
/* EXTERN DECLARATIONS                                                        */
74
/******************************************************************************/
75

    
76
/******************************************************************************/
77
/* INLINE FUNCTIONS                                                           */
78
/******************************************************************************/
79

    
80
#endif /* AMIROOS_BOOTLOADER_H */
81

    
82
/** @} */