Skip to content

Commit 8c6ca12

Browse files
committed
system: L0: update STM32L0xx CMSIS Drivers to v1.9.2
Included in STM32CubeL0 FW v1.12.1 Signed-off-by: Frederic Pillon <frederic.pillon@st.com>
1 parent 4f19f7f commit 8c6ca12

24 files changed

+470
-126
lines changed

system/Drivers/CMSIS/Device/ST/STM32L0xx/Include/stm32l010x4.h

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -565,6 +565,15 @@ typedef struct
565565
/** @addtogroup Exported_constants
566566
* @{
567567
*/
568+
569+
/** @addtogroup Hardware_Constant_Definition
570+
* @{
571+
*/
572+
#define LSI_STARTUP_TIME 200U /*!< LSI Maximum startup time in us */
573+
574+
/**
575+
* @}
576+
*/
568577

569578
/** @addtogroup Peripheral_Registers_Bits_Definition
570579
* @{

system/Drivers/CMSIS/Device/ST/STM32L0xx/Include/stm32l010x6.h

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -571,6 +571,15 @@ typedef struct
571571
/** @addtogroup Exported_constants
572572
* @{
573573
*/
574+
575+
/** @addtogroup Hardware_Constant_Definition
576+
* @{
577+
*/
578+
#define LSI_STARTUP_TIME 200U /*!< LSI Maximum startup time in us */
579+
580+
/**
581+
* @}
582+
*/
574583

575584
/** @addtogroup Peripheral_Registers_Bits_Definition
576585
* @{

system/Drivers/CMSIS/Device/ST/STM32L0xx/Include/stm32l010x8.h

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -573,6 +573,15 @@ typedef struct
573573
/** @addtogroup Exported_constants
574574
* @{
575575
*/
576+
577+
/** @addtogroup Hardware_Constant_Definition
578+
* @{
579+
*/
580+
#define LSI_STARTUP_TIME 200U /*!< LSI Maximum startup time in us */
581+
582+
/**
583+
* @}
584+
*/
576585

577586
/** @addtogroup Peripheral_Registers_Bits_Definition
578587
* @{

system/Drivers/CMSIS/Device/ST/STM32L0xx/Include/stm32l010xb.h

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -578,6 +578,15 @@ typedef struct
578578
/** @addtogroup Exported_constants
579579
* @{
580580
*/
581+
582+
/** @addtogroup Hardware_Constant_Definition
583+
* @{
584+
*/
585+
#define LSI_STARTUP_TIME 200U /*!< LSI Maximum startup time in us */
586+
587+
/**
588+
* @}
589+
*/
581590

582591
/** @addtogroup Peripheral_Registers_Bits_Definition
583592
* @{

system/Drivers/CMSIS/Device/ST/STM32L0xx/Include/stm32l011xx.h

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -585,6 +585,15 @@ typedef struct
585585
/** @addtogroup Exported_constants
586586
* @{
587587
*/
588+
589+
/** @addtogroup Hardware_Constant_Definition
590+
* @{
591+
*/
592+
#define LSI_STARTUP_TIME 200U /*!< LSI Maximum startup time in us */
593+
594+
/**
595+
* @}
596+
*/
588597

589598
/** @addtogroup Peripheral_Registers_Bits_Definition
590599
* @{

system/Drivers/CMSIS/Device/ST/STM32L0xx/Include/stm32l021xx.h

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -606,6 +606,15 @@ typedef struct
606606
/** @addtogroup Exported_constants
607607
* @{
608608
*/
609+
610+
/** @addtogroup Hardware_Constant_Definition
611+
* @{
612+
*/
613+
#define LSI_STARTUP_TIME 200U /*!< LSI Maximum startup time in us */
614+
615+
/**
616+
* @}
617+
*/
609618

610619
/** @addtogroup Peripheral_Registers_Bits_Definition
611620
* @{

system/Drivers/CMSIS/Device/ST/STM32L0xx/Include/stm32l031xx.h

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -594,6 +594,15 @@ typedef struct
594594
/** @addtogroup Exported_constants
595595
* @{
596596
*/
597+
598+
/** @addtogroup Hardware_Constant_Definition
599+
* @{
600+
*/
601+
#define LSI_STARTUP_TIME 200U /*!< LSI Maximum startup time in us */
602+
603+
/**
604+
* @}
605+
*/
597606

598607
/** @addtogroup Peripheral_Registers_Bits_Definition
599608
* @{

system/Drivers/CMSIS/Device/ST/STM32L0xx/Include/stm32l041xx.h

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -615,6 +615,15 @@ typedef struct
615615
/** @addtogroup Exported_constants
616616
* @{
617617
*/
618+
619+
/** @addtogroup Hardware_Constant_Definition
620+
* @{
621+
*/
622+
#define LSI_STARTUP_TIME 200U /*!< LSI Maximum startup time in us */
623+
624+
/**
625+
* @}
626+
*/
618627

