Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit57637a3

Browse files
committed
system(F0) update STM32F0xx HAL Drivers to v1.7.7
Included in STM32CubeF0 FW v1.11.4Signed-off-by: Frederic Pillon <frederic.pillon@st.com>
1 parent5c87586 commit57637a3

File tree

143 files changed

+7153
-5697
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

143 files changed

+7153
-5697
lines changed

‎system/Drivers/STM32F0xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h

Lines changed: 539 additions & 60 deletions
Large diffs are not rendered by default.

‎system/Drivers/STM32F0xx_HAL_Driver/Inc/Legacy/stm32f0xx_hal_can_legacy.h

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,12 @@
66
******************************************************************************
77
* @attention
88
*
9-
*<h2><center>&copy;Copyright (c)2017 STMicroelectronics.
10-
* All rights reserved.</center></h2>
9+
* Copyright (c)2016 STMicroelectronics.
10+
* All rights reserved.
1111
*
12-
* This software component is licensed by ST under BSD 3-Clause license,
13-
* the "License"; You may not use this file except in compliance with the
14-
* License. You may obtain a copy of the License at:
15-
* opensource.org/licenses/BSD-3-Clause
12+
* This software is licensed under terms that can be found in the LICENSE file
13+
* in the root directory of this software component.
14+
* If no LICENSE file comes with this software, it is provided AS-IS.
1615
*
1716
******************************************************************************
1817
*/
@@ -789,6 +788,3 @@ HAL_CAN_StateTypeDef HAL_CAN_GetState(CAN_HandleTypeDef* hcan);
789788
#endif
790789

791790
#endif/* __STM32F0xx_HAL_CAN_LEGACY_H */
792-
793-
794-
/************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/

‎system/Drivers/STM32F0xx_HAL_Driver/Inc/stm32_assert_template.h

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,12 @@
88
******************************************************************************
99
* @attention
1010
*
11-
*<h2><center>&copy;Copyright (c) 2016 STMicroelectronics.
12-
* All rights reserved.</center></h2>
11+
* Copyright (c) 2016 STMicroelectronics.
12+
* All rights reserved.
1313
*
14-
* This software component is licensed by ST under BSD 3-Clause license,
15-
* the "License"; You may not use this file except in compliance with the
16-
* License. You may obtain a copy of the License at:
17-
* opensource.org/licenses/BSD-3-Clause
14+
* This software is licensed under terms that can be found in the LICENSE file
15+
* in the root directory of this software component.
16+
* If no LICENSE file comes with this software, it is provided AS-IS.
1817
*
1918
******************************************************************************
2019
*/
@@ -54,4 +53,3 @@
5453
#endif/* __STM32_ASSERT_H */
5554

5655

57-
/************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/

‎system/Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal.h

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,12 @@
77
******************************************************************************
88
* @attention
99
*
10-
*<h2><center>&copy;Copyright (c) 2016 STMicroelectronics.
11-
* All rights reserved.</center></h2>
10+
* Copyright (c) 2016 STMicroelectronics.
11+
* All rights reserved.
1212
*
13-
* This software component is licensed by ST under BSD 3-Clause license,
14-
* the "License"; You may not use this file except in compliance with the
15-
* License. You may obtain a copy of the License at:
16-
* opensource.org/licenses/BSD-3-Clause
13+
* This software is licensed under terms that can be found in the LICENSE file
14+
* in the root directory of this software component.
15+
* If no LICENSE file comes with this software, it is provided AS-IS.
1716
*
1817
******************************************************************************
1918
*/
@@ -103,13 +102,13 @@ typedef enum
103102
#endif/* SYSCFG_CFGR1_PA11_PA12_RMP */
104103

