ChibiOS/HAL 9.0.0
hal.h File Reference

HAL subsystem header. More...

#include "ccportab.h"
#include "osal.h"
#include "board.h"
#include "halconf.h"
#include "hal_lld.h"
#include "hal_objects.h"
#include "hal_streams.h"
#include "hal_channels.h"
#include "hal_files.h"
#include "hal_ioblock.h"
#include "hal_mmcsd.h"
#include "hal_persistent.h"
#include "hal_flash.h"
#include "hal_buffers.h"
#include "hal_queues.h"
#include "hal_buffered_serial.h"
#include "hal_pal.h"
#include "hal_adc.h"
#include "hal_can.h"
#include "hal_crypto.h"
#include "hal_dac.h"
#include "hal_efl.h"
#include "hal_gpt.h"
#include "hal_i2c.h"
#include "hal_i2s.h"
#include "hal_icu.h"
#include "hal_mac.h"
#include "hal_pwm.h"
#include "hal_rtc.h"
#include "hal_serial.h"
#include "hal_sdc.h"
#include "hal_sio.h"
#include "hal_spi.h"
#include "hal_trng.h"
#include "hal_uart.h"
#include "hal_usb.h"
#include "hal_wdg.h"
#include "hal_wspi.h"
#include "hal_mmc_spi.h"
#include "hal_serial_usb.h"
#include "hal_community.h"

Go to the source code of this file.

Macros

#define __CHIBIOS_HAL__
 ChibiOS/HAL identification macro.
#define CH_HAL_STABLE   1
 Stable release flag.
#define HAL_USE_PAL   FALSE
#define HAL_USE_ADC   FALSE
#define HAL_USE_CAN   FALSE
#define HAL_USE_CRY   FALSE
#define HAL_USE_DAC   FALSE
#define HAL_USE_EFL   FALSE
#define HAL_USE_GPT   FALSE
#define HAL_USE_I2C   FALSE
#define HAL_USE_I2S   FALSE
#define HAL_USE_ICU   FALSE
#define HAL_USE_MAC   FALSE
#define HAL_USE_PWM   FALSE
#define HAL_USE_RTC   FALSE
#define HAL_USE_SERIAL   FALSE
#define HAL_USE_SDC   FALSE
#define HAL_USE_SIO   FALSE
#define HAL_USE_SPI   FALSE
#define HAL_USE_TRNG   FALSE
#define HAL_USE_UART   FALSE
#define HAL_USE_USB   FALSE
#define HAL_USE_WDG   FALSE
#define HAL_USE_WSPI   FALSE
ChibiOS/HAL version identification
#define CH_HAL_VERSION   "9.0.0"
 HAL version string.
#define CH_HAL_MAJOR   9
 HAL version major number.
#define CH_HAL_MINOR   0
 HAL version minor number.
#define CH_HAL_PATCH   0
 HAL version patch number.
Return codes
#define HAL_SUCCESS   false
 HAL operation success.
#define HAL_FAILED   true
 HAL operation failed.
Return codes for HAL functions
#define HAL_RET_SUCCESS   MSG_OK
#define HAL_RET_CONFIG_ERROR   (msg_t)-16
 Configuration error.
#define HAL_RET_NO_RESOURCE   (msg_t)-17
 A required resource is not available.
#define HAL_RET_HW_BUSY   (msg_t)-18
 The peripheral is busy.
#define HAL_RET_HW_FAILURE   (msg_t)-19
 Peripheral failure.
#define HAL_RET_UNKNOWN_CTL   (msg_t)-20
 Unknown control code.
#define HAL_RET_IS_INVALID   (msg_t)-21
 Invalid instance pointer.

Typedefs

typedef unsigned halclkpt_t
 Type of a clock point identifier.
typedef uint32_t halfreq_t
 Type of a clock point frequency in Hz.

Functions

void halInit (void)
 HAL initialization.
static halfreq_t halClockGetPointX (halclkpt_t clkpt)
 Returns the frequency of a clock point in Hz.
static bool halClockSwitchMode (const halclkcfg_t *ccp)
 Switches to a different clock configuration.

Detailed Description

HAL subsystem header.

Definition in file hal.h.