619628
/** @addtogroup Peripheral_Registers_Bits_Definition
620629
* @{

system/Drivers/CMSIS/Device/ST/STM32L0xx/Include/stm32l051xx.h

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -629,6 +629,15 @@ typedef struct
629629
/** @addtogroup Exported_constants
630630
* @{
631631
*/
632+
633+
/** @addtogroup Hardware_Constant_Definition
634+
* @{
635+
*/
636+
#define LSI_STARTUP_TIME 200U /*!< LSI Maximum startup time in us */
637+
638+
/**
639+
* @}
640+
*/
632641

633642
/** @addtogroup Peripheral_Registers_Bits_Definition
634643
* @{

system/Drivers/CMSIS/Device/ST/STM32L0xx/Include/stm32l052xx.h

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -738,6 +738,15 @@ typedef struct
738738
/** @addtogroup Exported_constants
739739
* @{
740740
*/
741+
742+
/** @addtogroup Hardware_Constant_Definition
743+
* @{
744+
*/
745+
#define LSI_STARTUP_TIME 200U /*!< LSI Maximum startup time in us */
746+
747+
/**
748+
* @}
749+
*/
741750

742751
/** @addtogroup Peripheral_Registers_Bits_Definition
743752
* @{

system/Drivers/CMSIS/Device/ST/STM32L0xx/Include/stm32l053xx.h

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -754,6 +754,15 @@ typedef struct
754754
/** @addtogroup Exported_constants
755755
* @{
756756
*/
757+
758+
/** @addtogroup Hardware_Constant_Definition
759+
* @{
760+
*/
761+
#define LSI_STARTUP_TIME 200U /*!< LSI Maximum startup time in us */
762+
763+
/**
764+
* @}
765+
*/
757766

758767
/** @addtogroup Peripheral_Registers_Bits_Definition
759768
* @{

system/Drivers/CMSIS/Device/ST/STM32L0xx/Include/stm32l062xx.h

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -759,6 +759,15 @@ typedef struct
759759
/** @addtogroup Exported_constants
760760
* @{
761761
*/
762+
763+
/** @addtogroup Hardware_Constant_Definition
764+
* @{
765+
*/
766+
#define LSI_STARTUP_TIME 200U /*!< LSI Maximum startup time in us */
767+
768+
/**
769+
* @}
770+
*/
762771

763772
/** @addtogroup Peripheral_Registers_Bits_Definition
764773
* @{

system/Drivers/CMSIS/Device/ST/STM32L0xx/Include/stm32l063xx.h

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -775,6 +775,15 @@ typedef struct
775775
/** @addtogroup Exported_constants
776776
* @{
777777
*/
778+
779+
/** @addtogroup Hardware_Constant_Definition
780+
* @{
781+
*/
782+
#define LSI_STARTUP_TIME 200U /*!< LSI Maximum startup time in us */
783+
784+
/**
785+
* @}
786+
*/
778787

779788
/** @addtogroup Peripheral_Registers_Bits_Definition
780789
* @{

system/Drivers/CMSIS/Device/ST/STM32L0xx/Include/stm32l071xx.h

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -651,6 +651,15 @@ typedef struct
651651
/** @addtogroup Exported_constants
652652
* @{
653653
*/
654+
655+
/** @addtogroup Hardware_Constant_Definition
656+
* @{
657+
*/
658+
#define LSI_STARTUP_TIME 200U /*!< LSI Maximum startup time in us */
659+
660+
/**
661+
* @}
662+
*/
654663

655664
/** @addtogroup Peripheral_Registers_Bits_Definition
656665
* @{

system/Drivers/CMSIS/Device/ST/STM32L0xx/Include/stm32l072xx.h

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -765,6 +765,15 @@ typedef struct
765765
/** @addtogroup Exported_constants
766766
* @{
767767
*/
768+
769+
/** @addtogroup Hardware_Constant_Definition
770+
* @{
771+
*/
772+
#define LSI_STARTUP_TIME 200U /*!< LSI Maximum startup time in us */
773+
774+
/**
775+
* @}
776+
*/
768777

769778
/** @addtogroup Peripheral_Registers_Bits_Definition
770779
* @{

system/Drivers/CMSIS/Device/ST/STM32L0xx/Include/stm32l073xx.h

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -781,6 +781,15 @@ typedef struct
781781
/** @addtogroup Exported_constants
782782
* @{
783783
*/
784+
785+
/** @addtogroup Hardware_Constant_Definition
786+
* @{
787+
*/
788+
#define LSI_STARTUP_TIME 200U /*!< LSI Maximum startup time in us */
789+
790+
/**
791+
* @}
792+
*/
784793

785794
/** @addtogroup Peripheral_Registers_Bits_Definition
786795
* @{

system/Drivers/CMSIS/Device/ST/STM32L0xx/Include/stm32l081xx.h

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -672,6 +672,15 @@ typedef struct
672672
/** @addtogroup Exported_constants
673673
* @{
674674
*/
675+
676+
/** @addtogroup Hardware_Constant_Definition
677+
* @{
678+
*/
679+
#define LSI_STARTUP_TIME 200U /*!< LSI Maximum startup time in us */
680+
681+
/**
682+
* @}
683+
*/
675684

