Daniel Stenberg | 0fc30d1 | 2006-08-01 22:28:14 +0000 | [diff] [blame] | 1 | /*************************************************************************** |
| 2 | * __________ __ ___. |
| 3 | * Open \______ \ ____ ____ | | _\_ |__ _______ ___ |
| 4 | * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ / |
| 5 | * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < < |
| 6 | * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \ |
| 7 | * \/ \/ \/ \/ \/ |
| 8 | * $Id$ |
| 9 | * |
Daniel Stenberg | f2591d3 | 2006-08-03 09:19:32 +0000 | [diff] [blame] | 10 | * Copyright (C) 2006 Daniel Stenberg |
Daniel Stenberg | 0fc30d1 | 2006-08-01 22:28:14 +0000 | [diff] [blame] | 11 | * |
Daniel Stenberg | 0fc30d1 | 2006-08-01 22:28:14 +0000 | [diff] [blame] | 12 | * 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 Stenberg | 5747049 | 2006-08-02 09:47:17 +0000 | [diff] [blame] | 39 | void main(void) |
Daniel Stenberg | 0fc30d1 | 2006-08-01 22:28:14 +0000 | [diff] [blame] | 40 | { |
Daniel Stenberg | 0fc30d1 | 2006-08-01 22:28:14 +0000 | [diff] [blame] | 41 | int i; |
Daniel Stenberg | f2591d3 | 2006-08-03 09:19:32 +0000 | [diff] [blame] | 42 | |
| 43 | volatile unsigned short *ptr = (unsigned short *)0x14700000; |
| 44 | |
| 45 | for(i=0; i< 10000; i++) |
| 46 | *ptr++=i; |
| 47 | while(1); |
Daniel Stenberg | 0fc30d1 | 2006-08-01 22:28:14 +0000 | [diff] [blame] | 48 | } |
| 49 | |
| 50 | /* These functions are present in the firmware library, but we reimplement |
| 51 | them here because the originals do a lot more than we want */ |
| 52 | |
| 53 | void reset_poweroff_timer(void) |
| 54 | { |
| 55 | } |
| 56 | |
| 57 | int dbg_ports(void) |
| 58 | { |
| 59 | return 0; |
| 60 | } |
| 61 | |
| 62 | void mpeg_stop(void) |
| 63 | { |
| 64 | } |
| 65 | |
| 66 | void usb_acknowledge(void) |
| 67 | { |
| 68 | } |
| 69 | |
| 70 | void usb_wait_for_disconnect(void) |
| 71 | { |
| 72 | } |
| 73 | |
| 74 | void sys_poweroff(void) |
| 75 | { |
| 76 | } |
| 77 | |
| 78 | void system_reboot(void) |
| 79 | { |
| 80 | |
| 81 | } |