STM8S/A Standard Peripherals Firmware Library: main.c File Reference

STM8S/A

STM8S_StdPeriph_Examples/TIM4/TIM4_TimeBase/main.c File Reference

This file contains the main function for TIM4 Time Base Configuration example. More...

#include "stm8s.h" #include "stm8s_eval.h"

Go to the source code of this file.

Defines

#define TIM4_PERIOD   124

Functions

static void CLK_Config (void)
 Configure system clock to run at 16Mhz.
void Delay (__IO uint32_t nTime)
 Inserts a delay time.
static void GPIO_Config (void)
 Configure GPIO for LEDs available on the evaluation board.
void main (void)
 Main program.
static void TIM4_Config (void)
 Configure TIM4 to generate an update interrupt each 1ms.
void TimingDelay_Decrement (void)
 Decrements the TimingDelay variable.

Variables

__IO uint32_t TimingDelay = 0

Detailed Description

This file contains the main function for TIM4 Time Base Configuration example.

Author:
MCD Application Team
Version:
V2.2.0
Date:
30-September-2014
Attention:

© COPYRIGHT 2014 STMicroelectronics

Licensed under MCD-ST Liberty SW License Agreement V2, (the "License"); You may not use this file except in compliance with the License. You may obtain a copy of the License at:

http://www.st.com/software_license_agreement_liberty_v2

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Definition in file STM8S_StdPeriph_Examples/TIM4/TIM4_TimeBase/main.c.

STM8 Standard Peripherals Library: Footer

 

 

 

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