676685
/** @addtogroup Peripheral_Registers_Bits_Definition
677686
* @{

system/Drivers/CMSIS/Device/ST/STM32L0xx/Include/stm32l082xx.h

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -786,6 +786,15 @@ typedef struct
786786
/** @addtogroup Exported_constants
787787
* @{
788788
*/
789+
790+
/** @addtogroup Hardware_Constant_Definition
791+
* @{
792+
*/
793+
#define LSI_STARTUP_TIME 200U /*!< LSI Maximum startup time in us */
794+
795+
/**
796+
* @}
797+
*/
789798

790799
/** @addtogroup Peripheral_Registers_Bits_Definition
791800
* @{

system/Drivers/CMSIS/Device/ST/STM32L0xx/Include/stm32l083xx.h

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -802,6 +802,15 @@ typedef struct
802802
/** @addtogroup Exported_constants
803803
* @{
804804
*/
805+
806+
/** @addtogroup Hardware_Constant_Definition
807+
* @{
808+
*/
809+
#define LSI_STARTUP_TIME 200U /*!< LSI Maximum startup time in us */
810+
811+
/**
812+
* @}
813+
*/
805814

806815
/** @addtogroup Peripheral_Registers_Bits_Definition
807816
* @{

system/Drivers/CMSIS/Device/ST/STM32L0xx/Include/stm32l0xx.h

Lines changed: 41 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@
104104
*/
105105
#define __STM32L0xx_CMSIS_VERSION_MAIN (0x01) /*!< [31:24] main version */
106106
#define __STM32L0xx_CMSIS_VERSION_SUB1 (0x09) /*!< [23:16] sub1 version */
107-
#define __STM32L0xx_CMSIS_VERSION_SUB2 (0x01) /*!< [15:8] sub2 version */
107+
#define __STM32L0xx_CMSIS_VERSION_SUB2 (0x02) /*!< [15:8] sub2 version */
108108
#define __STM32L0xx_CMSIS_VERSION_RC (0x00) /*!< [7:0] release candidate */
109109
#define __STM32L0xx_CMSIS_VERSION ((__STM32L0xx_CMSIS_VERSION_MAIN << 24)\
110110
|(__STM32L0xx_CMSIS_VERSION_SUB1 << 16)\
@@ -208,6 +208,46 @@ typedef enum
208208

209209
#define MODIFY_REG(REG, CLEARMASK, SETMASK) WRITE_REG((REG), (((READ_REG(REG)) & (~(CLEARMASK))) | (SETMASK)))
210210

211+
/* Use of interrupt control for register exclusive access */
212+
/* Atomic 32-bit register access macro to set one or several bits */
213+
#define ATOMIC_SET_BIT(REG, BIT) \
214+
do { \
215+
uint32_t primask; \
216+
primask = __get_PRIMASK(); \
217+
__set_PRIMASK(1); \
218+
SET_BIT((REG), (BIT)); \
219+
__set_PRIMASK(primask); \
220+
} while(0)
221+
222+
/* Atomic 32-bit register access macro to clear one or several bits */
223+
#define ATOMIC_CLEAR_BIT(REG, BIT) \
224+
do { \
225+
uint32_t primask; \
226+
primask = __get_PRIMASK(); \
227+
__set_PRIMASK(1); \
228+
CLEAR_BIT((REG), (BIT)); \
229+
__set_PRIMASK(primask); \
230+
} while(0)
231+
232+
/* Atomic 32-bit register access macro to clear and set one or several bits */
233+
#define ATOMIC_MODIFY_REG(REG, CLEARMSK, SETMASK) \
234+
do { \
235+
uint32_t primask; \
236+
primask = __get_PRIMASK(); \
237+
__set_PRIMASK(1); \
238+
MODIFY_REG((REG), (CLEARMSK), (SETMASK)); \
239+
__set_PRIMASK(primask); \
240+
} while(0)
241+
242+
/* Atomic 16-bit register access macro to set one or several bits */
243+
#define ATOMIC_SETH_BIT(REG, BIT) ATOMIC_SET_BIT(REG, BIT) \
244+
245+
/* Atomic 16-bit register access macro to clear one or several bits */
246+
#define ATOMIC_CLEARH_BIT(REG, BIT) ATOMIC_CLEAR_BIT(REG, BIT) \
247+
248+
/* Atomic 16-bit register access macro to clear and set one or several bits */
249+
#define ATOMIC_MODIFYH_REG(REG, CLEARMSK, SETMASK) ATOMIC_MODIFY_REG(REG, CLEARMSK, SETMASK) \
250+
211251
/**
212252
* @}
213253
*/

0 commit comments

Comments
 (0)