From a60c072e17cd502a06d9cea5de928b899d5cac16 Mon Sep 17 00:00:00 2001 From: Nicolas Schodet Date: Sun, 9 Mar 2008 17:40:28 +0100 Subject: * digital/asserv/src/asserv: - cleaned up, separated compilation. - prepared auxialliary motor control. --- digital/asserv/src/asserv/simu.host.h | 51 ----------------------------------- 1 file changed, 51 deletions(-) (limited to 'digital/asserv/src/asserv/simu.host.h') diff --git a/digital/asserv/src/asserv/simu.host.h b/digital/asserv/src/asserv/simu.host.h index 45778bd6..8d92c44b 100644 --- a/digital/asserv/src/asserv/simu.host.h +++ b/digital/asserv/src/asserv/simu.host.h @@ -23,68 +23,17 @@ * Web: http://perso.efrei.fr/~schodet/ * }}} */ -/** Simulate some AVR regs. */ extern uint8_t DDRF, PORTC, PORTD, PORTE, PORTF, PORTG, PINC; -/** Overall counter values. */ -extern uint16_t counter_left, counter_right; -/** Counter differences since last update. - * Maximum of 9 significant bits, sign included. */ -extern int16_t counter_left_diff, counter_right_diff; - -/** Define the direction output for left motor. */ -#define PWM_LEFT_DIR 4 -/** Define the direction output for right motor. */ -#define PWM_RIGHT_DIR 5 - -/** Define the absolute maximum PWM value. */ -#define PWM_MAX 0x3ff - -/** PWM values, this is an error if absolute value is greater than the - * maximum. */ -extern int16_t pwm_left, pwm_right; -/** PWM reverse direction, only set pwm dir bits or you will get weird results - * on port B. */ -extern uint8_t pwm_dir; - -/** Computed simulated position. */ extern double simu_pos_x, simu_pos_y, simu_pos_a; -#define EEPROM_KEY 0xa5 -#define eeprom_read_params() do { } while (0) -#define eeprom_write_params() do { } while (0) -#define eeprom_clear_params() do { } while (0) - -/* +AutoDec */ - -/** Initialise the timer. */ void timer_init (void); -/** Wait for timer overflow. */ void timer_wait (void); -/** Read timer value. Used for performance analysis. */ uint8_t timer_read (void); -/** Initialize the counters. */ -void -counter_init (void); - -/** Update overall counter values and compute diffs. */ -void -counter_update (void); - -/** Initialise PWM generator. */ -void -pwm_init (void); - -/** Update the hardware PWM values. */ -void -pwm_update (void); - -/* -AutoDec */ - #endif /* simu_host_h */ -- cgit v1.2.3