STM32 Blue Pill Drivers
Drivers that could be used to interface and interact with STM32F103C8T6 Microcontroller
|
GPIO Pins Constants. More...
Macros | |
#define | PIN_SHIFT_VALUE (4) |
Pin Shift Value. More... | |
#define | PIN_RESET_MASK_VALUE ((t_u32)0x0000000FU) |
Pin Reset Mask Value. More... | |
#define | PIN_RESET_CONFIGURATION_MASK_VALUE ((t_u32)0x0000000CU) |
Pin Reset Configuration Mask Value. More... | |
#define | PIN_RESET_ODR_MASK_VALUE ((t_u32)0x00000001U) |
Pin Reset ODR Mask Value. More... | |
#define | PIN_CONFIGURATION_BITS_SHIFT_VALUE (2) |
Pin Mode Bits Shift Value. More... | |
#define | PIN_RESET_SHIFT_VALUE (16) |
Pin Reset Shift Value. More... | |
#define | PIN_RESET_MASK(GPIO_PIN_SPAN) ~(PIN_RESET_MASK_VALUE << GPIO_PIN_SPAN) |
Pin Reset Mask. More... | |
#define | PIN_RESET_CONFIGURATIONS_MASK(GPIO_PIN_SPAN) ~(PIN_RESET_CONFIGURATION_MASK_VALUE << GPIO_PIN_SPAN) |
Pin Reset Configurations Mask. More... | |
#define | PIN_RESET_ODR_MASK(GPIO_PIN_SPAN) ~(PIN_RESET_ODR_MASK_VALUE << GPIO_PIN_SPAN) |
Pin Reset ODR Mask. More... | |
GPIO Pins Constants.
This module contains a set of constants used in configuring the GPIO pins in the configuration register (CRL or CRH)
#define PIN_SHIFT_VALUE (4) |
#include <MCAL/GPIO/GPIO_private.h>
Pin Shift Value.
This value is used to shift to the start of a specific pin in the configuration register (CRL or CRH)
#define PIN_RESET_MASK_VALUE ((t_u32)0x0000000FU) |
#include <MCAL/GPIO/GPIO_private.h>
Pin Reset Mask Value.
This value is used to reset the mode and configuration bits of a certain pin
#define PIN_RESET_CONFIGURATION_MASK_VALUE ((t_u32)0x0000000CU) |
#include <MCAL/GPIO/GPIO_private.h>
Pin Reset Configuration Mask Value.
This value is used to reset the configuration bits of a certain pin
#define PIN_RESET_ODR_MASK_VALUE ((t_u32)0x00000001U) |
#include <MCAL/GPIO/GPIO_private.h>
Pin Reset ODR Mask Value.
This value is used to reset the ODR bit of a certain pin (in the BSRR register)
#define PIN_CONFIGURATION_BITS_SHIFT_VALUE (2) |
#include <MCAL/GPIO/GPIO_private.h>
Pin Mode Bits Shift Value.
This value is used to shift to the configuration bits of a certain pin
#define PIN_RESET_SHIFT_VALUE (16) |
#include <MCAL/GPIO/GPIO_private.h>
Pin Reset Shift Value.
This value is used to shift to the start of the position of the first pin bit in the BSRR register
#define PIN_RESET_MASK | ( | GPIO_PIN_SPAN | ) | ~(PIN_RESET_MASK_VALUE << GPIO_PIN_SPAN) |
#include <MCAL/GPIO/GPIO_private.h>
Pin Reset Mask.
This mask is used to reset the mode and configuration bits of a certain pin
[in] | GPIO_PIN_SPAN | The span of the pin in the configuration register (CRL or CRH) |
#define PIN_RESET_CONFIGURATIONS_MASK | ( | GPIO_PIN_SPAN | ) | ~(PIN_RESET_CONFIGURATION_MASK_VALUE << GPIO_PIN_SPAN) |
#include <MCAL/GPIO/GPIO_private.h>
Pin Reset Configurations Mask.
This mask is used to reset the configuration bits of a certain pin
[in] | GPIO_PIN_SPAN | The span of the pin in the configuration register (CRL or CRH) |
#define PIN_RESET_ODR_MASK | ( | GPIO_PIN_SPAN | ) | ~(PIN_RESET_ODR_MASK_VALUE << GPIO_PIN_SPAN) |
#include <MCAL/GPIO/GPIO_private.h>
Pin Reset ODR Mask.
This mask is used to reset the ODR bit of a certain pin (in the BSRR register)
[in] | GPIO_PIN_SPAN | The span of the pin in the configuration register (CRL or CRH) |