/* MAIN.C file * * Copyright (c) 2002-2005 STMicroelectronics */#include <iostm8l.h>#include <stdio.h>#include <string.h>#include <stdlib.h>#include <stdint.h>#include "defs.h"unsigned int count = 0;unsigned int pwm_duty = 0x0000;void TIM2_SetCompar...