summaryrefslogtreecommitdiff
path: root/firmware/target/arm/s3c2440/gigabeat-fx/sc606-meg-fx.h
diff options
context:
space:
mode:
authorMarcoen Hirschberg <marcoen@gmail.com>2007-04-18 12:22:27 +0000
committerMarcoen Hirschberg <marcoen@gmail.com>2007-04-18 12:22:27 +0000
commitf44f961812c059b69df19ac5bd828986ba10513f (patch)
tree9b19de69126ed041992f31a7c690db841a36af6f /firmware/target/arm/s3c2440/gigabeat-fx/sc606-meg-fx.h
parentc3dcc87aa494934943769b70fd752af1271d196a (diff)
downloadrockbox-f44f961812c059b69df19ac5bd828986ba10513f.tar.gz
rockbox-f44f961812c059b69df19ac5bd828986ba10513f.zip
move the Gigabeat from gigabeat/meg-fx to s3c2440/gigabeat-fx to avoid problems with possible ports in the future: Gigabeat S/V (i.mx31 based) and Kenwood HD20GA7/HD20GA9 (s3c2440 based)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13200 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/target/arm/s3c2440/gigabeat-fx/sc606-meg-fx.h')
-rw-r--r--firmware/target/arm/s3c2440/gigabeat-fx/sc606-meg-fx.h28
1 files changed, 28 insertions, 0 deletions
diff --git a/firmware/target/arm/s3c2440/gigabeat-fx/sc606-meg-fx.h b/firmware/target/arm/s3c2440/gigabeat-fx/sc606-meg-fx.h
new file mode 100644
index 0000000000..3ea0917e86
--- /dev/null
+++ b/firmware/target/arm/s3c2440/gigabeat-fx/sc606-meg-fx.h
@@ -0,0 +1,28 @@
1#include "config.h"
2#include "cpu.h"
3#include <stdbool.h>
4#include "kernel.h"
5#include "system.h"
6#include "logf.h"
7#include "debug.h"
8#include "string.h"
9
10#define SC606_REG_A 0
11#define SC606_REG_B 1
12#define SC606_REG_C 2
13#define SC606_REG_CONF 3
14
15#define SC606_LED_A1 (1 << 0)
16#define SC606_LED_A2 (1 << 1)
17#define SC606_LED_B1 (1 << 2)
18#define SC606_LED_B2 (1 << 3)
19#define SC606_LED_C1 (1 << 4)
20#define SC606_LED_C2 (1 << 5)
21
22#define SC606_LOW_FREQ (1 << 6)
23
24int sc606_write(unsigned char reg, unsigned char data);
25
26int sc606_read(unsigned char reg, unsigned char* data);
27
28void sc606_init(void);