STM8S/A Standard Peripherals Drivers: AWU_Private_Macros

STM8S/A

STM8S/A Standard Peripherals Drivers
AWU_Private_Macros

Defines

#define IS_AWU_TIMEBASE_OK(TB)
 Macro used by the assert function to check the different functions parameters.
#define IS_LSI_FREQUENCY_OK(FREQ)
 Macro used by the assert function to check the LSI frequency (in Hz)

Define Documentation

#define IS_AWU_TIMEBASE_OK (   TB)
Value:
(((TB) == AWU_TIMEBASE_NO_IT) || \
   ((TB) == AWU_TIMEBASE_250US) || \
   ((TB) == AWU_TIMEBASE_500US) || \
   ((TB) == AWU_TIMEBASE_1MS)   || \
   ((TB) == AWU_TIMEBASE_2MS)   || \
   ((TB) == AWU_TIMEBASE_4MS)   || \
   ((TB) == AWU_TIMEBASE_8MS)   || \
   ((TB) == AWU_TIMEBASE_16MS)  || \
   ((TB) == AWU_TIMEBASE_32MS)  || \
   ((TB) == AWU_TIMEBASE_64MS)  || \
   ((TB) == AWU_TIMEBASE_128MS) || \
   ((TB) == AWU_TIMEBASE_256MS) || \
   ((TB) == AWU_TIMEBASE_512MS) || \
   ((TB) == AWU_TIMEBASE_1S)    || \
   ((TB) == AWU_TIMEBASE_2S)    || \
   ((TB) == AWU_TIMEBASE_12S)   || \
   ((TB) == AWU_TIMEBASE_30S))

Macro used by the assert function to check the different functions parameters.

Macro used by the assert function to check the AWU timebases

Definition at line 98 of file stm8s_awu.h.

Referenced by AWU_Init().

#define IS_LSI_FREQUENCY_OK (   FREQ)
Value:
(((FREQ) >= LSI_FREQUENCY_MIN) && \
   ((FREQ) <= LSI_FREQUENCY_MAX))

Macro used by the assert function to check the LSI frequency (in Hz)

Definition at line 120 of file stm8s_awu.h.

Referenced by AWU_LSICalibrationConfig(), and BEEP_LSICalibrationConfig().

STM8 Standard Peripherals Library: Footer

 

 

 

      For complete documentation on STM8 8-bit Microcontrollers platform visit www.st.com