105104
#if defined(STM32F091xC)|| defined(STM32F098xx)
106-
/** @defgroup HAL_IRDA_ENV_SEL HAL IRDAEnveloppe Selection
105+
/** @defgroup HAL_IRDA_ENV_SEL HAL IRDAEnvelope Selection
107106
* @note Applicable on STM32F09x
108107
* @{
109108
*/
110-
#defineHAL_SYSCFG_IRDA_ENV_SEL_TIM16 (SYSCFG_CFGR1_IRDA_ENV_SEL_0 & SYSCFG_CFGR1_IRDA_ENV_SEL_1)/* 00: Timer16 is selected as IRDA Modulationenveloppe source */
111-
#defineHAL_SYSCFG_IRDA_ENV_SEL_USART1 (SYSCFG_CFGR1_IRDA_ENV_SEL_0)/* 01: USART1 is selected as IRDA Modulationenveloppe source */
112-
#defineHAL_SYSCFG_IRDA_ENV_SEL_USART4 (SYSCFG_CFGR1_IRDA_ENV_SEL_1)/* 10: USART4 is selected as IRDA Modulationenveloppe source */
109+
#defineHAL_SYSCFG_IRDA_ENV_SEL_TIM16 (SYSCFG_CFGR1_IRDA_ENV_SEL_0 & SYSCFG_CFGR1_IRDA_ENV_SEL_1)/* 00: Timer16 is selected as IRDA Modulationenvelope source */
110+
#defineHAL_SYSCFG_IRDA_ENV_SEL_USART1 (SYSCFG_CFGR1_IRDA_ENV_SEL_0)/* 01: USART1 is selected as IRDA Modulationenvelope source */
111+
#defineHAL_SYSCFG_IRDA_ENV_SEL_USART4 (SYSCFG_CFGR1_IRDA_ENV_SEL_1)/* 10: USART4 is selected as IRDA Modulationenvelope source */
113112

114113
/**
115114
* @}
@@ -582,4 +581,3 @@ void HAL_DBGMCU_DisableDBGStandbyMode(void);
582581

583582
#endif/* __STM32F0xx_HAL_H */
584583

585-
/************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/

‎system/Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_adc.h

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,12 @@
66
******************************************************************************
77
* @attention
88
*
9-
*<h2><center>&copy;Copyright (c) 2016 STMicroelectronics.
10-
* All rights reserved.</center></h2>
9+
* Copyright (c) 2016 STMicroelectronics.
10+
* All rights reserved.
1111
*
12-
* This software component is licensed by ST under BSD 3-Clause license,
13-
* the "License"; You may not use this file except in compliance with the
14-
* License. You may obtain a copy of the License at:
15-
* opensource.org/licenses/BSD-3-Clause
12+
* This software is licensed under terms that can be found in the LICENSE file
13+
* in the root directory of this software component.
14+
* If no LICENSE file comes with this software, it is provided AS-IS.
1615
*
1716
******************************************************************************
1817
*/
@@ -783,7 +782,7 @@ typedef void (*pADC_CallbackTypeDef)(ADC_HandleTypeDef *hadc); /*!< pointer to
783782
/**
784783
* @brief Enable ADC overrun mode.
785784
* @param _OVERRUN_MODE_ Overrun mode.
786-
* @retvalOverun bit setting to be programmed into CFGR register
785+
* @retvalOverrun bit setting to be programmed into CFGR register
787786
*/
788787
/* Note: Bit ADC_CFGR1_OVRMOD not used directly in constant */
789788
/* "ADC_OVR_DATA_OVERWRITTEN" to have this case defined to 0x00, to set it */
@@ -1015,5 +1014,4 @@ uint32_t HAL_ADC_GetError(ADC_HandleTypeDef *hadc);
10151014

10161015
#endif/* STM32F0xx_HAL_ADC_H */
10171016

1018-
/************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
10191017

‎system/Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_adc_ex.h

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,12 @@
66
******************************************************************************
77
* @attention
88
*
9-
*<h2><center>&copy;Copyright (c) 2016 STMicroelectronics.
10-
* All rights reserved.</center></h2>
9+
* Copyright (c) 2016 STMicroelectronics.
10+
* All rights reserved.
1111
*
12-
* This software component is licensed by ST under BSD 3-Clause license,
13-
* the "License"; You may not use this file except in compliance with the
14-
* License. You may obtain a copy of the License at:
15-
* opensource.org/licenses/BSD-3-Clause
12+
* This software is licensed under terms that can be found in the LICENSE file
13+
* in the root directory of this software component.
14+
* If no LICENSE file comes with this software, it is provided AS-IS.
1615
*
1716
******************************************************************************
1817
*/
@@ -295,5 +294,3 @@ HAL_StatusTypeDef HAL_ADCEx_Calibration_Start(ADC_HandleTypeDef* hadc);
295294
#endif/* __STM32F0xx_HAL_ADC_EX_H */
296295

297296

