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 Ankers | 2740914 | 2006-10-10 19:02:49 +0000 | [diff] [blame] | 41 | volatile unsigned int* ptr; |
Daniel Stenberg | 0fc30d1 | 2006-08-01 22:28:14 +0000 | [diff] [blame] | 42 | int i; |
Daniel Stenberg | f2591d3 | 2006-08-03 09:19:32 +0000 | [diff] [blame] | 43 | |
Daniel Ankers | 2740914 | 2006-10-10 19:02:49 +0000 | [diff] [blame] | 44 | 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 Stenberg | 0fc30d1 | 2006-08-01 22:28:14 +0000 | [diff] [blame] | 64 | } |
| 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 | |
| 69 | void reset_poweroff_timer(void) |
| 70 | { |
| 71 | } |
| 72 | |
| 73 | int dbg_ports(void) |
| 74 | { |
| 75 | return 0; |
| 76 | } |
| 77 | |
| 78 | void mpeg_stop(void) |
| 79 | { |
| 80 | } |
| 81 | |
| 82 | void usb_acknowledge(void) |
| 83 | { |
| 84 | } |
| 85 | |
| 86 | void usb_wait_for_disconnect(void) |
| 87 | { |
| 88 | } |
| 89 | |
| 90 | void sys_poweroff(void) |
| 91 | { |
| 92 | } |
| 93 | |
| 94 | void system_reboot(void) |
| 95 | { |
| 96 | |
| 97 | } |