STM8S/A Standard Peripherals Firmware Library
|
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
void main | ( | void | ) |
Main program.
- Parameters:
-
None
- Return values:
-
None
Definition at line 58 of file STM8S_StdPeriph_Examples/BEEP/BEEP_3SignalsGeneration/main.c.
References BEEP_Cmd(), BEEP_FREQUENCY_1KHZ, BEEP_FREQUENCY_2KHZ, BEEP_FREQUENCY_4KHZ, BEEP_Init(), BEEP_LSICalibrationConfig(), ButtonPressed, CLK_Config(), Delay(), DISABLE, ENABLE, enableInterrupts, FALSE, GPIO_Config(), i, LCD_Config(), LCD_LINE1, LCD_Print(), LCD_SetCursorPos(), LED1, LED2, LED3, LED4, LSIMeasurment(), STM_EVAL_LEDOff(), STM_EVAL_LEDOn(), and TRUE.
Variable Documentation
bool ButtonPressed = FALSE |
Definition at line 44 of file STM8S_StdPeriph_Examples/BEEP/BEEP_3SignalsGeneration/main.c.