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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [rtos/] [rtems/] [c/] [src/] [lib/] [libbsp/] [i386/] [ts_386ex/] [tools/] [debug_ada/] [debug.adb] - Blame information for rev 173

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 30 unneback
with Ada.Text_IO;  use Ada.Text_IO;
2
with Ada.Numerics.Discrete_Random;
3
 
4
with TS1325.LED;  use TS1325.LED;
5
 
6
with Serial_Debug;  use Serial_Debug;
7
 
8
procedure Debug is
9
 
10
   package Random_LED_Colour is
11
     new Ada.Numerics.Discrete_Random (LED_Colour);
12
   use Random_LED_Colour;
13
 
14
   Colour_Gen: Random_LED_Colour.Generator;
15
 
16
   New_Colour: LED_Colour;
17
 
18
   Count: Integer := 0;
19
 
20
begin
21
   Breakpoint;
22
 
23
   Put_Line ("******* Starting Random LED Debug Test *******");
24
 
25
   for I in 1 .. 10_000 loop
26
      Count := Count + 1;
27
      New_Colour := Random_LED_Colour.Random (Colour_Gen);
28
      LED_State.Set (New_Colour);
29
   end loop;
30
 
31
   Put_Line ("******* Finished Random LED Debug Test *******");
32
end Debug;

powered by: WebSVN 2.1.0

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