aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal/ports/SAMA/SAMA5D2x/sama_registry.h
blob: 31a017707c1f7b888473f7cddc36c00a0704a398 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
/*
    ChibiOS - Copyright (C) 2006..2018 Giovanni Di Sirio

    Licensed under the Apache License, Version 2.0 (the "License");
    you may not use this file except in compliance with the License.
    You may obtain a copy of the License at

        http://www.apache.org/licenses/LICENSE-2.0

    Unless required by applicable law or agreed to in writing, software
    distributed under the License is distributed on an "AS IS" BASIS,
    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    See the License for the specific language governing permissions and
    limitations under the License.
*/

/**
 * @file    SAMA5D2x/sama_registry.h
 * @brief   SAMA5D2x capabilities registry.
 *
 * @addtogroup HAL
 * @{
 */

#ifndef SAMA_REGISTRY_H
#define SAMA_REGISTRY_H

/**
 * @brief   Sub-family identifier.
 */
#if !defined(SAMA5D2X) || defined(__DOXYGEN__)
#define SAMA5D2X
#endif

/*===========================================================================*/
/* Common features.                                                          */
/*===========================================================================*/

/*===========================================================================*/
/* Platform capabilities.                                                    */
/*===========================================================================*/

/**
 * @name    SAMA5D27 capabilities
 * @{
 */
/*===========================================================================*/
/* SAMA5D27.                                                                 */
/*===========================================================================*/

#if defined(SAMA5D27) || defined(__DOXYGEN__)

#endif /* defined(SAMA5D27) */

/* PIO attributes.*/
#define SAMA_HAS_PIOA                       TRUE
#if SAMA_HAL_IS_SECURE
#define PIOA_BASE                           0xFC039000U
#else
#define PIOA_BASE                           0xFC038000U
#endif

#define SAMA_HAS_PIOB                       TRUE
#if SAMA_HAL_IS_SECURE
#define PIOB_BASE                           0xFC039040U
#else
#define PIOB_BASE                           0xFC038040U
#endif

#define SAMA_HAS_PIOC                       TRUE
#if SAMA_HAL_IS_SECURE
#define PIOC_BASE                           0xFC039080U
#else
#define PIOC_BASE                           0xFC038080U
#endif

#define SAMA_HAS_PIOD                       TRUE
#if SAMA_HAL_IS_SECURE
#define PIOD_BASE                           0xFC0390C0U
#else
#define PIOD_BASE                           0xFC0380C0U
#endif
/** @} */

#endif /* SAMA_REGISTRY_H */

/** @} */