STM8L15x Standard Peripherals Drivers: stm8l15x_syscfg.h File Reference

STM8L15x/16x Standard Peripherals Drivers

STM8L15x Standard Peripherals Drivers

stm8l15x_syscfg.h File Reference

This file contains all the functions prototypes for the SYSCFG firmware library. More...

#include "stm8l15x.h"

Go to the source code of this file.

Defines

#define IS_REMAP_DMACHANNEL(MAP)
 Macro used by the assert function in order to check the different values of the REMAP_DMAChannel_TypeDef enum.
#define IS_REMAP_PIN(PIN)
 Macro used by the assert function in order to check the different values of REMAP_Pin_TypeDef enum.
#define IS_RI_ANALOGSWITCH(RI_ANALOGSWITCH)
 Macro used by the assert function in order to check the different values of RI_AnalogSwitch_TypeDef enum.
#define IS_RI_INPUTCAPTURE(RI_IC)
 Macro used by the assert function in order to check the different values of RI_InputCaptureTypeDef enum.
#define IS_RI_INPUTCAPTUREROUTING(RI_IC_ROUTING)
 Macro used by the assert function in order to check the different values of RI_InputCaptureRoutingTypeDef enum.
#define IS_RI_IOSWITCH(RI_IOSWITCH)
 Macro used by the assert function in order to check the different values of RI_IOSwitch_TypeDef enum.
#define IS_RI_RESISTOR(RI_RESISTOR)
 Macro used by the assert function in order to check the different values of RI_ResistorTypeDef enum.

Enumerations

enum  REMAP_DMAChannel_TypeDef {
  REMAP_DMA1Channel_ADC1ToChannel0 = ((uint8_t)0x00), REMAP_DMA1Channel_ADC1ToChannel1 = ((uint8_t)0x01), REMAP_DMA1Channel_ADC1ToChannel2 = ((uint8_t)0x02), REMAP_DMA1Channel_ADC1ToChannel3 = ((uint8_t)0x03),
  REMAP_DMA1Channel_TIM4ToChannel0 = ((uint8_t)0xF0), REMAP_DMA1Channel_TIM4ToChannel1 = ((uint8_t)0xF4), REMAP_DMA1Channel_TIM4ToChannel2 = ((uint8_t)0xF8), REMAP_DMA1Channel_TIM4ToChannel3 = ((uint8_t)0xFC)
}
enum  REMAP_Pin_TypeDef {
  REMAP_Pin_USART1TxRxPortA = ((uint16_t)0x011C), REMAP_Pin_USART1TxRxPortC = ((uint16_t)0x012C), REMAP_Pin_USART1Clk = ((uint16_t)0x014B), REMAP_Pin_SPI1Full = ((uint16_t)0x0187),
  REMAP_Pin_ADC1ExtTRIG1 = ((uint16_t)0x0201), REMAP_Pin_TIM2TRIGPortA = ((uint16_t)0x0202), REMAP_Pin_TIM3TRIGPortA = ((uint16_t)0x0204), REMAP_Pin_TIM2TRIGLSE = ((uint16_t)0x0208),
  REMAP_Pin_TIM3TRIGLSE = ((uint16_t)0x0210), REMAP_Pin_SPI2Full = ((uint16_t)0x0220), REMAP_Pin_TIM3TRIGPortG = ((uint16_t)0x0240), REMAP_Pin_TIM23BKIN = ((uint16_t)0x0280),
  REMAP_Pin_SPI1PortF = ((uint16_t)0x0301), REMAP_Pin_USART3TxRxPortF = ((uint16_t)0x0302), REMAP_Pin_USART3Clk = ((uint16_t)0x0304), REMAP_Pin_TIM3Channel1 = ((uint16_t)0x0308),
  REMAP_Pin_TIM3Channel2 = ((uint16_t)0x0310), REMAP_Pin_CCO = ((uint16_t)0x0320), REMAP_Pin_TIM2Channel1 = ((uint16_t)0x0340), REMAP_Pin_TIM2Channel2 = ((uint16_t)0x0380)
}
 

