2020 February 29 Breaking Changes Update (#8064)
This commit is contained in:
		
							parent
							
								
									85041ff05b
								
							
						
					
					
						commit
						26eef35f07
					
				
					 362 changed files with 27772 additions and 8810 deletions
				
			
		| 
						 | 
				
			
			@ -1,5 +1,5 @@
 | 
			
		|||
/*
 | 
			
		||||
    ChibiOS - Copyright (C) 2006..2016 Giovanni Di Sirio
 | 
			
		||||
    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.
 | 
			
		||||
| 
						 | 
				
			
			@ -28,6 +28,9 @@
 | 
			
		|||
#ifndef HALCONF_H
 | 
			
		||||
#    define HALCONF_H
 | 
			
		||||
 | 
			
		||||
#    define _CHIBIOS_HAL_CONF_
 | 
			
		||||
#    define _CHIBIOS_HAL_CONF_VER_7_0_
 | 
			
		||||
 | 
			
		||||
#    include "mcuconf.h"
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
| 
						 | 
				
			
			@ -51,6 +54,13 @@
 | 
			
		|||
#        define HAL_USE_CAN FALSE
 | 
			
		||||
#    endif
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 * @brief   Enables the cryptographic subsystem.
 | 
			
		||||
 */
 | 
			
		||||
#    if !defined(HAL_USE_CRY) || defined(__DOXYGEN__)
 | 
			
		||||
#        define HAL_USE_CRY FALSE
 | 
			
		||||
#    endif
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 * @brief   Enables the DAC subsystem.
 | 
			
		||||
 */
 | 
			
		||||
| 
						 | 
				
			
			@ -58,13 +68,6 @@
 | 
			
		|||
#        define HAL_USE_DAC TRUE
 | 
			
		||||
#    endif
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 * @brief   Enables the EXT subsystem.
 | 
			
		||||
 */
 | 
			
		||||
#    if !defined(HAL_USE_EXT) || defined(__DOXYGEN__)
 | 
			
		||||
#        define HAL_USE_EXT FALSE
 | 
			
		||||
#    endif
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 * @brief   Enables the GPT subsystem.
 | 
			
		||||
 */
 | 
			
		||||
| 
						 | 
				
			
			@ -114,13 +117,6 @@
 | 
			
		|||
#        define HAL_USE_PWM TRUE
 | 
			
		||||
#    endif
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 * @brief   Enables the QSPI subsystem.
 | 
			
		||||
 */
 | 
			
		||||
#    if !defined(HAL_USE_QSPI) || defined(__DOXYGEN__)
 | 
			
		||||
#        define HAL_USE_QSPI FALSE
 | 
			
		||||
#    endif
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 * @brief   Enables the RTC subsystem.
 | 
			
		||||
 */
 | 
			
		||||
| 
						 | 
				
			
			@ -149,6 +145,13 @@
 | 
			
		|||
#        define HAL_USE_SERIAL_USB TRUE
 | 
			
		||||
#    endif
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 * @brief   Enables the SIO subsystem.
 | 
			
		||||
 */
 | 
			
		||||
#    if !defined(HAL_USE_SIO) || defined(__DOXYGEN__)
 | 
			
		||||
#        define HAL_USE_SIO FALSE
 | 
			
		||||
#    endif
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 * @brief   Enables the SPI subsystem.
 | 
			
		||||
 */
 | 
			
		||||
| 
						 | 
				
			
			@ -156,6 +159,13 @@
 | 
			
		|||
#        define HAL_USE_SPI FALSE
 | 
			
		||||
#    endif
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 * @brief   Enables the TRNG subsystem.
 | 
			
		||||
 */
 | 
			
		||||
#    if !defined(HAL_USE_TRNG) || defined(__DOXYGEN__)
 | 
			
		||||
#        define HAL_USE_TRNG FALSE
 | 
			
		||||
#    endif
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 * @brief   Enables the UART subsystem.
 | 
			
		||||
 */
 | 
			
		||||
| 
						 | 
				
			
			@ -177,6 +187,33 @@
 | 
			
		|||
#        define HAL_USE_WDG FALSE
 | 
			
		||||
#    endif
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 * @brief   Enables the WSPI subsystem.
 | 
			
		||||
 */
 | 
			
		||||
#    if !defined(HAL_USE_WSPI) || defined(__DOXYGEN__)
 | 
			
		||||
#        define HAL_USE_WSPI FALSE
 | 
			
		||||
#    endif
 | 
			
		||||
 | 
			
		||||
/*===========================================================================*/
 | 
			
		||||
/* PAL driver related settings.                                              */
 | 
			
		||||
/*===========================================================================*/
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 * @brief   Enables synchronous APIs.
 | 
			
		||||
 * @note    Disabling this option saves both code and data space.
 | 
			
		||||
 */
 | 
			
		||||
#    if !defined(PAL_USE_CALLBACKS) || defined(__DOXYGEN__)
 | 
			
		||||
#        define PAL_USE_CALLBACKS FALSE
 | 
			
		||||
#    endif
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 * @brief   Enables synchronous APIs.
 | 
			
		||||
 * @note    Disabling this option saves both code and data space.
 | 
			
		||||
 */
 | 
			
		||||
#    if !defined(PAL_USE_WAIT) || defined(__DOXYGEN__)
 | 
			
		||||
#        define PAL_USE_WAIT FALSE
 | 
			
		||||
#    endif
 | 
			
		||||
 | 
			
		||||
/*===========================================================================*/
 | 
			
		||||
/* ADC driver related settings.                                              */
 | 
			
		||||
/*===========================================================================*/
 | 
			
		||||
| 
						 | 
				
			
			@ -208,6 +245,55 @@
 | 
			
		|||
#        define CAN_USE_SLEEP_MODE TRUE
 | 
			
		||||
#    endif
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 * @brief   Enforces the driver to use direct callbacks rather than OSAL events.
 | 
			
		||||
 */
 | 
			
		||||
#    if !defined(CAN_ENFORCE_USE_CALLBACKS) || defined(__DOXYGEN__)
 | 
			
		||||
#        define CAN_ENFORCE_USE_CALLBACKS FALSE
 | 
			
		||||
#    endif
 | 
			
		||||
 | 
			
		||||
/*===========================================================================*/
 | 
			
		||||
/* CRY driver related settings.                                              */
 | 
			
		||||
/*===========================================================================*/
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 * @brief   Enables the SW fall-back of the cryptographic driver.
 | 
			
		||||
 * @details When enabled, this option, activates a fall-back software
 | 
			
		||||
 *          implementation for algorithms not supported by the underlying
 | 
			
		||||
 *          hardware.
 | 
			
		||||
 * @note    Fall-back implementations may not be present for all algorithms.
 | 
			
		||||
 */
 | 
			
		||||
#    if !defined(HAL_CRY_USE_FALLBACK) || defined(__DOXYGEN__)
 | 
			
		||||
#        define HAL_CRY_USE_FALLBACK FALSE
 | 
			
		||||
#    endif
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 * @brief   Makes the driver forcibly use the fall-back implementations.
 | 
			
		||||
 */
 | 
			
		||||
#    if !defined(HAL_CRY_ENFORCE_FALLBACK) || defined(__DOXYGEN__)
 | 
			
		||||
#        define HAL_CRY_ENFORCE_FALLBACK FALSE
 | 
			
		||||
#    endif
 | 
			
		||||
 | 
			
		||||
/*===========================================================================*/
 | 
			
		||||
/* DAC driver related settings.                                              */
 | 
			
		||||
/*===========================================================================*/
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 * @brief   Enables synchronous APIs.
 | 
			
		||||
 * @note    Disabling this option saves both code and data space.
 | 
			
		||||
 */
 | 
			
		||||
#    if !defined(DAC_USE_WAIT) || defined(__DOXYGEN__)
 | 
			
		||||
#        define DAC_USE_WAIT TRUE
 | 
			
		||||
#    endif
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 * @brief   Enables the @p dacAcquireBus() and @p dacReleaseBus() APIs.
 | 
			
		||||
 * @note    Disabling this option saves both code and data space.
 | 
			
		||||
 */
 | 
			
		||||
#    if !defined(DAC_USE_MUTUAL_EXCLUSION) || defined(__DOXYGEN__)
 | 
			
		||||
#        define DAC_USE_MUTUAL_EXCLUSION TRUE
 | 
			
		||||
#    endif
 | 
			
		||||
 | 
			
		||||
/*===========================================================================*/
 | 
			
		||||
/* I2C driver related settings.                                              */
 | 
			
		||||
/*===========================================================================*/
 | 
			
		||||
| 
						 | 
				
			
			@ -224,7 +310,7 @@
 | 
			
		|||
/*===========================================================================*/
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 * @brief   Enables an event sources for incoming packets.
 | 
			
		||||
 * @brief   Enables the zero-copy API.
 | 
			
		||||
 */
 | 
			
		||||
#    if !defined(MAC_USE_ZERO_COPY) || defined(__DOXYGEN__)
 | 
			
		||||
#        define MAC_USE_ZERO_COPY FALSE
 | 
			
		||||
| 
						 | 
				
			
			@ -284,6 +370,20 @@
 | 
			
		|||
#        define SDC_NICE_WAITING TRUE
 | 
			
		||||
#    endif
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 * @brief   OCR initialization constant for V20 cards.
 | 
			
		||||
 */
 | 
			
		||||
#    if !defined(SDC_INIT_OCR_V20) || defined(__DOXYGEN__)
 | 
			
		||||
#        define SDC_INIT_OCR_V20 0x50FF8000U
 | 
			
		||||
#    endif
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 * @brief   OCR initialization constant for non-V20 cards.
 | 
			
		||||
 */
 | 
			
		||||
#    if !defined(SDC_INIT_OCR) || defined(__DOXYGEN__)
 | 
			
		||||
#        define SDC_INIT_OCR 0x80100000U
 | 
			
		||||
#    endif
 | 
			
		||||
 | 
			
		||||
/*===========================================================================*/
 | 
			
		||||
/* SERIAL driver related settings.                                           */
 | 
			
		||||
/*===========================================================================*/
 | 
			
		||||
| 
						 | 
				
			
			@ -343,6 +443,14 @@
 | 
			
		|||
#        define SPI_USE_WAIT TRUE
 | 
			
		||||
#    endif
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 * @brief   Enables circular transfers APIs.
 | 
			
		||||
 * @note    Disabling this option saves both code and data space.
 | 
			
		||||
 */
 | 
			
		||||
#    if !defined(SPI_USE_CIRCULAR) || defined(__DOXYGEN__)
 | 
			
		||||
#        define SPI_USE_CIRCULAR FALSE
 | 
			
		||||
#    endif
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 * @brief   Enables the @p spiAcquireBus() and @p spiReleaseBus() APIs.
 | 
			
		||||
 * @note    Disabling this option saves both code and data space.
 | 
			
		||||
| 
						 | 
				
			
			@ -351,6 +459,14 @@
 | 
			
		|||
#        define SPI_USE_MUTUAL_EXCLUSION TRUE
 | 
			
		||||
#    endif
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 * @brief   Handling method for SPI CS line.
 | 
			
		||||
 * @note    Disabling this option saves both code and data space.
 | 
			
		||||
 */
 | 
			
		||||
#    if !defined(SPI_SELECT_MODE) || defined(__DOXYGEN__)
 | 
			
		||||
#        define SPI_SELECT_MODE SPI_SELECT_MODE_PAD
 | 
			
		||||
#    endif
 | 
			
		||||
 | 
			
		||||
/*===========================================================================*/
 | 
			
		||||
/* UART driver related settings.                                             */
 | 
			
		||||
/*===========================================================================*/
 | 
			
		||||
| 
						 | 
				
			
			@ -383,6 +499,26 @@
 | 
			
		|||
#        define USB_USE_WAIT TRUE
 | 
			
		||||
#    endif
 | 
			
		||||
 | 
			
		||||
/*===========================================================================*/
 | 
			
		||||
/* WSPI driver related settings.                                             */
 | 
			
		||||
/*===========================================================================*/
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 * @brief   Enables synchronous APIs.
 | 
			
		||||
 * @note    Disabling this option saves both code and data space.
 | 
			
		||||
 */
 | 
			
		||||
#    if !defined(WSPI_USE_WAIT) || defined(__DOXYGEN__)
 | 
			
		||||
#        define WSPI_USE_WAIT TRUE
 | 
			
		||||
#    endif
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 * @brief   Enables the @p wspiAcquireBus() and @p wspiReleaseBus() APIs.
 | 
			
		||||
 * @note    Disabling this option saves both code and data space.
 | 
			
		||||
 */
 | 
			
		||||
#    if !defined(WSPI_USE_MUTUAL_EXCLUSION) || defined(__DOXYGEN__)
 | 
			
		||||
#        define WSPI_USE_MUTUAL_EXCLUSION TRUE
 | 
			
		||||
#    endif
 | 
			
		||||
 | 
			
		||||
#endif /* HALCONF_H */
 | 
			
		||||
 | 
			
		||||
/** @} */
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue