blob: df7a654b365d1b55b97f8bff86651f70a0415a9d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
#include "config.h"
#include "cpu.h"
#include <stdbool.h>
#include "kernel.h"
#include "system.h"
#include "hwcompat.h"
#include "logf.h"
#include "debug.h"
#include "string.h"
#define SC606_REG_A 0
#define SC606_REG_B 1
#define SC606_REG_C 2
#define SC606_REG_CONF 3
#define SC606_LED_A1 (1 << 0)
#define SC606_LED_A2 (1 << 1)
#define SC606_LED_B1 (1 << 2)
#define SC606_LED_B2 (1 << 3)
#define SC606_LED_C1 (1 << 4)
#define SC606_LED_C2 (1 << 5)
#define SC606_LOW_FREQ (1 << 6)
int sc606_write(unsigned char reg, unsigned char data);
int sc606_read(unsigned char reg, unsigned char* data);
void sc606_init(void);
|