298-
/************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
299-

‎system/Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_can.h

Lines changed: 35 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,12 @@
66
******************************************************************************
77
* @attention
88
*
9-
*<h2><center>&copy;Copyright (c) 2016 STMicroelectronics.
10-
* All rights reserved.</center></h2>
9+
* Copyright (c) 2016 STMicroelectronics.
10+
* All rights reserved.
1111
*
12-
* This software component is licensed by ST under BSD 3-Clause license,
13-
* the "License"; You may not use this file except in compliance with the
14-
* License. You may obtain a copy of the License at:
15-
* opensource.org/licenses/BSD-3-Clause
12+
* This software is licensed under terms that can be found in the LICENSE file
13+
* in the root directory of this software component.
14+
* If no LICENSE file comes with this software, it is provided AS-IS.
1615
*
1716
******************************************************************************
1817
*/
@@ -103,21 +102,25 @@ typedef struct
103102
{
104103
uint32_tFilterIdHigh;/*!< Specifies the filter identification number (MSBs for a 32-bit
105104
configuration, first one for a 16-bit configuration).
106-
This parameter must be a number between Min_Data = 0x0000 and Max_Data = 0xFFFF. */
105+
This parameter must be a number between
106+
Min_Data = 0x0000 and Max_Data = 0xFFFF. */
107107

108108
uint32_tFilterIdLow;/*!< Specifies the filter identification number (LSBs for a 32-bit
109109
configuration, second one for a 16-bit configuration).
110-
This parameter must be a number between Min_Data = 0x0000 and Max_Data = 0xFFFF. */
110+
This parameter must be a number between
111+
Min_Data = 0x0000 and Max_Data = 0xFFFF. */
111112

112113
uint32_tFilterMaskIdHigh;/*!< Specifies the filter mask number or identification number,
113114
according to the mode (MSBs for a 32-bit configuration,
114115
first one for a 16-bit configuration).
115-
This parameter must be a number between Min_Data = 0x0000 and Max_Data = 0xFFFF. */
116+
This parameter must be a number between
117+
Min_Data = 0x0000 and Max_Data = 0xFFFF. */
116118

117119
uint32_tFilterMaskIdLow;/*!< Specifies the filter mask number or identification number,
118120
according to the mode (LSBs for a 32-bit configuration,
119121
second one for a 16-bit configuration).
120-
This parameter must be a number between Min_Data = 0x0000 and Max_Data = 0xFFFF. */
122+
This parameter must be a number between
123+
Min_Data = 0x0000 and Max_Data = 0xFFFF. */
121124

122125
uint32_tFilterFIFOAssignment;/*!< Specifies the FIFO (0 or 1U) which will be assigned to the filter.
123126
This parameter can be a value of @ref CAN_filter_FIFO */
@@ -136,7 +139,7 @@ typedef struct
136139

137140
uint32_tSlaveStartFilterBank;/*!< Select the start filter bank for the slave CAN instance.
138141
STM32F0xx devices don't support slave CAN instance (dual CAN). Therefore
139-
this parameter is meaningless but it has been kept for compatibilityaccross
142+
this parameter is meaningless but it has been kept for compatibilityacross
140143
STM32 families. */
141144

142145
}CAN_FilterTypeDef;
@@ -290,11 +293,11 @@ typedef void (*pCAN_CallbackTypeDef)(CAN_HandleTypeDef *hcan); /*!< pointer to
290293
#defineHAL_CAN_ERROR_RX_FOV0 (0x00000200U)/*!< Rx FIFO0 overrun error */
291294
#defineHAL_CAN_ERROR_RX_FOV1 (0x00000400U)/*!< Rx FIFO1 overrun error */
292295
#defineHAL_CAN_ERROR_TX_ALST0 (0x00000800U)/*!< TxMailbox 0 transmit failure due to arbitration lost */
293-
#defineHAL_CAN_ERROR_TX_TERR0 (0x00001000U)/*!< TxMailbox 0 transmit failure due to transmit error*/
296+
#defineHAL_CAN_ERROR_TX_TERR0 (0x00001000U)/*!< TxMailbox 0 transmit failure due to transmit error */
294297
#defineHAL_CAN_ERROR_TX_ALST1 (0x00002000U)/*!< TxMailbox 1 transmit failure due to arbitration lost */
295-
#defineHAL_CAN_ERROR_TX_TERR1 (0x00004000U)/*!< TxMailbox 1 transmit failure due to transmit error*/
298+
#defineHAL_CAN_ERROR_TX_TERR1 (0x00004000U)/*!< TxMailbox 1 transmit failure due to transmit error */
296299
#defineHAL_CAN_ERROR_TX_ALST2 (0x00008000U)/*!< TxMailbox 2 transmit failure due to arbitration lost */
297-
#defineHAL_CAN_ERROR_TX_TERR2 (0x00010000U)/*!< TxMailbox 2 transmit failure due to transmit error*/
300+
#defineHAL_CAN_ERROR_TX_TERR2 (0x00010000U)/*!< TxMailbox 2 transmit failure due to transmit error */
298301
#defineHAL_CAN_ERROR_TIMEOUT (0x00020000U)/*!< Timeout error */
299302
#defineHAL_CAN_ERROR_NOT_INITIALIZED (0x00040000U)/*!< Peripheral not initialized */
300303
#defineHAL_CAN_ERROR_NOT_READY (0x00080000U)/*!< Peripheral not ready */
@@ -325,7 +328,8 @@ typedef void (*pCAN_CallbackTypeDef)(CAN_HandleTypeDef *hcan); /*!< pointer to
325328
#defineCAN_MODE_NORMAL (0x00000000U)/*!< Normal mode */
326329
#defineCAN_MODE_LOOPBACK ((uint32_t)CAN_BTR_LBKM)/*!< Loopback mode */
327330
#defineCAN_MODE_SILENT ((uint32_t)CAN_BTR_SILM)/*!< Silent mode */
328-
#defineCAN_MODE_SILENT_LOOPBACK ((uint32_t)(CAN_BTR_LBKM | CAN_BTR_SILM))/*!< Loopback combined with silent mode */
331+
#defineCAN_MODE_SILENT_LOOPBACK ((uint32_t)(CAN_BTR_LBKM | CAN_BTR_SILM))/*!< Loopback combined with
332+
silent mode */
329333
/**
330334
* @}
331335
*/
@@ -640,7 +644,8 @@ void HAL_CAN_MspDeInit(CAN_HandleTypeDef *hcan);
640644

