cantata
|
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. More... | |
#define | __HAL_AFIO_REMAP_PD01_DISABLE() AFIO_REMAP_DISABLE(AFIO_MAPR_PD01_REMAP) |
Disable the remapping of PD0 and PD1. 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 |
#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 |
#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 |
#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 |
#define __HAL_AFIO_REMAP_I2C1_DISABLE | ( | ) | AFIO_REMAP_DISABLE(AFIO_MAPR_I2C1_REMAP) |
Disable the remapping of I2C1 alternate function SCL and SDA.
None |
#define __HAL_AFIO_REMAP_I2C1_ENABLE | ( | ) | AFIO_REMAP_ENABLE(AFIO_MAPR_I2C1_REMAP) |
Enable the remapping of I2C1 alternate function SCL and SDA.
None |
#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 |
#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 |
#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 |
#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 |
#define __HAL_AFIO_REMAP_SWJ_DISABLE | ( | ) | AFIO_DBGAFR_CONFIG(AFIO_MAPR_SWJ_CFG_DISABLE) |
Disable the Serial wire JTAG configuration.
None |
#define __HAL_AFIO_REMAP_SWJ_ENABLE | ( | ) | AFIO_DBGAFR_CONFIG(AFIO_MAPR_SWJ_CFG_RESET) |
Enable the Serial wire JTAG configuration.
None |
#define __HAL_AFIO_REMAP_SWJ_NOJTAG | ( | ) | AFIO_DBGAFR_CONFIG(AFIO_MAPR_SWJ_CFG_JTAGDISABLE) |
Enable the Serial wire JTAG configuration.
None |
#define __HAL_AFIO_REMAP_SWJ_NONJTRST | ( | ) | AFIO_DBGAFR_CONFIG(AFIO_MAPR_SWJ_CFG_NOJNTRST) |
Enable the Serial wire JTAG configuration.
None |
#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 |
#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 |
#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 |
#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 |
#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 |
#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 |
#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 |
#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 |
#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 |
#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 |
#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 |
#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 |
#define __HAL_AFIO_REMAP_USART1_DISABLE | ( | ) | AFIO_REMAP_DISABLE(AFIO_MAPR_USART1_REMAP) |
Disable the remapping of USART1 alternate function TX and RX.
None |
#define __HAL_AFIO_REMAP_USART1_ENABLE | ( | ) | AFIO_REMAP_ENABLE(AFIO_MAPR_USART1_REMAP) |
Enable the remapping of USART1 alternate function TX and RX.
None |
#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 |
#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 |
#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 |
#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 |
#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 |