/* Before you start, select your target, on the right of the "Load" button */
int main(void)
/* Before you start, select your target, on the right of the "Load" button */
int main(void)
{
		if (position == 1000) {
			position = 2000;
		} else {
			position = 1000;
		}
		TM_PWM_SetChannelMicros(&TIM2_Data, TM_PWM_Channel_1, position);
		Delayms(1500);
	}
}