diff options
Diffstat (limited to 'os/hal/include')
-rw-r--r-- | os/hal/include/adc.h | 2 | ||||
-rw-r--r-- | os/hal/include/can.h | 2 | ||||
-rw-r--r-- | os/hal/include/hal.h | 59 | ||||
-rw-r--r-- | os/hal/include/mac.h | 2 | ||||
-rw-r--r-- | os/hal/include/mmc_spi.h | 2 | ||||
-rw-r--r-- | os/hal/include/pal.h | 2 | ||||
-rw-r--r-- | os/hal/include/serial.h | 2 | ||||
-rw-r--r-- | os/hal/include/spi.h | 2 |
8 files changed, 66 insertions, 7 deletions
diff --git a/os/hal/include/adc.h b/os/hal/include/adc.h index 67ebf5ca2..685c4049f 100644 --- a/os/hal/include/adc.h +++ b/os/hal/include/adc.h @@ -27,7 +27,7 @@ #ifndef _ADC_H_
#define _ADC_H_
-#if CH_HAL_USE_ADC
+#if CH_HAL_USE_ADC || defined(__DOXYGEN__)
#if !CH_USE_SEMAPHORES
#error "ADC driver requires CH_USE_SEMAPHORES"
diff --git a/os/hal/include/can.h b/os/hal/include/can.h index 2a8ffc7e0..3d43e1c51 100644 --- a/os/hal/include/can.h +++ b/os/hal/include/can.h @@ -27,7 +27,7 @@ #ifndef _CAN_H_
#define _CAN_H_
-#if CH_HAL_USE_CAN
+#if CH_HAL_USE_CAN || defined(__DOXYGEN__)
/**
* @brief Driver state machine possible states.
diff --git a/os/hal/include/hal.h b/os/hal/include/hal.h new file mode 100644 index 000000000..34ed2f08c --- /dev/null +++ b/os/hal/include/hal.h @@ -0,0 +1,59 @@ +/*
+ ChibiOS/RT - Copyright (C) 2006-2007 Giovanni Di Sirio.
+
+ This file is part of ChibiOS/RT.
+
+ ChibiOS/RT 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.
+
+ ChibiOS/RT 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 <http://www.gnu.org/licenses/>.
+*/
+
+/**
+ * @file hal.h
+ * @brief HAL subsystem header.
+ * @addtogroup HAL
+ * @{
+ */
+
+#ifndef _HAL_H_
+#define _HAL_H_
+
+#include "halconf.h"
+#include "board.h"
+
+#include "hal_lld.h"
+
+#include "pal.h"
+#include "adc.h"
+#include "can.h"
+#include "mac.h"
+#include "serial.h"
+#include "spi.h"
+#include "mmc_spi.h"
+
+/*===========================================================================*/
+/* External declarations. */
+/*===========================================================================*/
+
+extern const STM32GPIOConfig pal_default_config;
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+ void halInit(void);
+#ifdef __cplusplus
+}
+#endif
+
+#endif /* _HAL_H_ */
+
+/** @} */
diff --git a/os/hal/include/mac.h b/os/hal/include/mac.h index ae2d3a42e..c07d6029d 100644 --- a/os/hal/include/mac.h +++ b/os/hal/include/mac.h @@ -27,7 +27,7 @@ #ifndef _MAC_H_
#define _MAC_H_
-#if CH_HAL_USE_MAC
+#if CH_HAL_USE_MAC || defined(__DOXYGEN__)
#include "mac_lld.h"
diff --git a/os/hal/include/mmc_spi.h b/os/hal/include/mmc_spi.h index e77dbe7dc..4a6886933 100644 --- a/os/hal/include/mmc_spi.h +++ b/os/hal/include/mmc_spi.h @@ -27,7 +27,7 @@ #ifndef _MMC_SPI_H_
#define _MMC_SPI_H_
-#if CH_HAL_USE_MMC_SPI
+#if CH_HAL_USE_MMC_SPI || defined(__DOXYGEN__)
/*===========================================================================*/
/* Driver pre-compile time settings. */
diff --git a/os/hal/include/pal.h b/os/hal/include/pal.h index 2ea625d5e..7f2e53344 100644 --- a/os/hal/include/pal.h +++ b/os/hal/include/pal.h @@ -27,7 +27,7 @@ #ifndef _PAL_H_
#define _PAL_H_
-#if CH_HAL_USE_PAL
+#if CH_HAL_USE_PAL || defined(__DOXYGEN__)
/**
* @brief Bits in a mode word dedicated as mode selector.
diff --git a/os/hal/include/serial.h b/os/hal/include/serial.h index 54e8b33a9..3623fa7e5 100644 --- a/os/hal/include/serial.h +++ b/os/hal/include/serial.h @@ -27,7 +27,7 @@ #ifndef _SERIAL_H_
#define _SERIAL_H_
-#if CH_HAL_USE_SERIAL
+#if CH_HAL_USE_SERIAL || defined(__DOXYGEN__)
/** No pending conditions.*/
#define SD_NO_ERROR 0
diff --git a/os/hal/include/spi.h b/os/hal/include/spi.h index 6f17f69c2..5d1355106 100644 --- a/os/hal/include/spi.h +++ b/os/hal/include/spi.h @@ -27,7 +27,7 @@ #ifndef _SPI_H_
#define _SPI_H_
-#if CH_HAL_USE_SPI
+#if CH_HAL_USE_SPI || defined(__DOXYGEN__)
/**
* @brief Enables the mutual exclusion APIs on the SPI bus.
|