OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [rtos/] [rtems/] [c/] [src/] [lib/] [libbsp/] [i386/] [ts_386ex/] [tools/] [ts_1325_ada/] [ts1325-led.ads] - Blame information for rev 609

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 30 unneback
with I386_Ports;
2
use I386_Ports;
3
 
4
package TS1325.LED is
5
 
6
   type LED_Colour is (Off, Green, Yellow, Red);
7
 
8
   protected LED_State is
9
 
10
      function Get return LED_Colour;
11
 
12
      procedure Set (Col: in LED_Colour);
13
 
14
   end LED_State;
15
 
16
private
17
 
18
   Green_Bit: constant Byte := 2#0010_0000#; -- bit set = LED on
19
 
20
   Red_Bit: constant Byte := 2#0100_0000#; -- bit clear = LED on
21
 
22
   LED_Mask: constant Byte := 2#0110_0000#;
23
 
24
   LED_Port: Port_Address renames P1LTC;
25
 
26
end TS1325.LED;

powered by: WebSVN 2.1.0

© copyright 1999-2025 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.