Hopefully update the keywords. Thanks bluebrother.
[Rockbox.git] / firmware / target / arm / tcc77x / c100 / power-c100.c
blobdf2ee10d6b9b2d521916f7e38b2a18bae1ff9089
1 /***************************************************************************
2 * __________ __ ___.
3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
7 * \/ \/ \/ \/ \/
8 * $Id$
10 * Copyright (C) 2007 Dave Chapman
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.
15 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
16 * KIND, either express or implied.
18 ****************************************************************************/
19 #include "config.h"
20 #include "cpu.h"
21 #include <stdbool.h>
22 #include "kernel.h"
23 #include "system.h"
24 #include "power.h"
26 #ifndef SIMULATOR
28 void power_init(void)
32 void ide_power_enable(bool on)
36 bool ide_powered(void)
38 return true;
41 void power_off(void)
45 #else /* SIMULATOR */
47 bool charger_inserted(void)
49 return false;
52 void charger_enable(bool on)
54 (void)on;
57 void power_off(void)
61 void ide_power_enable(bool on)
63 (void)on;
66 #endif /* SIMULATOR */