blob: 31716d4b255e762f9ef7060b468b55ef1de5d79a [file] [log] [blame]
Szymon Dziok0eae33c2014-03-27 23:31:04 +00001/***************************************************************************
2 * __________ __ ___.
3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
7 * \/ \/ \/ \/ \/
8 * $Id$
9 *
10 * Copyright (C) 2014 by Szymon Dziok
11 *
12 * This program is free software; you can redistribute it and/or
13 * modify it under the terms of the GNU General Public License
14 * as published by the Free Software Foundation; either version 2
15 * of the License, or (at your option) any later version.
16 *
17 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
18 * KIND, either express or implied.
19 *
20 ****************************************************************************/
21
22/*
23SANSA VIEW: TESTING CODE
24*/
25
26
27#include <stdlib.h>
28#include <stdio.h>
29#include <stdarg.h>
30#include <string.h>
31#include "config.h"
32#include "inttypes.h"
33#include "cpu.h"
34#include "system.h"
35#include "lcd.h"
Michael Sevakis4ea4cdf2014-08-08 02:28:11 -040036#include "../kernel-internal.h"
Szymon Dziok0eae33c2014-03-27 23:31:04 +000037#include "storage.h"
Szymon Dziok0eae33c2014-03-27 23:31:04 +000038#include "disk.h"
39#include "font.h"
40#include "backlight.h"
41#include "backlight-target.h"
42#include "button.h"
43#include "panic.h"
44#include "power.h"
45#include "file.h"
46#include "common.h"
47
48void main(void)
49{
50 system_init();
51 kernel_init();
52 disable_irq();
53
54 while(1)
55 {
Marcin Bukat89ba7e82015-01-09 00:22:40 +010056 backlight_hw_on();
57 buttonlight_hw_off();
Szymon Dziok0eae33c2014-03-27 23:31:04 +000058 sleep(HZ/4);
Marcin Bukat89ba7e82015-01-09 00:22:40 +010059 backlight_hw_off();
60 buttonlight_hw_on();
Szymon Dziok0eae33c2014-03-27 23:31:04 +000061 sleep(HZ/4);
62 }
63}