Project

General

Profile

Revision dc472500

IDdc472500b5d9e2baef332e74a0ff124280767c6d
Parent e1d61b43
Child 1b054655

Added by Thomas Mullins over 11 years ago

Added LED blinking, and other fixes

View differences:

tooltron_mb.h
6 6
 */
7 7

  
8 8
/* Serial number from rfid reader, or 0 if there is no rfid tag present */
9
#define MB_INP_SERNOL  1
10
#define MB_INP_SERNOH  2
9
#define MB_INP_SERNOL  0
10
#define MB_INP_SERNOH  1
11 11

  
12 12
/* Value from current sensor */
13
#define MB_INP_CURRENT 3
13
#define MB_INP_CURRENT 2
14 14

  
15 15
/*
16 16
 * Coils, 1 bit read/write
......
18 18

  
19 19
/* When 1, there is a new rfid tag in the tool. Automatically cleared when the
20 20
 * main box writes to MB_COIL_EN */
21
#define MB_COIL_NEW     1
21
#define MB_COIL_NEW     0
22 22

  
23 23
/* When 1, the tool receives power. Write 1 or 0 to grant or deny an access
24 24
 * request, respectively. If the tool is running, write 0 to immediately shut
25 25
 * off the tool */
26
#define MB_COIL_EN      2
26
#define MB_COIL_EN      1
27 27

  
28 28
/* Write 1 to request that the tool is disabled soon (what that means will be
29 29
 * determined later) */
30
#define MB_COIL_REQ_DIS 3
30
#define MB_COIL_REQ_DIS 2
31 31

  
32 32
/* When 1, tool has been properly initialized. When 0, tool has lost power and
33 33
 * the main box should rewrite values for current limits (to be implemented
34 34
 * later) */
35
#define MB_COIL_INIT    4
35
#define MB_COIL_INIT    3
36 36

  
37 37
/* Number of coils */
38 38
#define N_COILS 4

Also available in: Unified diff