STM8S/A Standard Peripherals Firmware Library: BEEP_3SignalsGeneration

STM8S/A

STM8S/A Standard Peripherals Firmware Library
BEEP_3SignalsGeneration

Functions

static void CLK_Config (void)
 Configure system clock to run at 16Mhz.
void Delay (uint16_t nCount)
 Delay.
static void GPIO_Config (void)
 Configure GPIO for LEDs and buttons available on the evaluation board.
static void LCD_Config (void)
 Configure the LCD available on the evaluation board.
uint32_t LSIMeasurment (void)
 Measure the LSI frequency using timer IC1 and update the calibration registers.
void main (void)
 Main program.

Variables

bool ButtonPressed = FALSE

Function Documentation

static void CLK_Config ( void  ) [static]

Configure system clock to run at 16Mhz.

Parameters:
None
Return values:
None

Definition at line 153 of file STM8S_StdPeriph_Examples/BEEP/BEEP_3SignalsGeneration/main.c.

References CLK_HSIPrescalerConfig(), and CLK_PRESCALER_HSIDIV1.

void Delay ( uint16_t  nCount)

Delay.

Parameters:
nCount
Return values:
None

Definition at line 297 of file STM8S_StdPeriph_Examples/AWU/AWU_ActiveHaltMode/main.c.

static void GPIO_Config ( void  ) [static]

Configure GPIO for LEDs and buttons available on the evaluation board.

Parameters:
None
Return values:
None

Definition at line 165 of file STM8S_StdPeriph_Examples/BEEP/BEEP_3SignalsGeneration/main.c.

References BUTTON_KEY, BUTTON_MODE_EXTI, LED1, LED2, LED3, LED4, STM_EVAL_LEDInit(), STM_EVAL_LEDOn(), and STM_EVAL_PBInit().

static void LCD_Config ( void  ) [static]

Configure the LCD available on the evaluation board.

Parameters:
None
Return values:
None

Definition at line 188 of file STM8S_StdPeriph_Examples/BEEP/BEEP_3SignalsGeneration/main.c.

References LCD_Clear(), LCD_LINE1, LCD_LINE2, LCD_Print(), LCD_SetCursorPos(), and STM8S_EVAL_LCD_Init().

uint32_t LSIMeasurment ( void  )

Measure the LSI frequency using timer IC1 and update the calibration registers.

Note:
It is recommended to use a timer clock frequency of at least 10MHz in order to obtain a better in the LSI frequency measurement.
Parameters:
None
Return values:
None

Variable Documentation

STM8 Standard Peripherals Library: Footer

 

 

 

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