diff options
Diffstat (limited to 'main.c')
| -rw-r--r-- | main.c | 28 |
1 files changed, 14 insertions, 14 deletions
@@ -7,6 +7,20 @@ #include "fpm.h" +#define SERVO_PIN PB1 +#define SERVO_DDR DDRB + +#define PWM_MIN 500 +#define PWM_MID 1600 +#define PWM_MAX 2550 +#define PWM_TOP 20000 + +#define VCC_MIN 4900 + +#define LED_PIN PB5 +#define LED_DDR DDRB +#define LED_PORT PORTB + #define FRONT_UNLOCK_PIN PD2 #define FRONT_LOCK_PIN PD3 #define ENROLL_PIN PD4 @@ -25,20 +39,6 @@ #define BACK_UNLOCK_INT PCINT22 #define BTN_INT_VEC PCINT2_vect -#define SERVO_PIN PB1 -#define SERVO_DDR DDRB - -#define PWM_MIN 500 -#define PWM_MID 1600 -#define PWM_MAX 2550 -#define PWM_TOP 20000 - -#define VCC_MIN 4900 - -#define LED_PIN PB5 -#define LED_DDR DDRB -#define LED_PORT PORTB - static volatile int frnt_lock = 0; static volatile int back_lock = 0; static volatile int frnt_unlock = 0; |
