DIY Logging Volt/Ampmeter
|
This section propose definition to remap the alternate function to some other port/pins. More...
Macros | |
#define | __HAL_AFIO_REMAP_SPI1_ENABLE() AFIO_REMAP_ENABLE(AFIO_MAPR_SPI1_REMAP) |
Enable the remapping of SPI1 alternate function NSS, SCK, MISO and MOSI. More... | |
#define | __HAL_AFIO_REMAP_SPI1_DISABLE() AFIO_REMAP_DISABLE(AFIO_MAPR_SPI1_REMAP) |
Disable the remapping of SPI1 alternate function NSS, SCK, MISO and MOSI. More... | |
#define | __HAL_AFIO_REMAP_I2C1_ENABLE() AFIO_REMAP_ENABLE(AFIO_MAPR_I2C1_REMAP) |
Enable the remapping of I2C1 alternate function SCL and SDA. More... | |
#define | __HAL_AFIO_REMAP_I2C1_DISABLE() AFIO_REMAP_DISABLE(AFIO_MAPR_I2C1_REMAP) |
Disable the remapping of I2C1 alternate function SCL and SDA. More... | |
#define | __HAL_AFIO_REMAP_USART1_ENABLE() AFIO_REMAP_ENABLE(AFIO_MAPR_USART1_REMAP) |
Enable the remapping of USART1 alternate function TX and RX. More... | |
#define | __HAL_AFIO_REMAP_USART1_DISABLE() AFIO_REMAP_DISABLE(AFIO_MAPR_USART1_REMAP) |
Disable the remapping of USART1 alternate function TX and RX. More... | |
#define | __HAL_AFIO_REMAP_USART2_ENABLE() AFIO_REMAP_ENABLE(AFIO_MAPR_USART2_REMAP) |
Enable the remapping of USART2 alternate function CTS, RTS, CK, TX and RX. More... | |
#define | __HAL_AFIO_REMAP_USART2_DISABLE() AFIO_REMAP_DISABLE(AFIO_MAPR_USART2_REMAP) |
Disable the remapping of USART2 alternate function CTS, RTS, CK, TX and RX. More... | |
#define | __HAL_AFIO_REMAP_USART3_ENABLE() AFIO_REMAP_PARTIAL(AFIO_MAPR_USART3_REMAP_FULLREMAP, AFIO_MAPR_USART3_REMAP_FULLREMAP) |
Enable the remapping of USART3 alternate function CTS, RTS, CK, TX and RX. More... | |
#define | __HAL_AFIO_REMAP_USART3_PARTIAL() AFIO_REMAP_PARTIAL(AFIO_MAPR_USART3_REMAP_PARTIALREMAP, AFIO_MAPR_USART3_REMAP_FULLREMAP) |
Enable the remapping of USART3 alternate function CTS, RTS, CK, TX and RX. More... | |
#define | __HAL_AFIO_REMAP_USART3_DISABLE() AFIO_REMAP_PARTIAL(AFIO_MAPR_USART3_REMAP_NOREMAP, AFIO_MAPR_USART3_REMAP_FULLREMAP) |
Disable the remapping of USART3 alternate function CTS, RTS, CK, TX and RX. More... | |
#define | __HAL_AFIO_REMAP_TIM1_ENABLE() AFIO_REMAP_PARTIAL(AFIO_MAPR_TIM1_REMAP_FULLREMAP, AFIO_MAPR_TIM1_REMAP_FULLREMAP) |
Enable the remapping of TIM1 alternate function channels 1 to 4, 1N to 3N, external trigger (ETR) and Break input (BKIN) More... | |
#define | __HAL_AFIO_REMAP_TIM1_PARTIAL() AFIO_REMAP_PARTIAL(AFIO_MAPR_TIM1_REMAP_PARTIALREMAP, AFIO_MAPR_TIM1_REMAP_FULLREMAP) |
Enable the remapping of TIM1 alternate function channels 1 to 4, 1N to 3N, external trigger (ETR) and Break input (BKIN) More... | |
#define | __HAL_AFIO_REMAP_TIM1_DISABLE() AFIO_REMAP_PARTIAL(AFIO_MAPR_TIM1_REMAP_NOREMAP, AFIO_MAPR_TIM1_REMAP_FULLREMAP) |
Disable the remapping of TIM1 alternate function channels 1 to 4, 1N to 3N, external trigger (ETR) and Break input (BKIN) More... | |
#define | __HAL_AFIO_REMAP_TIM2_ENABLE() AFIO_REMAP_PARTIAL(AFIO_MAPR_TIM2_REMAP_FULLREMAP, AFIO_MAPR_TIM2_REMAP_FULLREMAP) |
Enable the remapping of TIM2 alternate function channels 1 to 4 and external trigger (ETR) More... | |
#define | __HAL_AFIO_REMAP_TIM2_PARTIAL_2() AFIO_REMAP_PARTIAL(AFIO_MAPR_TIM2_REMAP_PARTIALREMAP2, AFIO_MAPR_TIM2_REMAP_FULLREMAP) |
Enable the remapping of TIM2 alternate function channels 1 to 4 and external trigger (ETR) More... | |
#define | __HAL_AFIO_REMAP_TIM2_PARTIAL_1() AFIO_REMAP_PARTIAL(AFIO_MAPR_TIM2_REMAP_PARTIALREMAP1, AFIO_MAPR_TIM2_REMAP_FULLREMAP) |
Enable the remapping of TIM2 alternate function channels 1 to 4 and external trigger (ETR) More... | |
#define | __HAL_AFIO_REMAP_TIM2_DISABLE() AFIO_REMAP_PARTIAL(AFIO_MAPR_TIM2_REMAP_NOREMAP, AFIO_MAPR_TIM2_REMAP_FULLREMAP) |
Disable the remapping of TIM2 alternate function channels 1 to 4 and external trigger (ETR) More... | |
#define | __HAL_AFIO_REMAP_TIM3_ENABLE() AFIO_REMAP_PARTIAL(AFIO_MAPR_TIM3_REMAP_FULLREMAP, AFIO_MAPR_TIM3_REMAP_FULLREMAP) |
Enable the remapping of TIM3 alternate function channels 1 to 4. More... | |
#define | __HAL_AFIO_REMAP_TIM3_PARTIAL() AFIO_REMAP_PARTIAL(AFIO_MAPR_TIM3_REMAP_PARTIALREMAP, AFIO_MAPR_TIM3_REMAP_FULLREMAP) |
Enable the remapping of TIM3 alternate function channels 1 to 4. More... | |
#define | __HAL_AFIO_REMAP_TIM3_DISABLE() AFIO_REMAP_PARTIAL(AFIO_MAPR_TIM3_REMAP_NOREMAP, AFIO_MAPR_TIM3_REMAP_FULLREMAP) |
Disable the remapping of TIM3 alternate function channels 1 to 4. More... | |
#define | __HAL_AFIO_REMAP_TIM4_ENABLE() AFIO_REMAP_ENABLE(AFIO_MAPR_TIM4_REMAP) |
Enable the remapping of TIM4 alternate function channels 1 to 4. More... | |
#define | __HAL_AFIO_REMAP_TIM4_DISABLE() AFIO_REMAP_DISABLE(AFIO_MAPR_TIM4_REMAP) |
Disable the remapping of TIM4 alternate function channels 1 to 4. More... | |
#define | __HAL_AFIO_REMAP_PD01_ENABLE() AFIO_REMAP_ENABLE(AFIO_MAPR_PD01_REMAP) |
Enable the remapping of PD0 and PD1. When the HSE oscillator is not used (application running on internal 8 MHz RC) PD0 and PD1 can be mapped on OSC_IN and OSC_OUT. This is available only on 36, 48 and 64 pins packages (PD0 and PD1 are available on 100-pin and 144-pin packages, no need for remapping). More... | |
#define | __HAL_AFIO_REMAP_PD01_DISABLE() AFIO_REMAP_DISABLE(AFIO_MAPR_PD01_REMAP) |
Disable the remapping of PD0 and PD1. When the HSE oscillator is not used (application running on internal 8 MHz RC) PD0 and PD1 can be mapped on OSC_IN and OSC_OUT. This is available only on 36, 48 and 64 pins packages (PD0 and PD1 are available on 100-pin and 144-pin packages, no need for remapping). More... | |
#define | __HAL_AFIO_REMAP_ADC1_ETRGINJ_ENABLE() AFIO_REMAP_ENABLE(AFIO_MAPR_ADC1_ETRGINJ_REMAP) |
Enable the remapping of ADC1_ETRGINJ (ADC 1 External trigger injected conversion). More... | |
#define | __HAL_AFIO_REMAP_ADC1_ETRGINJ_DISABLE() AFIO_REMAP_DISABLE(AFIO_MAPR_ADC1_ETRGINJ_REMAP) |
Disable the remapping of ADC1_ETRGINJ (ADC 1 External trigger injected conversion). More... | |
#define | __HAL_AFIO_REMAP_ADC1_ETRGREG_ENABLE() AFIO_REMAP_ENABLE(AFIO_MAPR_ADC1_ETRGREG_REMAP) |
Enable the remapping of ADC1_ETRGREG (ADC 1 External trigger regular conversion). More... | |
#define | __HAL_AFIO_REMAP_ADC1_ETRGREG_DISABLE() AFIO_REMAP_DISABLE(AFIO_MAPR_ADC1_ETRGREG_REMAP) |
Disable the remapping of ADC1_ETRGREG (ADC 1 External trigger regular conversion). More... | |
#define | __HAL_AFIO_REMAP_SWJ_ENABLE() AFIO_DBGAFR_CONFIG(AFIO_MAPR_SWJ_CFG_RESET) |
Enable the Serial wire JTAG configuration. More... | |
#define | __HAL_AFIO_REMAP_SWJ_NONJTRST() AFIO_DBGAFR_CONFIG(AFIO_MAPR_SWJ_CFG_NOJNTRST) |
Enable the Serial wire JTAG configuration. More... | |
#define | __HAL_AFIO_REMAP_SWJ_NOJTAG() AFIO_DBGAFR_CONFIG(AFIO_MAPR_SWJ_CFG_JTAGDISABLE) |
Enable the Serial wire JTAG configuration. More... | |
#define | __HAL_AFIO_REMAP_SWJ_DISABLE() AFIO_DBGAFR_CONFIG(AFIO_MAPR_SWJ_CFG_DISABLE) |
Disable the Serial wire JTAG configuration. More... | |
This section propose definition to remap the alternate function to some other port/pins.
#define __HAL_AFIO_REMAP_ADC1_ETRGINJ_DISABLE | ( | ) | AFIO_REMAP_DISABLE(AFIO_MAPR_ADC1_ETRGINJ_REMAP) |
Disable the remapping of ADC1_ETRGINJ (ADC 1 External trigger injected conversion).
None |
Definition at line 415 of file stm32f1xx_hal_gpio_ex.h.
#define __HAL_AFIO_REMAP_ADC1_ETRGINJ_ENABLE | ( | ) | AFIO_REMAP_ENABLE(AFIO_MAPR_ADC1_ETRGINJ_REMAP) |
Enable the remapping of ADC1_ETRGINJ (ADC 1 External trigger injected conversion).
None |
Definition at line 408 of file stm32f1xx_hal_gpio_ex.h.
#define __HAL_AFIO_REMAP_ADC1_ETRGREG_DISABLE | ( | ) | AFIO_REMAP_DISABLE(AFIO_MAPR_ADC1_ETRGREG_REMAP) |
Disable the remapping of ADC1_ETRGREG (ADC 1 External trigger regular conversion).
None |
Definition at line 429 of file stm32f1xx_hal_gpio_ex.h.
#define __HAL_AFIO_REMAP_ADC1_ETRGREG_ENABLE | ( | ) | AFIO_REMAP_ENABLE(AFIO_MAPR_ADC1_ETRGREG_REMAP) |
Enable the remapping of ADC1_ETRGREG (ADC 1 External trigger regular conversion).
None |
Definition at line 422 of file stm32f1xx_hal_gpio_ex.h.
#define __HAL_AFIO_REMAP_I2C1_DISABLE | ( | ) | AFIO_REMAP_DISABLE(AFIO_MAPR_I2C1_REMAP) |
Disable the remapping of I2C1 alternate function SCL and SDA.
None |
Definition at line 145 of file stm32f1xx_hal_gpio_ex.h.
#define __HAL_AFIO_REMAP_I2C1_ENABLE | ( | ) | AFIO_REMAP_ENABLE(AFIO_MAPR_I2C1_REMAP) |
Enable the remapping of I2C1 alternate function SCL and SDA.
None |
Definition at line 138 of file stm32f1xx_hal_gpio_ex.h.
#define __HAL_AFIO_REMAP_PD01_DISABLE | ( | ) | AFIO_REMAP_DISABLE(AFIO_MAPR_PD01_REMAP) |
Disable the remapping of PD0 and PD1. When the HSE oscillator is not used (application running on internal 8 MHz RC) PD0 and PD1 can be mapped on OSC_IN and OSC_OUT. This is available only on 36, 48 and 64 pins packages (PD0 and PD1 are available on 100-pin and 144-pin packages, no need for remapping).
None |
Definition at line 328 of file stm32f1xx_hal_gpio_ex.h.
#define __HAL_AFIO_REMAP_PD01_ENABLE | ( | ) | AFIO_REMAP_ENABLE(AFIO_MAPR_PD01_REMAP) |
Enable the remapping of PD0 and PD1. When the HSE oscillator is not used (application running on internal 8 MHz RC) PD0 and PD1 can be mapped on OSC_IN and OSC_OUT. This is available only on 36, 48 and 64 pins packages (PD0 and PD1 are available on 100-pin and 144-pin packages, no need for remapping).
None |
Definition at line 318 of file stm32f1xx_hal_gpio_ex.h.
#define __HAL_AFIO_REMAP_SPI1_DISABLE | ( | ) | AFIO_REMAP_DISABLE(AFIO_MAPR_SPI1_REMAP) |
Disable the remapping of SPI1 alternate function NSS, SCK, MISO and MOSI.
None |
Definition at line 131 of file stm32f1xx_hal_gpio_ex.h.
#define __HAL_AFIO_REMAP_SPI1_ENABLE | ( | ) | AFIO_REMAP_ENABLE(AFIO_MAPR_SPI1_REMAP) |
Enable the remapping of SPI1 alternate function NSS, SCK, MISO and MOSI.
None |
Definition at line 124 of file stm32f1xx_hal_gpio_ex.h.
#define __HAL_AFIO_REMAP_SWJ_DISABLE | ( | ) | AFIO_DBGAFR_CONFIG(AFIO_MAPR_SWJ_CFG_DISABLE) |
Disable the Serial wire JTAG configuration.
None |
Definition at line 492 of file stm32f1xx_hal_gpio_ex.h.
#define __HAL_AFIO_REMAP_SWJ_ENABLE | ( | ) | AFIO_DBGAFR_CONFIG(AFIO_MAPR_SWJ_CFG_RESET) |
Enable the Serial wire JTAG configuration.
None |
Definition at line 470 of file stm32f1xx_hal_gpio_ex.h.
#define __HAL_AFIO_REMAP_SWJ_NOJTAG | ( | ) | AFIO_DBGAFR_CONFIG(AFIO_MAPR_SWJ_CFG_JTAGDISABLE) |
Enable the Serial wire JTAG configuration.
None |
Definition at line 485 of file stm32f1xx_hal_gpio_ex.h.
#define __HAL_AFIO_REMAP_SWJ_NONJTRST | ( | ) | AFIO_DBGAFR_CONFIG(AFIO_MAPR_SWJ_CFG_NOJNTRST) |
Enable the Serial wire JTAG configuration.
None |
Definition at line 477 of file stm32f1xx_hal_gpio_ex.h.
#define __HAL_AFIO_REMAP_TIM1_DISABLE | ( | ) | AFIO_REMAP_PARTIAL(AFIO_MAPR_TIM1_REMAP_NOREMAP, AFIO_MAPR_TIM1_REMAP_FULLREMAP) |
Disable the remapping of TIM1 alternate function channels 1 to 4, 1N to 3N, external trigger (ETR) and Break input (BKIN)
None |
Definition at line 215 of file stm32f1xx_hal_gpio_ex.h.
#define __HAL_AFIO_REMAP_TIM1_ENABLE | ( | ) | AFIO_REMAP_PARTIAL(AFIO_MAPR_TIM1_REMAP_FULLREMAP, AFIO_MAPR_TIM1_REMAP_FULLREMAP) |
Enable the remapping of TIM1 alternate function channels 1 to 4, 1N to 3N, external trigger (ETR) and Break input (BKIN)
None |
Definition at line 201 of file stm32f1xx_hal_gpio_ex.h.
#define __HAL_AFIO_REMAP_TIM1_PARTIAL | ( | ) | AFIO_REMAP_PARTIAL(AFIO_MAPR_TIM1_REMAP_PARTIALREMAP, AFIO_MAPR_TIM1_REMAP_FULLREMAP) |
Enable the remapping of TIM1 alternate function channels 1 to 4, 1N to 3N, external trigger (ETR) and Break input (BKIN)
None |
Definition at line 208 of file stm32f1xx_hal_gpio_ex.h.
#define __HAL_AFIO_REMAP_TIM2_DISABLE | ( | ) | AFIO_REMAP_PARTIAL(AFIO_MAPR_TIM2_REMAP_NOREMAP, AFIO_MAPR_TIM2_REMAP_FULLREMAP) |
Disable the remapping of TIM2 alternate function channels 1 to 4 and external trigger (ETR)
None |
Definition at line 243 of file stm32f1xx_hal_gpio_ex.h.
#define __HAL_AFIO_REMAP_TIM2_ENABLE | ( | ) | AFIO_REMAP_PARTIAL(AFIO_MAPR_TIM2_REMAP_FULLREMAP, AFIO_MAPR_TIM2_REMAP_FULLREMAP) |
Enable the remapping of TIM2 alternate function channels 1 to 4 and external trigger (ETR)
None |
Definition at line 222 of file stm32f1xx_hal_gpio_ex.h.
#define __HAL_AFIO_REMAP_TIM2_PARTIAL_1 | ( | ) | AFIO_REMAP_PARTIAL(AFIO_MAPR_TIM2_REMAP_PARTIALREMAP1, AFIO_MAPR_TIM2_REMAP_FULLREMAP) |
Enable the remapping of TIM2 alternate function channels 1 to 4 and external trigger (ETR)
None |
Definition at line 236 of file stm32f1xx_hal_gpio_ex.h.
#define __HAL_AFIO_REMAP_TIM2_PARTIAL_2 | ( | ) | AFIO_REMAP_PARTIAL(AFIO_MAPR_TIM2_REMAP_PARTIALREMAP2, AFIO_MAPR_TIM2_REMAP_FULLREMAP) |
Enable the remapping of TIM2 alternate function channels 1 to 4 and external trigger (ETR)
None |
Definition at line 229 of file stm32f1xx_hal_gpio_ex.h.
#define __HAL_AFIO_REMAP_TIM3_DISABLE | ( | ) | AFIO_REMAP_PARTIAL(AFIO_MAPR_TIM3_REMAP_NOREMAP, AFIO_MAPR_TIM3_REMAP_FULLREMAP) |
Disable the remapping of TIM3 alternate function channels 1 to 4.
None |
Definition at line 267 of file stm32f1xx_hal_gpio_ex.h.
#define __HAL_AFIO_REMAP_TIM3_ENABLE | ( | ) | AFIO_REMAP_PARTIAL(AFIO_MAPR_TIM3_REMAP_FULLREMAP, AFIO_MAPR_TIM3_REMAP_FULLREMAP) |
Enable the remapping of TIM3 alternate function channels 1 to 4.
None |
Definition at line 251 of file stm32f1xx_hal_gpio_ex.h.
#define __HAL_AFIO_REMAP_TIM3_PARTIAL | ( | ) | AFIO_REMAP_PARTIAL(AFIO_MAPR_TIM3_REMAP_PARTIALREMAP, AFIO_MAPR_TIM3_REMAP_FULLREMAP) |
Enable the remapping of TIM3 alternate function channels 1 to 4.
None |
Definition at line 259 of file stm32f1xx_hal_gpio_ex.h.
#define __HAL_AFIO_REMAP_TIM4_DISABLE | ( | ) | AFIO_REMAP_DISABLE(AFIO_MAPR_TIM4_REMAP) |
Disable the remapping of TIM4 alternate function channels 1 to 4.
None |
Definition at line 283 of file stm32f1xx_hal_gpio_ex.h.
#define __HAL_AFIO_REMAP_TIM4_ENABLE | ( | ) | AFIO_REMAP_ENABLE(AFIO_MAPR_TIM4_REMAP) |
Enable the remapping of TIM4 alternate function channels 1 to 4.
None |
Definition at line 275 of file stm32f1xx_hal_gpio_ex.h.
#define __HAL_AFIO_REMAP_USART1_DISABLE | ( | ) | AFIO_REMAP_DISABLE(AFIO_MAPR_USART1_REMAP) |
Disable the remapping of USART1 alternate function TX and RX.
None |
Definition at line 159 of file stm32f1xx_hal_gpio_ex.h.
#define __HAL_AFIO_REMAP_USART1_ENABLE | ( | ) | AFIO_REMAP_ENABLE(AFIO_MAPR_USART1_REMAP) |
Enable the remapping of USART1 alternate function TX and RX.
None |
Definition at line 152 of file stm32f1xx_hal_gpio_ex.h.
#define __HAL_AFIO_REMAP_USART2_DISABLE | ( | ) | AFIO_REMAP_DISABLE(AFIO_MAPR_USART2_REMAP) |
Disable the remapping of USART2 alternate function CTS, RTS, CK, TX and RX.
None |
Definition at line 173 of file stm32f1xx_hal_gpio_ex.h.
#define __HAL_AFIO_REMAP_USART2_ENABLE | ( | ) | AFIO_REMAP_ENABLE(AFIO_MAPR_USART2_REMAP) |
Enable the remapping of USART2 alternate function CTS, RTS, CK, TX and RX.
None |
Definition at line 166 of file stm32f1xx_hal_gpio_ex.h.
#define __HAL_AFIO_REMAP_USART3_DISABLE | ( | ) | AFIO_REMAP_PARTIAL(AFIO_MAPR_USART3_REMAP_NOREMAP, AFIO_MAPR_USART3_REMAP_FULLREMAP) |
Disable the remapping of USART3 alternate function CTS, RTS, CK, TX and RX.
None |
Definition at line 194 of file stm32f1xx_hal_gpio_ex.h.
#define __HAL_AFIO_REMAP_USART3_ENABLE | ( | ) | AFIO_REMAP_PARTIAL(AFIO_MAPR_USART3_REMAP_FULLREMAP, AFIO_MAPR_USART3_REMAP_FULLREMAP) |
Enable the remapping of USART3 alternate function CTS, RTS, CK, TX and RX.
None |
Definition at line 180 of file stm32f1xx_hal_gpio_ex.h.
#define __HAL_AFIO_REMAP_USART3_PARTIAL | ( | ) | AFIO_REMAP_PARTIAL(AFIO_MAPR_USART3_REMAP_PARTIALREMAP, AFIO_MAPR_USART3_REMAP_FULLREMAP) |
Enable the remapping of USART3 alternate function CTS, RTS, CK, TX and RX.
None |
Definition at line 187 of file stm32f1xx_hal_gpio_ex.h.