4 void motor_on(u8 slot) {
9 bset_changer_output(A3000_MOTOR_ROW_ENABLE); /* XXX active low? */
10 delay(10); /* XXX cf motors_off */
11 bset((void*)&_io_ports[M6811_PORTA], PORTA_MOTOR_COL_DISABLE);
12 bclr_misc_output(A3800_MOTOR_COL8_ENABLE | A3800_MOTOR_COL9_ENABLE);
15 bool motor_here(u8 slot) {
18 for (i=0; i < 8; i++) {
19 if (_io_ports[M6811_PORTE] & PORTE_MOTOR_OVERVOLTAGE) {
32 bool is_motor(u8 slot) {
37 u8 dispense_motor(u8 slot) {
38 if (!is_motor(slot)) {