Doc. # 1-0000096 | |||
---|---|---|---|
Date Updated | 11-06-2007 | Date Created | 07-27-2000 |
Document Type | Knowledge Base | Related OS | |
Related Product | ADAM-4500 |
How to program LED of ADAM-4500 directly? | |||
---|---|---|---|
Solution:
The following are relative sub-routines about LED:
led_init()
{
outport(0xff76,inport(0xff76) | 0x0400); /* output mode */
outport(0xff78,inport(0xff78) & 0xfbff); /* 10 */
}
led_on()
{
outport(0xff7a,inport(0xff7a) | 0x0400); /* LED = 1 */
}
led_off()
{
outport(0xff7a,inport(0xff7a) & 0xfbff); /* LED = 0 */
}
|