1 /***************************************************************************
3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
10 * Copyright (C) 2007 by Dave Chapman
12 * Based on Rockbox iriver bootloader by Linus Nielsen Feltzing
14 * All files in this archive are subject to the GNU General Public License.
15 * See the file COPYING in the source tree root for full license agreement.
17 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
18 * KIND, either express or implied.
20 ****************************************************************************/
36 #include "adc-target.h"
37 #include "backlight-target.h"
43 char version
[] = APPSVERSION
;
49 unsigned short button
;
61 printf("Hello World!");
64 printf("GPIOA: 0x%08x",gpioa
);
66 button
= adc_read(ADC_BUTTONS
);
67 printf("ADC[0]: 0x%04x",button
);
73 /* These functions are present in the firmware library, but we reimplement
74 them here because the originals do a lot more than we want */
75 void usb_acknowledge(void)
79 void usb_wait_for_disconnect(void)