Definition of the REMAP pins.

More...
enum  RI_AnalogSwitch_TypeDef {
  RI_AnalogSwitch_0 = ((uint8_t) 0x10), RI_AnalogSwitch_1 = ((uint8_t) 0x11), RI_AnalogSwitch_2 = ((uint8_t) 0x12), RI_AnalogSwitch_3 = ((uint8_t) 0x13),
  RI_AnalogSwitch_4 = ((uint8_t) 0x14), RI_AnalogSwitch_5 = ((uint8_t) 0x15), RI_AnalogSwitch_6 = ((uint8_t) 0x16), RI_AnalogSwitch_7 = ((uint8_t) 0x17),
  RI_AnalogSwitch_8 = ((uint8_t) 0x20), RI_AnalogSwitch_9 = ((uint8_t) 0x21), RI_AnalogSwitch_10 = ((uint8_t) 0x22), RI_AnalogSwitch_11 = ((uint8_t) 0x23),
  RI_AnalogSwitch_14 = ((uint8_t) 0x26)
}
 

Definition of the Analog Switch to be controlled.

More...
enum  RI_InputCapture_TypeDef { RI_InputCapture_IC2 = ((uint8_t) 0x02), RI_InputCapture_IC3 = ((uint8_t) 0x03) }
enum  RI_InputCaptureRouting_TypeDef {
  RI_InputCaptureRouting_0 = ((uint8_t) 0x00), RI_InputCaptureRouting_1 = ((uint8_t) 0x01), RI_InputCaptureRouting_2 = ((uint8_t) 0x02), RI_InputCaptureRouting_3 = ((uint8_t) 0x03),
  RI_InputCaptureRouting_4 = ((uint8_t) 0x04), RI_InputCaptureRouting_5 = ((uint8_t) 0x05), RI_InputCaptureRouting_6 = ((uint8_t) 0x06), RI_InputCaptureRouting_7 = ((uint8_t) 0x07),
  RI_InputCaptureRouting_8 = ((uint8_t) 0x08), RI_InputCaptureRouting_9 = ((uint8_t) 0x09), RI_InputCaptureRouting_10 = ((uint8_t) 0x0A), RI_InputCaptureRouting_11 = ((uint8_t) 0x0B),
  RI_InputCaptureRouting_12 = ((uint8_t) 0x0C), RI_InputCaptureRouting_13 = ((uint8_t) 0x0D), RI_InputCaptureRouting_14 = ((uint8_t) 0x0E), RI_InputCaptureRouting_15 = ((uint8_t) 0x0F),
  RI_InputCaptureRouting_16 = ((uint8_t) 0x10), RI_InputCaptureRouting_17 = ((uint8_t) 0x11), RI_InputCaptureRouting_18 = ((uint8_t) 0x12), RI_InputCaptureRouting_19 = ((uint8_t) 0x13),
  RI_InputCaptureRouting_20 = ((uint8_t) 0x14), RI_InputCaptureRouting_21 = ((uint8_t) 0x15), RI_InputCaptureRouting_22 = ((uint8_t) 0x16)
}
enum  RI_IOSwitch_TypeDef {
  RI_IOSwitch_1 = ((uint8_t) 0x10), RI_IOSwitch_2 = ((uint8_t) 0x20), RI_IOSwitch_3 = ((uint8_t) 0x30), RI_IOSwitch_4 = ((uint8_t) 0x11),
  RI_IOSwitch_5 = ((uint8_t) 0x21), RI_IOSwitch_6 = ((uint8_t) 0x31), RI_IOSwitch_7 = ((uint8_t) 0x12), RI_IOSwitch_8 = ((uint8_t) 0x22),
  RI_IOSwitch_9 = ((uint8_t) 0x32), RI_IOSwitch_10 = ((uint8_t) 0x13), RI_IOSwitch_11 = ((uint8_t) 0x23), RI_IOSwitch_12 = ((uint8_t) 0x33),
  RI_IOSwitch_13 = ((uint8_t) 0x14), RI_IOSwitch_14 = ((uint8_t) 0x24), RI_IOSwitch_15 = ((uint8_t) 0x34), RI_IOSwitch_16 = ((uint8_t) 0x15),
  RI_IOSwitch_17 = ((uint8_t) 0x25), RI_IOSwitch_18 = ((uint8_t) 0x35), RI_IOSwitch_19 = ((uint8_t) 0x16), RI_IOSwitch_20 = ((uint8_t) 0x26),
  RI_IOSwitch_21 = ((uint8_t) 0x36), RI_IOSwitch_22 = ((uint8_t) 0x17), RI_IOSwitch_23 = ((uint8_t) 0x27), RI_IOSwitch_24 = ((uint8_t) 0x37),
  RI_IOSwitch_26 = ((uint8_t) 0x41), RI_IOSwitch_27 = ((uint8_t) 0x46), RI_IOSwitch_28 = ((uint8_t) 0x47), RI_IOSwitch_29 = ((uint8_t) 0x40)
}
 

