blob: 91217f5c70cfbb2dd02a126d3c7a697c63721d8c [file] [log] [blame]
Daniel Stenberg0fc30d12006-08-01 22:28:14 +00001/***************************************************************************
2 * __________ __ ___.
3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
7 * \/ \/ \/ \/ \/
8 * $Id$
9 *
Daniel Stenbergf2591d32006-08-03 09:19:32 +000010 * Copyright (C) 2006 Daniel Stenberg
Daniel Stenberg0fc30d12006-08-01 22:28:14 +000011 *
Daniel Stenberg0fc30d12006-08-01 22:28:14 +000012 * All files in this archive are subject to the GNU General Public License.
13 * See the file COPYING in the source tree root for full license agreement.
14 *
15 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
16 * KIND, either express or implied.
17 *
18 ****************************************************************************/
19#include "config.h"
20
21#include <stdlib.h>
22#include <stdio.h>
23#include <string.h>
24#include "cpu.h"
25#include "system.h"
26#include "lcd.h"
27#include "kernel.h"
28#include "thread.h"
29#include "ata.h"
30#include "fat.h"
31#include "disk.h"
32#include "font.h"
33#include "adc.h"
34#include "backlight.h"
35#include "panic.h"
36#include "power.h"
37#include "file.h"
38
Daniel Stenberg57470492006-08-02 09:47:17 +000039void main(void)
Daniel Stenberg0fc30d12006-08-01 22:28:14 +000040{
Daniel Ankers27409142006-10-10 19:02:49 +000041 volatile unsigned int* ptr;
Daniel Stenberg0fc30d12006-08-01 22:28:14 +000042 int i;
Daniel Stenbergf2591d32006-08-03 09:19:32 +000043
Daniel Ankers27409142006-10-10 19:02:49 +000044 while(1)
45 {
46 // blink wheel backlight
47 ptr = (volatile unsigned int*)0x70000020;
48 if((*ptr) & (1 << 13))
49 {
50 *ptr = (*ptr) & ~(1 << 13);
51
52 }
53 else
54 {
55 *ptr = (*ptr) | (1 << 13);
56 }
57
58 // wait a while
59 for(i = 0; i < 0xfffff; i++)
60 {
61 }
62
63 }
Daniel Stenberg0fc30d12006-08-01 22:28:14 +000064}
65
66/* These functions are present in the firmware library, but we reimplement
67 them here because the originals do a lot more than we want */
68
69void reset_poweroff_timer(void)
70{
71}
72
73int dbg_ports(void)
74{
75 return 0;
76}
77
78void mpeg_stop(void)
79{
80}
81
82void usb_acknowledge(void)
83{
84}
85
86void usb_wait_for_disconnect(void)
87{
88}
89
90void sys_poweroff(void)
91{
92}
93
94void system_reboot(void)
95{
96
97}