From 6a74406e0532da33502c585774aa0ed38ae4aae1 Mon Sep 17 00:00:00 2001 From: lambert Date: Sun, 14 May 2006 07:23:06 +0000 Subject: 1er comit de la partie barillet pour test J'espere qu'on va rien cramer :) --- n/es-2006/src/timer_1.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'n/es-2006/src/timer_1.c') diff --git a/n/es-2006/src/timer_1.c b/n/es-2006/src/timer_1.c index cbbe1e7..97b29fd 100644 --- a/n/es-2006/src/timer_1.c +++ b/n/es-2006/src/timer_1.c @@ -29,15 +29,15 @@ inline void timer1_init (void) { /* Initialisation of timer/counter 1 control register A : - * - pwm : TODO Fast PWM 10 bits. + * - pwm : TODO Complete it please ! */ TCCR1A = regv (COM1A1, COM1A0, COM1B1, COM1B0, COM1C1, COM1C0, WGM11, WGM10, - 0, 0, 0, 0, 0, 0, 1, 1 ); + 1, 0, 1, 0, 1, 0, 1, 1 ); /* Initialisation of timer/counter 1 control register B : * - shared : 1 for prescaling ; * - rvb : noise canceler, IC on falling edge ; - * - pwm : TODO Fast PWM 10 bits. + * - pwm : Fast PWM 10 bits. */ TCCR1B = regv (ICNC1, ICES1, 5, WGM13, WGM12, CS12, CS11, CS10, 1, 0, 0, 0, 1, 0, 0, 1 ); -- cgit v1.2.3