Michael Sevakis | 2541302 | 2008-03-31 04:53:03 +0000 | [diff] [blame] | 1 | /*************************************************************************** |
| 2 | * __________ __ ___. |
| 3 | * Open \______ \ ____ ____ | | _\_ |__ _______ ___ |
| 4 | * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ / |
| 5 | * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < < |
| 6 | * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \ |
| 7 | * \/ \/ \/ \/ \/ |
| 8 | * $Id$ |
| 9 | * |
| 10 | * Copyright (C) 2007 by Greg White |
| 11 | * |
Daniel Stenberg | 2acc0ac | 2008-06-28 18:10:04 +0000 | [diff] [blame^] | 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. |
Michael Sevakis | 2541302 | 2008-03-31 04:53:03 +0000 | [diff] [blame] | 16 | * |
| 17 | * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY |
| 18 | * KIND, either express or implied. |
| 19 | * |
| 20 | ****************************************************************************/ |
Marcoen Hirschberg | bce255d | 2006-11-05 07:54:08 +0000 | [diff] [blame] | 21 | #include "config.h" |
| 22 | #include "cpu.h" |
| 23 | #include <stdbool.h> |
| 24 | #include "kernel.h" |
| 25 | #include "system.h" |
Marcoen Hirschberg | bce255d | 2006-11-05 07:54:08 +0000 | [diff] [blame] | 26 | #include "logf.h" |
| 27 | #include "debug.h" |
| 28 | #include "string.h" |
| 29 | |
| 30 | #define SC606_REG_A 0 |
| 31 | #define SC606_REG_B 1 |
| 32 | #define SC606_REG_C 2 |
| 33 | #define SC606_REG_CONF 3 |
| 34 | |
Steve Gotthardt | c07814f | 2007-01-07 06:38:57 +0000 | [diff] [blame] | 35 | #define SC606_LED_A1 (1 << 0) |
| 36 | #define SC606_LED_A2 (1 << 1) |
| 37 | #define SC606_LED_B1 (1 << 2) |
| 38 | #define SC606_LED_B2 (1 << 3) |
| 39 | #define SC606_LED_C1 (1 << 4) |
| 40 | #define SC606_LED_C2 (1 << 5) |
Marcoen Hirschberg | bce255d | 2006-11-05 07:54:08 +0000 | [diff] [blame] | 41 | |
Steve Gotthardt | c07814f | 2007-01-07 06:38:57 +0000 | [diff] [blame] | 42 | #define SC606_LOW_FREQ (1 << 6) |
Marcoen Hirschberg | bce255d | 2006-11-05 07:54:08 +0000 | [diff] [blame] | 43 | |
| 44 | int sc606_write(unsigned char reg, unsigned char data); |
| 45 | |
| 46 | int sc606_read(unsigned char reg, unsigned char* data); |
| 47 | |
| 48 | void sc606_init(void); |