Last change
on this file was
1046,
checked in by murphpo, 16 years ago
|
first version of User I/O board code
|
-
Property svn:executable set to
*
|
File size:
1.3 KB
|
Rev | Line | |
---|
[1046] | 1 | #include <string.h> |
---|
| 2 | #include "ascii_characters.h" |
---|
| 3 | #include "warp_userioboard_util.h" |
---|
| 4 | #include "xparameters.h" |
---|
| 5 | |
---|
| 6 | #include "xsysace.h" |
---|
| 7 | |
---|
| 8 | int main() |
---|
| 9 | { |
---|
| 10 | xil_printf("Starting User IO Board CF Test v00.5\r\n"); |
---|
| 11 | |
---|
| 12 | int i, status; |
---|
| 13 | |
---|
| 14 | //Initialize the LCD for slot 1 (i.e. don't flip the image) and non-inverted colors |
---|
| 15 | warp_userioboard_lcd_init(1, 0); |
---|
| 16 | |
---|
| 17 | usleep(5000000); |
---|
| 18 | |
---|
| 19 | while(1) |
---|
| 20 | { |
---|
| 21 | status = warp_userio_lcd_displayCFimage("bar00.rgb"); |
---|
| 22 | status |= warp_userio_lcd_displayCFimage("bar01.rgb"); |
---|
| 23 | status |= warp_userio_lcd_displayCFimage("bar02.rgb"); |
---|
| 24 | status |= warp_userio_lcd_displayCFimage("bar03.rgb"); |
---|
| 25 | status |= warp_userio_lcd_displayCFimage("bar04.rgb"); |
---|
| 26 | status |= warp_userio_lcd_displayCFimage("bar05.rgb"); |
---|
| 27 | status |= warp_userio_lcd_displayCFimage("bar06.rgb"); |
---|
| 28 | status |= warp_userio_lcd_displayCFimage("bar07.rgb"); |
---|
| 29 | status |= warp_userio_lcd_displayCFimage("bar08.rgb"); |
---|
| 30 | status |= warp_userio_lcd_displayCFimage("bar09.rgb"); |
---|
| 31 | status |= warp_userio_lcd_displayCFimage("bar10.rgb"); |
---|
| 32 | status |= warp_userio_lcd_displayCFimage("bar11.rgb"); |
---|
| 33 | status |= warp_userio_lcd_displayCFimage("bar12.rgb"); |
---|
| 34 | status |= warp_userio_lcd_displayCFimage("bar13.rgb"); |
---|
| 35 | status |= warp_userio_lcd_displayCFimage("bar14.rgb"); |
---|
| 36 | status |= warp_userio_lcd_displayCFimage("bar15.rgb"); |
---|
| 37 | |
---|
| 38 | if(status != 0) |
---|
| 39 | { |
---|
| 40 | xil_printf("Error!\r\n"); |
---|
| 41 | break; |
---|
| 42 | } |
---|
| 43 | } |
---|
| 44 | |
---|
| 45 | return 0; |
---|
| 46 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.