Definition of the I/O Switch to be controlled.

More...
enum  RI_Resistor_TypeDef { RI_Resistor_10KPU = ((uint8_t) 0x01), RI_Resistor_400KPU = ((uint8_t) 0x02), RI_Resistor_10KPD = ((uint8_t) 0x04), RI_Resistor_400KPD = ((uint8_t) 0x08) }
 

Definition of the pull-up and pull-down resistors for COMP1 and ADC.

More...

Functions

void SYSCFG_REMAPDeInit (void)
 Deinitializes the Remapping registers to their default reset values.
void SYSCFG_REMAPDMAChannelConfig (REMAP_DMAChannel_TypeDef REMAP_DMAChannel)
 Remaps the DMA Channel to the specific peripheral (ADC or TIM4)
void SYSCFG_REMAPPinConfig (REMAP_Pin_TypeDef REMAP_Pin, FunctionalState NewState)
 Changes the mapping of the specified pins.
void SYSCFG_RIAnalogSwitchConfig (RI_AnalogSwitch_TypeDef RI_AnalogSwitch, FunctionalState NewState)
 Enables or disables the Routing Interface Analog switch.
void SYSCFG_RIDeInit (void)
 Deinitializes the RI registers to their default reset values.
void SYSCFG_RIIOSwitchConfig (RI_IOSwitch_TypeDef RI_IOSwitch, FunctionalState NewState)
 Closes or Opens the routing interface Input Output switches.
void SYSCFG_RIResistorConfig (RI_Resistor_TypeDef RI_Resistor, FunctionalState NewState)
 Configures the Pull-up and Pull-down Resistors.
void SYSCFG_RITIMInputCaptureConfig (RI_InputCapture_TypeDef RI_InputCapture, RI_InputCaptureRouting_TypeDef RI_InputCaptureRouting)
 Configures the routing interface to select which Input Output pin to be routed to TIM1 Input Capture.

Detailed Description

This file contains all the functions prototypes for the SYSCFG firmware library.

Author:
MCD Application Team
Version:
V1.5.0
Date:
13-May-2011
Attention:

THE PRESENT FIRMWARE WHICH IS FOR GUIDANCE ONLY AIMS AT PROVIDING CUSTOMERS WITH CODING INFORMATION REGARDING THEIR PRODUCTS IN ORDER FOR THEM TO SAVE TIME. AS A RESULT, STMICROELECTRONICS SHALL NOT BE HELD LIABLE FOR ANY DIRECT, INDIRECT OR CONSEQUENTIAL DAMAGES WITH RESPECT TO ANY CLAIMS ARISING FROM THE CONTENT OF SUCH FIRMWARE AND/OR THE USE MADE BY CUSTOMERS OF THE CODING INFORMATION CONTAINED HEREIN IN CONNECTION WITH THEIR PRODUCTS.

© COPYRIGHT 2011 STMicroelectronics

Definition in file stm8l15x_syscfg.h.

STM8S Firmware Library: Overview

 

 

 

For complete documentation on STM8L15x 8-bit microcontrollers platform visit www.st.com