I/O: Convert constants to Javadoc style

This commit is contained in:
gohai
2015-10-14 17:12:20 +02:00
parent 3d42e22627
commit 4c94d1e1fa
2 changed files with 36 additions and 9 deletions

View File

@@ -43,9 +43,18 @@ public class GPIO {
public static final int HIGH = 1;
public static final int NONE = 0;
public static final int CHANGE = 1; // trigger when level changes
public static final int FALLING = 2; // trigger when level changes from high to low
public static final int RISING = 3; // trigger when level changes from low to high
/**
* trigger when level changes
*/
public static final int CHANGE = 1;
/**
* trigger when level changes from high to low
*/
public static final int FALLING = 2;
/**
* trigger when level changes from low to high
*/
public static final int RISING = 3;
protected static Map<Integer, Thread> irqThreads = new HashMap<Integer, Thread>();
protected static boolean serveInterrupts = true;

View File

@@ -33,12 +33,30 @@ import java.util.Map;
public class SPI {
public static final int MODE0 = 0; // CPOL=0, CPHA=0, most common
public static final int MODE1 = 1; // CPOL=0, CPHA=1
public static final int MODE2 = 2; // CPOL=1, CPHA=0
public static final int MODE3 = 3; // CPOL=1, CPHA=1
public static final int MSBFIRST = 0; // most significant bit first, most common
public static final int LSBFIRST = 1; // least significant bit first
/**
* CPOL=0, CPHA=0, most common
*/
public static final int MODE0 = 0;
/**
* CPOL=0, CPHA=1
*/
public static final int MODE1 = 1;
/**
* CPOL=1, CPHA=0
*/
public static final int MODE2 = 2;
/**
* CPOL=1, CPHA=1
*/
public static final int MODE3 = 3;
/**
* most significant bit first, most common
*/
public static final int MSBFIRST = 0;
/**
* least significant bit first
*/
public static final int LSBFIRST = 1;
protected int dataOrder = 0;
protected String dev;