STM8S/A Standard Peripherals Drivers
|
Define Documentation
#define __STM8S_STDPERIPH_VERSION |
( (__STM8S_STDPERIPH_VERSION_MAIN << 24)\ |(__STM8S_STDPERIPH_VERSION_SUB1 << 16)\ |(__STM8S_STDPERIPH_VERSION_SUB2 << 8)\ |(__STM8S_STDPERIPH_VERSION_RC))
#define __STM8S_STDPERIPH_VERSION_MAIN ((uint8_t)0x02) |
#define __STM8S_STDPERIPH_VERSION_RC ((uint8_t)0x00) |
#define __STM8S_STDPERIPH_VERSION_SUB1 ((uint8_t)0x03) |
#define __STM8S_STDPERIPH_VERSION_SUB2 ((uint8_t)0x00) |
#define BIT_MASK ((uint8_t)0x7F) |
Definition at line 35 of file stm8s_wwdg.c.
Referenced by WWDG_SetCounter().
#define CAN_ACKNOWLEDGE_TIMEOUT ((uint16_t)0xFFFF) |
Definition at line 39 of file stm8s_can.c.
Referenced by CAN_Init(), and CAN_OperatingModeRequest().
#define CAN_IDLIST_IDMASK_MASK ((uint8_t) 0x55) |
Definition at line 36 of file stm8s_can.c.
Referenced by CAN_FilterInit().
#define CAN_IDMASK_IDLIST_MASK ((uint8_t) 0xAA) |
Definition at line 37 of file stm8s_can.c.
Referenced by CAN_FilterInit().
#define CAN_MODE_MASK ((uint8_t) 0x03) |
Definition at line 38 of file stm8s_can.c.
Referenced by CAN_OperatingModeRequest().
#define FLASH_CLEAR_BYTE ((uint8_t)0x00) |
This driver provides functions to configure and program the Flash memory of all STM8S devices. It includes as well functions that can be either executed from RAM or not, and other functions that must be executed from RAM otherwise useless. The table below lists the functions that can be executed from RAM. +--------------------------------------------------------------------------------| | Functions prototypes | RAM execution | Comments | ---------------------------------------------------------------------------------| | | Mandatory in case of block | Can be executed | | FLASH_WaitForLastOperation | Operation: | from Flash in case | | | - Block programming | of byte and word | | | - Block erase | Operations | |--------------------------------------------------------------------------------| | FLASH_ProgramBlock | Exclusively | useless from Flash | |--------------------------------------------------------------------------------| | FLASH_EraseBlock | Exclusively | useless from Flash | |--------------------------------------------------------------------------------| To be able to execute functions from RAM several steps have to be followed. These steps may differ from one toolchain to another. A detailed description is available below within this driver. You can also refer to the FLASH examples provided within the STM8S_StdPeriph_Lib package.
Definition at line 69 of file stm8s_flash.c.
Referenced by FLASH_EraseByte(), and FLASH_EraseOptionByte().
#define FLASH_SET_BYTE ((uint8_t)0xFF) |
Definition at line 70 of file stm8s_flash.c.
Referenced by FLASH_EraseOptionByte().
#define HSE_VALUE ((uint32_t)16000000) |
In the following line adjust the value of External High Speed oscillator (HSE) used in your application.
Tip: To avoid modifying this file each time you need to use different HSE, you can define the HSE value in your toolchain compiler preprocessor.
Definition at line 111 of file stm8s.h.
Referenced by CLK_GetClockFreq().
#define HSI_VALUE ((uint32_t)16000000) |
Definition of Device on-chip RC oscillator frequencies.
Typical Value of the HSI in Hz
Definition at line 118 of file stm8s.h.
Referenced by CLK_GetClockFreq().
#define IS_TIM2_CHANNEL_OK | ( | CHANNEL | ) |
(((CHANNEL) == TIM2_CHANNEL_1) || \ ((CHANNEL) == TIM2_CHANNEL_2) || \ ((CHANNEL) == TIM2_CHANNEL_3))
Definition at line 135 of file stm8s_tim2.h.
Referenced by TIM2_CCxCmd(), TIM2_ICInit(), and TIM2_SelectOCxM().
#define IS_TIM2_CLEAR_FLAG_OK | ( | FLAG | ) | ((((uint16_t)(FLAG) & 0xF1F0) == 0x0000) && ((uint16_t)(FLAG) != 0x0000)) |
Definition at line 271 of file stm8s_tim2.h.
Referenced by TIM2_ClearFlag().
#define IS_TIM2_EVENT_SOURCE_OK | ( | SOURCE | ) | (((SOURCE) != 0x00)) |
Definition at line 239 of file stm8s_tim2.h.
Referenced by TIM2_GenerateEvent().
#define IS_TIM2_FORCED_ACTION_OK | ( | ACTION | ) |
(((ACTION) == TIM2_FORCEDACTION_ACTIVE) || \ ((ACTION) == TIM2_FORCEDACTION_INACTIVE))
Definition at line 49 of file stm8s_tim2.h.
Referenced by TIM2_ForcedOC1Config(), TIM2_ForcedOC2Config(), and TIM2_ForcedOC3Config().
#define IS_TIM2_GET_FLAG_OK | ( | FLAG | ) |
(((FLAG) == TIM2_FLAG_UPDATE) || \ ((FLAG) == TIM2_FLAG_CC1) || \ ((FLAG) == TIM2_FLAG_CC2) || \ ((FLAG) == TIM2_FLAG_CC3) || \ ((FLAG) == TIM2_FLAG_CC1OF) || \ ((FLAG) == TIM2_FLAG_CC2OF) || \ ((FLAG) == TIM2_FLAG_CC3OF))
Definition at line 263 of file stm8s_tim2.h.
Referenced by TIM2_GetFlagStatus().
#define IS_TIM2_GET_IT_OK | ( | IT | ) |
(((IT) == TIM2_IT_UPDATE) || \ ((IT) == TIM2_IT_CC1) || \ ((IT) == TIM2_IT_CC2) || \ ((IT) == TIM2_IT_CC3))
Definition at line 215 of file stm8s_tim2.h.
Referenced by TIM2_GetITStatus().
#define IS_TIM2_IC_FILTER_OK | ( | ICFILTER | ) | ((ICFILTER) <= 0x0F) |
TIM2 Input Capture Filer Value.
Definition at line 202 of file stm8s_tim2.h.
Referenced by TIM2_ICInit().
#define IS_TIM2_IC_POLARITY_OK | ( | POLARITY | ) |
(((POLARITY) == TIM2_ICPOLARITY_RISING) || \ ((POLARITY) == TIM2_ICPOLARITY_FALLING))
Definition at line 169 of file stm8s_tim2.h.
Referenced by TIM2_ICInit(), and TIM2_PWMIConfig().
#define IS_TIM2_IC_PRESCALER_OK | ( | PRESCALER | ) |
(((PRESCALER) == TIM2_ICPSC_DIV1) || \ ((PRESCALER) == TIM2_ICPSC_DIV2) || \ ((PRESCALER) == TIM2_ICPSC_DIV4) || \ ((PRESCALER) == TIM2_ICPSC_DIV8))
Definition at line 196 of file stm8s_tim2.h.
Referenced by TIM2_ICInit(), TIM2_PWMIConfig(), TIM2_SetIC1Prescaler(), TIM2_SetIC2Prescaler(), and TIM2_SetIC3Prescaler().
#define IS_TIM2_IC_SELECTION1_OK | ( | SELECTION | ) |
(((SELECTION) == TIM2_ICSELECTION_DIRECTTI) || \ ((SELECTION) == TIM2_ICSELECTION_TRGI))
Definition at line 184 of file stm8s_tim2.h.
#define IS_TIM2_IC_SELECTION_OK | ( | SELECTION | ) |
(((SELECTION) == TIM2_ICSELECTION_DIRECTTI) || \ ((SELECTION) == TIM2_ICSELECTION_INDIRECTTI) || \ ((SELECTION) == TIM2_ICSELECTION_TRGI))
Definition at line 180 of file stm8s_tim2.h.
Referenced by TIM2_ICInit(), and TIM2_PWMIConfig().
#define IS_TIM2_IT_OK | ( | IT | ) | (((IT) != 0x00) && ((IT) <= 0x0F)) |
Definition at line 213 of file stm8s_tim2.h.
Referenced by TIM2_ClearITPendingBit(), and TIM2_ITConfig().
#define IS_TIM2_OC_MODE_OK | ( | MODE | ) |
(((MODE) == TIM2_OCMODE_TIMING) || \ ((MODE) == TIM2_OCMODE_ACTIVE) || \ ((MODE) == TIM2_OCMODE_INACTIVE) || \ ((MODE) == TIM2_OCMODE_TOGGLE)|| \ ((MODE) == TIM2_OCMODE_PWM1) || \ ((MODE) == TIM2_OCMODE_PWM2))
Definition at line 101 of file stm8s_tim2.h.
Referenced by TIM2_OC1Init(), TIM2_OC2Init(), and TIM2_OC3Init().
#define IS_TIM2_OC_POLARITY_OK | ( | POLARITY | ) |
(((POLARITY) == TIM2_OCPOLARITY_HIGH) || \ ((POLARITY) == TIM2_OCPOLARITY_LOW))
Definition at line 149 of file stm8s_tim2.h.
Referenced by TIM2_OC1Init(), TIM2_OC1PolarityConfig(), TIM2_OC2Init(), TIM2_OC2PolarityConfig(), TIM2_OC3Init(), and TIM2_OC3PolarityConfig().
#define IS_TIM2_OCM_OK | ( | MODE | ) |
(((MODE) == TIM2_OCMODE_TIMING) || \ ((MODE) == TIM2_OCMODE_ACTIVE) || \ ((MODE) == TIM2_OCMODE_INACTIVE) || \ ((MODE) == TIM2_OCMODE_TOGGLE)|| \ ((MODE) == TIM2_OCMODE_PWM1) || \ ((MODE) == TIM2_OCMODE_PWM2) || \ ((MODE) == (uint8_t)TIM2_FORCEDACTION_ACTIVE) || \ ((MODE) == (uint8_t)TIM2_FORCEDACTION_INACTIVE))
Definition at line 108 of file stm8s_tim2.h.
Referenced by TIM2_SelectOCxM().
#define IS_TIM2_OPM_MODE_OK | ( | MODE | ) |
(((MODE) == TIM2_OPMODE_SINGLE) || \ ((MODE) == TIM2_OPMODE_REPETITIVE))
Definition at line 124 of file stm8s_tim2.h.
Referenced by TIM2_SelectOnePulseMode().
#define IS_TIM2_OUTPUT_STATE_OK | ( | STATE | ) |
(((STATE) == TIM2_OUTPUTSTATE_DISABLE) || \ ((STATE) == TIM2_OUTPUTSTATE_ENABLE))
Definition at line 159 of file stm8s_tim2.h.
Referenced by TIM2_OC1Init(), TIM2_OC2Init(), and TIM2_OC3Init().
#define IS_TIM2_PRESCALER_OK | ( | PRESCALER | ) |
(((PRESCALER) == TIM2_PRESCALER_1 ) || \ ((PRESCALER) == TIM2_PRESCALER_2 ) || \ ((PRESCALER) == TIM2_PRESCALER_4 ) || \ ((PRESCALER) == TIM2_PRESCALER_8 ) || \ ((PRESCALER) == TIM2_PRESCALER_16 ) || \ ((PRESCALER) == TIM2_PRESCALER_32 ) || \ ((PRESCALER) == TIM2_PRESCALER_64 ) || \ ((PRESCALER) == TIM2_PRESCALER_128 ) || \ ((PRESCALER) == TIM2_PRESCALER_256 ) || \ ((PRESCALER) == TIM2_PRESCALER_512 ) || \ ((PRESCALER) == TIM2_PRESCALER_1024 ) || \ ((PRESCALER) == TIM2_PRESCALER_2048 ) || \ ((PRESCALER) == TIM2_PRESCALER_4096 ) || \ ((PRESCALER) == TIM2_PRESCALER_8192 ) || \ ((PRESCALER) == TIM2_PRESCALER_16384 ) || \ ((PRESCALER) == TIM2_PRESCALER_32768 ))
Definition at line 73 of file stm8s_tim2.h.
Referenced by TIM2_PrescalerConfig().
#define IS_TIM2_PRESCALER_RELOAD_OK | ( | RELOAD | ) |
(((RELOAD) == TIM2_PSCRELOADMODE_UPDATE) || \ ((RELOAD) == TIM2_PSCRELOADMODE_IMMEDIATE))
Definition at line 227 of file stm8s_tim2.h.
Referenced by TIM2_PrescalerConfig().
#define IS_TIM2_PWMI_CHANNEL_OK | ( | CHANNEL | ) |
(((CHANNEL) == TIM2_CHANNEL_1) || \ ((CHANNEL) == TIM2_CHANNEL_2))
Definition at line 139 of file stm8s_tim2.h.
Referenced by TIM2_PWMIConfig().
#define IS_TIM2_UPDATE_SOURCE_OK | ( | SOURCE | ) |
(((SOURCE) == TIM2_UPDATESOURCE_GLOBAL) || \ ((SOURCE) == TIM2_UPDATESOURCE_REGULAR))
Definition at line 248 of file stm8s_tim2.h.
Referenced by TIM2_UpdateRequestConfig().
#define IS_TIM5_CHANNEL_OK | ( | CHANNEL | ) |
(((CHANNEL) == TIM5_CHANNEL_1) || \ ((CHANNEL) == TIM5_CHANNEL_2) || \ ((CHANNEL) == TIM5_CHANNEL_3))
Definition at line 135 of file stm8s_tim5.h.
Referenced by TIM5_CCxCmd(), TIM5_ICInit(), and TIM5_SelectOCxM().
#define IS_TIM5_CLEAR_FLAG_OK | ( | FLAG | ) | ((((uint16_t)(FLAG) & 0xF1F0) == 0x0000) && ((uint16_t)(FLAG) != 0x0000)) |
Definition at line 301 of file stm8s_tim5.h.
Referenced by TIM5_ClearFlag().
#define IS_TIM5_ENCODER_MODE_OK | ( | MODE | ) |
(((MODE) == TIM5_ENCODERMODE_TI1) || \ ((MODE) == TIM5_ENCODERMODE_TI2) || \ ((MODE) == TIM5_ENCODERMODE_TI12))
Macro TIM5 encoder mode.
Definition at line 359 of file stm8s_tim5.h.
Referenced by TIM5_EncoderInterfaceConfig().
#define IS_TIM5_EVENT_SOURCE_OK | ( | SOURCE | ) | (((SOURCE) != 0x00)) |
Definition at line 242 of file stm8s_tim5.h.
Referenced by TIM5_GenerateEvent().
#define IS_TIM5_EXT_FILTER_OK | ( | EXTFILTER | ) | ((EXTFILTER) <= 0x0F) |
Macro TIM5 External Trigger Filter.
Definition at line 403 of file stm8s_tim5.h.
#define IS_TIM5_EXT_POLARITY_OK | ( | POLARITY | ) |
(((POLARITY) == TIM5_EXTTRGPOLARITY_INVERTED) || \ ((POLARITY) == TIM5_EXTTRGPOLARITY_NONINVERTED))
Macro TIM5 Trigger Polarity.
Definition at line 396 of file stm8s_tim5.h.
#define IS_TIM5_EXT_PRESCALER_OK | ( | PRESCALER | ) |
(((PRESCALER) == TIM5_EXTTRGPSC_OFF) || \ ((PRESCALER) == TIM5_EXTTRGPSC_DIV2) || \ ((PRESCALER) == TIM5_EXTTRGPSC_DIV4) || \ ((PRESCALER) == TIM5_EXTTRGPSC_DIV8))
Macro TIM5 external trigger prescaler.
Definition at line 378 of file stm8s_tim5.h.
#define IS_TIM5_FORCED_ACTION_OK | ( | ACTION | ) |
(((ACTION) == TIM5_FORCEDACTION_ACTIVE) || \ ((ACTION) == TIM5_FORCEDACTION_INACTIVE))
Definition at line 49 of file stm8s_tim5.h.
Referenced by TIM5_ForcedOC1Config(), TIM5_ForcedOC2Config(), and TIM5_ForcedOC3Config().
#define IS_TIM5_GET_FLAG_OK | ( | FLAG | ) |
(((FLAG) == TIM5_FLAG_UPDATE) || \ ((FLAG) == TIM5_FLAG_CC1) || \ ((FLAG) == TIM5_FLAG_CC2) || \ ((FLAG) == TIM5_FLAG_CC3) || \ ((FLAG) == TIM5_FLAG_TRIGGER) || \ ((FLAG) == TIM5_FLAG_CC1OF) || \ ((FLAG) == TIM5_FLAG_CC2OF) || \ ((FLAG) == TIM5_FLAG_CC3OF))
Definition at line 292 of file stm8s_tim5.h.
Referenced by TIM5_GetFlagStatus().
#define IS_TIM5_GET_IT_OK | ( | IT | ) |
(((IT) == TIM5_IT_UPDATE) || \ ((IT) == TIM5_IT_CC1) || \ ((IT) == TIM5_IT_CC2) || \ ((IT) == TIM5_IT_CC3) || \ ((IT) == TIM5_IT_TRIGGER))
Definition at line 216 of file stm8s_tim5.h.
Referenced by TIM5_GetITStatus().
#define IS_TIM5_IC_FILTER_OK | ( | ICFILTER | ) | ((ICFILTER) <= 0x0F) |
TIM5 Input Capture Filer Value.
Definition at line 202 of file stm8s_tim5.h.
Referenced by TIM5_ICInit().
#define IS_TIM5_IC_POLARITY_OK | ( | POLARITY | ) |
(((POLARITY) == TIM5_ICPOLARITY_RISING) || \ ((POLARITY) == TIM5_ICPOLARITY_FALLING))
Definition at line 169 of file stm8s_tim5.h.
Referenced by TIM5_EncoderInterfaceConfig(), TIM5_ICInit(), and TIM5_PWMIConfig().
#define IS_TIM5_IC_PRESCALER_OK | ( | PRESCALER | ) |
(((PRESCALER) == TIM5_ICPSC_DIV1) || \ ((PRESCALER) == TIM5_ICPSC_DIV2) || \ ((PRESCALER) == TIM5_ICPSC_DIV4) || \ ((PRESCALER) == TIM5_ICPSC_DIV8))
Definition at line 196 of file stm8s_tim5.h.
Referenced by TIM5_ICInit(), TIM5_PWMIConfig(), TIM5_SetIC1Prescaler(), TIM5_SetIC2Prescaler(), and TIM5_SetIC3Prescaler().
#define IS_TIM5_IC_SELECTION1_OK | ( | SELECTION | ) |
(((SELECTION) == TIM5_ICSELECTION_DIRECTTI) || \ ((SELECTION) == TIM5_ICSELECTION_TRGI))
Definition at line 184 of file stm8s_tim5.h.
#define IS_TIM5_IC_SELECTION_OK | ( | SELECTION | ) |
(((SELECTION) == TIM5_ICSELECTION_DIRECTTI) || \ ((SELECTION) == TIM5_ICSELECTION_INDIRECTTI) || \ ((SELECTION) == TIM5_ICSELECTION_TRGI))
Definition at line 180 of file stm8s_tim5.h.
Referenced by TIM5_ICInit(), and TIM5_PWMIConfig().
#define IS_TIM5_IT_OK | ( | IT | ) | (((IT) != 0x00) && ((IT) <= 0x4F)) |
Definition at line 214 of file stm8s_tim5.h.
Referenced by TIM5_ClearITPendingBit(), and TIM5_ITConfig().
#define IS_TIM5_OC_MODE_OK | ( | MODE | ) |
(((MODE) == TIM5_OCMODE_TIMING) || \ ((MODE) == TIM5_OCMODE_ACTIVE) || \ ((MODE) == TIM5_OCMODE_INACTIVE) || \ ((MODE) == TIM5_OCMODE_TOGGLE)|| \ ((MODE) == TIM5_OCMODE_PWM1) || \ ((MODE) == TIM5_OCMODE_PWM2))
Definition at line 101 of file stm8s_tim5.h.
Referenced by TIM5_OC1Init(), TIM5_OC2Init(), and TIM5_OC3Init().
#define IS_TIM5_OC_POLARITY_OK | ( | POLARITY | ) |
(((POLARITY) == TIM5_OCPOLARITY_HIGH) || \ ((POLARITY) == TIM5_OCPOLARITY_LOW))
Definition at line 149 of file stm8s_tim5.h.
Referenced by TIM5_OC1Init(), TIM5_OC1PolarityConfig(), TIM5_OC2Init(), TIM5_OC2PolarityConfig(), TIM5_OC3Init(), and TIM5_OC3PolarityConfig().
#define IS_TIM5_OCM_OK | ( | MODE | ) |
(((MODE) == TIM5_OCMODE_TIMING) || \ ((MODE) == TIM5_OCMODE_ACTIVE) || \ ((MODE) == TIM5_OCMODE_INACTIVE) || \ ((MODE) == TIM5_OCMODE_TOGGLE)|| \ ((MODE) == TIM5_OCMODE_PWM1) || \ ((MODE) == TIM5_OCMODE_PWM2) || \ ((MODE) == (uint8_t)TIM5_FORCEDACTION_ACTIVE) || \ ((MODE) == (uint8_t)TIM5_FORCEDACTION_INACTIVE))
Definition at line 108 of file stm8s_tim5.h.
Referenced by TIM5_SelectOCxM().
#define IS_TIM5_OPM_MODE_OK | ( | MODE | ) |
(((MODE) == TIM5_OPMODE_SINGLE) || \ ((MODE) == TIM5_OPMODE_REPETITIVE))
Definition at line 124 of file stm8s_tim5.h.
Referenced by TIM5_SelectOnePulseMode().
#define IS_TIM5_OUTPUT_STATE_OK | ( | STATE | ) |
(((STATE) == TIM5_OUTPUTSTATE_DISABLE) || \ ((STATE) == TIM5_OUTPUTSTATE_ENABLE))
Definition at line 159 of file stm8s_tim5.h.
Referenced by TIM5_OC1Init(), TIM5_OC2Init(), and TIM5_OC3Init().
#define IS_TIM5_PRESCALER_OK | ( | PRESCALER | ) |
(((PRESCALER) == TIM5_PRESCALER_1) || \ ((PRESCALER) == TIM5_PRESCALER_2 ) || \ ((PRESCALER) == TIM5_PRESCALER_4 ) || \ ((PRESCALER) == TIM5_PRESCALER_8 ) || \ ((PRESCALER) == TIM5_PRESCALER_16 ) || \ ((PRESCALER) == TIM5_PRESCALER_32 ) || \ ((PRESCALER) == TIM5_PRESCALER_64 ) || \ ((PRESCALER) == TIM5_PRESCALER_128 ) || \ ((PRESCALER) == TIM5_PRESCALER_256 ) || \ ((PRESCALER) == TIM5_PRESCALER_512 ) || \ ((PRESCALER) == TIM5_PRESCALER_1024 ) || \ ((PRESCALER) == TIM5_PRESCALER_2048 ) || \ ((PRESCALER) == TIM5_PRESCALER_4096 ) || \ ((PRESCALER) == TIM5_PRESCALER_8192 ) || \ ((PRESCALER) == TIM5_PRESCALER_16384 ) || \ ((PRESCALER) == TIM5_PRESCALER_32768 ))
Definition at line 73 of file stm8s_tim5.h.
Referenced by TIM5_PrescalerConfig().
#define IS_TIM5_PRESCALER_RELOAD_OK | ( | RELOAD | ) |
(((RELOAD) == TIM5_PSCRELOADMODE_UPDATE) || \ ((RELOAD) == TIM5_PSCRELOADMODE_IMMEDIATE))
Definition at line 229 of file stm8s_tim5.h.
Referenced by TIM5_PrescalerConfig().
#define IS_TIM5_PWMI_CHANNEL_OK | ( | CHANNEL | ) |
(((CHANNEL) == TIM5_CHANNEL_1) || \ ((CHANNEL) == TIM5_CHANNEL_2))
Definition at line 139 of file stm8s_tim5.h.
Referenced by TIM5_PWMIConfig().
#define IS_TIM5_SLAVE_MODE_OK | ( | MODE | ) |
(((MODE) == TIM5_SLAVEMODE_RESET) || \ ((MODE) == TIM5_SLAVEMODE_GATED) || \ ((MODE) == TIM5_SLAVEMODE_TRIGGER) || \ ((MODE) == TIM5_SLAVEMODE_EXTERNAL1))
Macro TIM5 Slave mode.
Definition at line 318 of file stm8s_tim5.h.
Referenced by TIM5_SelectSlaveMode().
#define IS_TIM5_TIX_TRIGGER_SELECTION_OK | ( | SELECTION | ) |
(((SELECTION) == TIM5_TS_TI1F_ED) || \ ((SELECTION) == TIM5_TS_TI1FP1) || \ ((SELECTION) == TIM5_TS_TI2FP2))
Definition at line 341 of file stm8s_tim5.h.
#define IS_TIM5_TRGO_SOURCE_OK | ( | SOURCE | ) |
(((SOURCE) == TIM5_TRGOSOURCE_RESET) || \ ((SOURCE) == TIM5_TRGOSOURCE_ENABLE) || \ ((SOURCE) == TIM5_TRGOSOURCE_UPDATE) || \ ((SOURCE) == TIM5_TRGOSOURCE_OC1) || \ ((SOURCE) == TIM5_TRGOSOURCE_OC1REF) || \ ((SOURCE) == TIM5_TRGOSOURCE_OC2REF))
Macro TIM5 TRGO source.
Definition at line 271 of file stm8s_tim5.h.
Referenced by TIM5_SelectOutputTrigger().
#define IS_TIM5_TRIGGER_SELECTION_OK | ( | SELECTION | ) |
(((SELECTION) == TIM5_TS_TIM6) || \ ((SELECTION) == TIM5_TS_TIM1) )
Macro TIM5 Trigger Selection.
Definition at line 336 of file stm8s_tim5.h.
Referenced by TIM5_SelectInputTrigger().
#define IS_TIM5_UPDATE_SOURCE_OK | ( | SOURCE | ) |
(((SOURCE) == TIM5_UPDATESOURCE_GLOBAL) || \ ((SOURCE) == TIM5_UPDATESOURCE_REGULAR))
Definition at line 252 of file stm8s_tim5.h.
Referenced by TIM5_UpdateRequestConfig().
#define LSI_VALUE ((uint32_t)128000) |
Typical Value of the LSI in Hz
Definition at line 119 of file stm8s.h.
Referenced by CLK_GetClockFreq().
#define MemoryAddressCast uint32_t |
Definition at line 161 of file stm8s.h.
Referenced by FLASH_EraseByte(), FLASH_ProgramByte(), FLASH_ProgramWord(), and FLASH_ReadByte().
#define NEAR __near |
Definition at line 143 of file stm8s.h.
Referenced by FLASH_EraseOptionByte(), FLASH_ProgramOptionByte(), and FLASH_ReadOptionByte().
#define OPERATION_TIMEOUT ((uint16_t)0xFFFF) |
Definition at line 71 of file stm8s_flash.c.
#define PointerAttr FAR |
< Used with memory Models for code higher than 64K
Definition at line 160 of file stm8s.h.
Referenced by FLASH_EraseByte(), FLASH_ProgramByte(), FLASH_ProgramWord(), and FLASH_ReadByte().
#define USE_STDPERIPH_DRIVER |
< STM8S High density devices with CAN
< STM8S High density devices without CAN
< STM8S Value Line High density devices
< STM8A High density devices with CAN
< STM8A High density devices without CAN
< STM8S Medium density devices
< STM8S Value Line Medium density devices
< STM8A Medium density devices
< STM8A Low density devices
< STM8S Low density devices
< STM8S Value Line Low density devices
< STM8S Low density devices
< STM8S Value Line Low denisty devices
Enumeration Type Documentation
enum TIM2_Channel_TypeDef |
TIM2 Channel.
Definition at line 128 of file stm8s_tim2.h.
TIM2 Event Source.
Definition at line 231 of file stm8s_tim2.h.
enum TIM2_FLAG_TypeDef |
TIM2 Flags.
Definition at line 252 of file stm8s_tim2.h.
TIM2 Forced Action.
Definition at line 43 of file stm8s_tim2.h.
TIM2 Input Capture Polarity.
Definition at line 163 of file stm8s_tim2.h.
enum TIM2_ICPSC_TypeDef |
TIM2 Input Capture Prescaler.
Definition at line 188 of file stm8s_tim2.h.
TIM2 Input Capture Selection.
Definition at line 173 of file stm8s_tim2.h.
enum TIM2_IT_TypeDef |
TIM2 interrupt sources.
Definition at line 205 of file stm8s_tim2.h.
enum TIM2_OCMode_TypeDef |
TIM2 Output Compare and PWM modes.
Definition at line 91 of file stm8s_tim2.h.
TIM2 Output Compare Polarity.
Definition at line 143 of file stm8s_tim2.h.
enum TIM2_OPMode_TypeDef |
TIM2 One Pulse Mode.
Definition at line 118 of file stm8s_tim2.h.
TIM2 Output Compare states.
Definition at line 153 of file stm8s_tim2.h.
TIM2 Prescaler.
Definition at line 53 of file stm8s_tim2.h.
TIM2 Prescaler Reload Mode.
Definition at line 221 of file stm8s_tim2.h.
TIM2 Update Source.
Definition at line 242 of file stm8s_tim2.h.
enum TIM5_Channel_TypeDef |
TIM5 Channel.
Definition at line 128 of file stm8s_tim5.h.
TIM5 Encoder Mode.
Definition at line 350 of file stm8s_tim5.h.
TIM5 Event Source.
Definition at line 233 of file stm8s_tim5.h.
TIM5 External Trigger Polarity.
Definition at line 387 of file stm8s_tim5.h.
TIM5 External Trigger Prescaler.
Definition at line 367 of file stm8s_tim5.h.
enum TIM5_FLAG_TypeDef |
TIM5 Flags.
Definition at line 280 of file stm8s_tim5.h.
TIM5 Forced Action.
Definition at line 43 of file stm8s_tim5.h.
TIM5 Input Capture Polarity.
Definition at line 163 of file stm8s_tim5.h.
enum TIM5_ICPSC_TypeDef |
TIM5 Input Capture Prescaler.
Definition at line 188 of file stm8s_tim5.h.
TIM5 Input Capture Selection.
Definition at line 173 of file stm8s_tim5.h.
enum TIM5_IT_TypeDef |
TIM5 interrupt sources.
Definition at line 205 of file stm8s_tim5.h.
enum TIM5_OCMode_TypeDef |
TIM5 Output Compare and PWM modes.
Definition at line 91 of file stm8s_tim5.h.
TIM5 Output Compare Polarity.
Definition at line 143 of file stm8s_tim5.h.
enum TIM5_OPMode_TypeDef |
TIM5 One Pulse Mode.
Definition at line 118 of file stm8s_tim5.h.
TIM5 Output Compare states.
Definition at line 153 of file stm8s_tim5.h.
TIM5 Prescaler.
Definition at line 53 of file stm8s_tim5.h.
TIM5 Prescaler Reload Mode.
Definition at line 223 of file stm8s_tim5.h.
TIM5 Slave Mode.
Definition at line 307 of file stm8s_tim5.h.
TIM5 Trigger Output Source.
Definition at line 258 of file stm8s_tim5.h.
enum TIM5_TS_TypeDef |
TIM5 Internal Trigger Selection.
Definition at line 327 of file stm8s_tim5.h.
TIM5 Update Source.
Definition at line 245 of file stm8s_tim5.h.
Variable Documentation
Definition at line 46 of file stm8s_can.c.
Referenced by CAN_GetReceivedData(), and CAN_Receive().
Definition at line 45 of file stm8s_can.c.
Referenced by CAN_GetReceivedDLC(), and CAN_Receive().
Definition at line 47 of file stm8s_can.c.
Referenced by CAN_GetReceivedFMI(), and CAN_Receive().
Definition at line 42 of file stm8s_can.c.
Referenced by CAN_GetReceivedId(), and CAN_Receive().
Definition at line 43 of file stm8s_can.c.
Referenced by CAN_GetReceivedIDE(), and CAN_Receive().
Definition at line 44 of file stm8s_can.c.
Referenced by CAN_GetReceivedRTR(), and CAN_Receive().
{ 0, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 61, 23, 23, 62 }
Contains the different values to write in the APR register (used by AWU_Init function)
Definition at line 49 of file stm8s_awu.c.
Referenced by AWU_Init().
{ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 12, 14, 15, 15 }
Contains the different values to write in the TBR register (used by AWU_Init function)
Definition at line 55 of file stm8s_awu.c.
Referenced by AWU_Init().