add unified compile target
[avr_work.git] / lline / motor_conf.h
blobe0b3a0e684116597f13b191563e7369fed152960
1 #include <avr/io.h>
3 #include <stdint.h>
5 /* Configuable Items */
6 // Motor listing
7 static const struct motor_s motor_list [] = {
8 MOTOR_DEF(OCR1D,PORTA,1,PORTA,2),
9 MOTOR_DEF(OCR1B,PORTB,6,PORTB,4)
11 #define MOTOR_CT ( sizeof(motor_list) / sizeof(motor_s) )
13 /* Physical Data (lline erector)
14 PB5 (OC1D) -> PWMA
15 PA1 -> AIN1
16 PA2 -> AIN2
18 PB3 (OC1B) -> PWMB
19 PB6 -> BIN1
20 PB4 -> BIN2
22 M1/A -> right
23 M2/B -> left