RTEMS 7.0-rc1
Loading...
Searching...
No Matches
Macros | Typedefs | Enumerations
stm32u5xx.h File Reference

CMSIS STM32U5xx Device Peripheral Access Layer Header File. More...

#include "stm32u5g9xx.h"

Go to the source code of this file.

Macros

#define STM32U5
 STM32 Family.
 
#define STM32U5G9xx
 
#define __STM32U5_CMSIS_VERSION_MAIN   (0x01)
 Comment the line below if you will not use the peripherals drivers. In this case, these drivers will not be included and the application code will be based on direct access to peripherals registers.
 
#define __STM32U5_CMSIS_VERSION_SUB1   (0x04)
 
#define __STM32U5_CMSIS_VERSION_SUB2   (0x00)
 
#define __STM32U5_CMSIS_VERSION_RC   (0x00)
 
#define __STM32U5_CMSIS_VERSION
 
#define IS_FUNCTIONAL_STATE(STATE)   (((STATE) == DISABLE) || ((STATE) == ENABLE))
 
#define SET_BIT(REG, BIT)   ((REG) |= (BIT))
 
#define CLEAR_BIT(REG, BIT)   ((REG) &= ~(BIT))
 
#define READ_BIT(REG, BIT)   ((REG) & (BIT))
 
#define CLEAR_REG(REG)   ((REG) = (0x0))
 
#define WRITE_REG(REG, VAL)   ((REG) = (VAL))
 
#define READ_REG(REG)   ((REG))
 
#define MODIFY_REG(REG, CLEARMASK, SETMASK)   WRITE_REG((REG), (((READ_REG(REG)) & (~(CLEARMASK))) | (SETMASK)))
 
#define ATOMIC_SET_BIT(REG, BIT)
 
#define ATOMIC_CLEAR_BIT(REG, BIT)
 
#define ATOMIC_MODIFY_REG(REG, CLEARMSK, SETMASK)
 
#define ATOMIC_SETH_BIT(REG, BIT)
 
#define ATOMIC_CLEARH_BIT(REG, BIT)
 
#define ATOMIC_MODIFYH_REG(REG, CLEARMSK, SETMASK)
 
#define POSITION_VAL(VAL)   (__CLZ(__RBIT(VAL)))
 

Typedefs

typedef enum FlagStatus ITStatus
 

Enumerations

enum  FlagStatus { RESET = 0 , SET = !RESET }
 
enum  FunctionalState { DISABLE = 0 , ENABLE = !DISABLE }
 
enum  ErrorStatus { SUCCESS = 0 , ERROR = !SUCCESS }
 

Detailed Description

CMSIS STM32U5xx Device Peripheral Access Layer Header File.

Author
MCD Application Team
     The file is the unique include file that the application programmer
     is using in the C source code, usually in main.c. This file contains:
      - Configuration section that allows to select:
         - The STM32U5xx device used in the target application
         - To use or not the peripheral's drivers in application code(i.e.
           code will be based on direct access to peripheral's registers
           rather than drivers API), this option is controlled by
           "#define USE_HAL_DRIVER"
Attention

Copyright (c) 2021 STMicroelectronics. All rights reserved.

This software is licensed under terms that can be found in the LICENSE file in the root directory of this software component. If no LICENSE file comes with this software, it is provided AS-IS.