641645
#ifUSE_HAL_CAN_REGISTER_CALLBACKS==1
642646
/* Callbacks Register/UnRegister functions ***********************************/
643-
HAL_StatusTypeDefHAL_CAN_RegisterCallback(CAN_HandleTypeDef*hcan,HAL_CAN_CallbackIDTypeDefCallbackID,void (*pCallback)(CAN_HandleTypeDef*_hcan));
647+
HAL_StatusTypeDefHAL_CAN_RegisterCallback(CAN_HandleTypeDef*hcan,HAL_CAN_CallbackIDTypeDefCallbackID,
648+
void (*pCallback)(CAN_HandleTypeDef*_hcan));
644649
HAL_StatusTypeDefHAL_CAN_UnRegisterCallback(CAN_HandleTypeDef*hcan,HAL_CAN_CallbackIDTypeDefCallbackID);
645650

646651
#endif/* (USE_HAL_CAN_REGISTER_CALLBACKS) */
@@ -654,7 +659,7 @@ HAL_StatusTypeDef HAL_CAN_UnRegisterCallback(CAN_HandleTypeDef *hcan, HAL_CAN_Ca
654659
*/
655660

656661
/* Configuration functions ****************************************************/
657-
HAL_StatusTypeDefHAL_CAN_ConfigFilter(CAN_HandleTypeDef*hcan,CAN_FilterTypeDef*sFilterConfig);
662+
HAL_StatusTypeDefHAL_CAN_ConfigFilter(CAN_HandleTypeDef*hcan,constCAN_FilterTypeDef*sFilterConfig);
658663

659664
/**
660665
* @}
@@ -670,14 +675,16 @@ HAL_StatusTypeDef HAL_CAN_Start(CAN_HandleTypeDef *hcan);
670675
HAL_StatusTypeDefHAL_CAN_Stop(CAN_HandleTypeDef*hcan);
671676
HAL_StatusTypeDefHAL_CAN_RequestSleep(CAN_HandleTypeDef*hcan);
672677
HAL_StatusTypeDefHAL_CAN_WakeUp(CAN_HandleTypeDef*hcan);
673-
uint32_tHAL_CAN_IsSleepActive(CAN_HandleTypeDef*hcan);
674-
HAL_StatusTypeDefHAL_CAN_AddTxMessage(CAN_HandleTypeDef*hcan,CAN_TxHeaderTypeDef*pHeader,uint8_taData[],uint32_t*pTxMailbox);
678+
uint32_tHAL_CAN_IsSleepActive(constCAN_HandleTypeDef*hcan);
679+
HAL_StatusTypeDefHAL_CAN_AddTxMessage(CAN_HandleTypeDef*hcan,constCAN_TxHeaderTypeDef*pHeader,
680+
constuint8_taData[],uint32_t*pTxMailbox);
675681
HAL_StatusTypeDefHAL_CAN_AbortTxRequest(CAN_HandleTypeDef*hcan,uint32_tTxMailboxes);
676-
uint32_tHAL_CAN_GetTxMailboxesFreeLevel(CAN_HandleTypeDef*hcan);
677-
uint32_tHAL_CAN_IsTxMessagePending(CAN_HandleTypeDef*hcan,uint32_tTxMailboxes);
678-
uint32_tHAL_CAN_GetTxTimestamp(CAN_HandleTypeDef*hcan,uint32_tTxMailbox);
679-
HAL_StatusTypeDefHAL_CAN_GetRxMessage(CAN_HandleTypeDef*hcan,uint32_tRxFifo,CAN_RxHeaderTypeDef*pHeader,uint8_taData[]);
680-
uint32_tHAL_CAN_GetRxFifoFillLevel(CAN_HandleTypeDef*hcan,uint32_tRxFifo);
682+
uint32_tHAL_CAN_GetTxMailboxesFreeLevel(constCAN_HandleTypeDef*hcan);
683+
uint32_tHAL_CAN_IsTxMessagePending(constCAN_HandleTypeDef*hcan,uint32_tTxMailboxes);
684+
uint32_tHAL_CAN_GetTxTimestamp(constCAN_HandleTypeDef*hcan,uint32_tTxMailbox);
685+
HAL_StatusTypeDefHAL_CAN_GetRxMessage(CAN_HandleTypeDef*hcan,uint32_tRxFifo,
686+
CAN_RxHeaderTypeDef*pHeader,uint8_taData[]);
687+
uint32_tHAL_CAN_GetRxFifoFillLevel(constCAN_HandleTypeDef*hcan,uint32_tRxFifo);
681688

682689
/**
683690
* @}
@@ -725,8 +732,8 @@ void HAL_CAN_ErrorCallback(CAN_HandleTypeDef *hcan);
725732
* @{
726733
*/
727734
/* Peripheral State and Error functions ***************************************/
728-
HAL_CAN_StateTypeDefHAL_CAN_GetState(CAN_HandleTypeDef*hcan);
729-
uint32_tHAL_CAN_GetError(CAN_HandleTypeDef*hcan);
735+
HAL_CAN_StateTypeDefHAL_CAN_GetState(constCAN_HandleTypeDef*hcan);
736+
uint32_tHAL_CAN_GetError(constCAN_HandleTypeDef*hcan);
730737
HAL_StatusTypeDefHAL_CAN_ResetError(CAN_HandleTypeDef*hcan);
731738

732739
/**
@@ -801,7 +808,8 @@ HAL_StatusTypeDef HAL_CAN_ResetError(CAN_HandleTypeDef *hcan);
801808
#defineIS_CAN_TX_MAILBOX(TRANSMITMAILBOX) (((TRANSMITMAILBOX) == CAN_TX_MAILBOX0 ) || \
802809
((TRANSMITMAILBOX) == CAN_TX_MAILBOX1 ) || \
803810
((TRANSMITMAILBOX) == CAN_TX_MAILBOX2 ))
804-
#defineIS_CAN_TX_MAILBOX_LIST(TRANSMITMAILBOX) ((TRANSMITMAILBOX) <= (CAN_TX_MAILBOX0 | CAN_TX_MAILBOX1 | CAN_TX_MAILBOX2))
811+
#defineIS_CAN_TX_MAILBOX_LIST(TRANSMITMAILBOX) ((TRANSMITMAILBOX) <= (CAN_TX_MAILBOX0 | CAN_TX_MAILBOX1 | \
812+
CAN_TX_MAILBOX2))
805813
#defineIS_CAN_STDID(STDID) ((STDID) <= 0x7FFU)
806814
#defineIS_CAN_EXTID(EXTID) ((EXTID) <= 0x1FFFFFFFU)
807815
#defineIS_CAN_DLC(DLC) ((DLC) <= 8U)
@@ -837,6 +845,3 @@ HAL_StatusTypeDef HAL_CAN_ResetError(CAN_HandleTypeDef *hcan);
837845
#endif
838846

839847
#endif/* STM32F0xx_HAL_CAN_H */
840-
841-
842-
/************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp