nand2/07_Operating_System/GPIO.jack
Michael Schröder 971b323822 added v2.0
2023-01-11 23:04:57 +01:00

23 lines
435 B
Plaintext

/**
* This library provides access to BUT and LED.
*/
class GPIO {
/** Initialize LED and BUT. LED is memory mapped to addr.
* BUT is memory mapepd to addr +1 */
function void init(int addr){
}
/** Returns the value of LED. */
function int readLed(){
}
/** Write c to LED */
function void writeLed(int value){
}
/** Returns the value of BUT */
function int readBut() {
}
}