STM8S/A Standard Peripherals Firmware Library
|
This file contains the main function for TIM2 OC ActiveMode Example. More...
#include "stm8s.h"
Go to the source code of this file.
Defines | |
#define | CCR1_Val ((uint16_t)976) |
#define | CCR2_Val ((uint16_t)488) |
#define | CCR3_Val ((uint16_t)244) |
Functions | |
static void | GPIO_Config (void) |
Configure PG6 to allow delay of TIM2 channels computation. | |
void | main (void) |
Main program. | |
static void | TIM2_Config (void) |
Configure TIM2 peripheral to generate 3 different signals with 3 different delays. |
Detailed Description
This file contains the main function for TIM2 OC ActiveMode 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/TIM2/TIM2_OC_ActiveMode/main.c.