summaryrefslogtreecommitdiff
path: root/firmware/export
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/export')
-rw-r--r--firmware/export/config-iaudiox5.h7
-rw-r--r--firmware/export/fmradio_i2c.h4
-rw-r--r--firmware/export/i2c-coldfire.h10
-rw-r--r--firmware/export/sound.h2
-rw-r--r--firmware/export/tlv320.h3
5 files changed, 20 insertions, 6 deletions
diff --git a/firmware/export/config-iaudiox5.h b/firmware/export/config-iaudiox5.h
index d224b3b45e..cd77dc3c48 100644
--- a/firmware/export/config-iaudiox5.h
+++ b/firmware/export/config-iaudiox5.h
@@ -6,7 +6,7 @@
6#define MODEL_NUMBER 10 6#define MODEL_NUMBER 10
7 7
8/* define this if you have recording possibility */ 8/* define this if you have recording possibility */
9/*#define HAVE_RECORDING 1*/ 9#define HAVE_RECORDING 1
10 10
11/* define this if you have a bitmap LCD display */ 11/* define this if you have a bitmap LCD display */
12#define HAVE_LCD_BITMAP 1 12#define HAVE_LCD_BITMAP 1
@@ -53,6 +53,11 @@
53/* The number of bytes reserved for loadable plugins */ 53/* The number of bytes reserved for loadable plugins */
54#define PLUGIN_BUFFER_SIZE 0x80000 54#define PLUGIN_BUFFER_SIZE 0x80000
55 55
56/* FM Tuner */
57#define CONFIG_TUNER TEA5767
58#define CONFIG_TUNER_XTAL 32768
59
60
56#define BATTERY_CAPACITY_DEFAULT 950 /* default battery capacity */ 61#define BATTERY_CAPACITY_DEFAULT 950 /* default battery capacity */
57 62
58#ifndef SIMULATOR 63#ifndef SIMULATOR
diff --git a/firmware/export/fmradio_i2c.h b/firmware/export/fmradio_i2c.h
index b7007a80dd..6483594d04 100644
--- a/firmware/export/fmradio_i2c.h
+++ b/firmware/export/fmradio_i2c.h
@@ -20,7 +20,7 @@
20#ifndef FMRADIO_I2C_H 20#ifndef FMRADIO_I2C_H
21#define FMRADIO_I2C_H 21#define FMRADIO_I2C_H
22 22
23int fmradio_i2c_write(int address, const unsigned char* buf, int count); 23int fmradio_i2c_write(unsigned char address, const unsigned char* buf, int count);
24int fmradio_i2c_read(int address, unsigned char* buf, int count); 24int fmradio_i2c_read(unsigned char address, unsigned char* buf, int count);
25 25
26#endif 26#endif
diff --git a/firmware/export/i2c-coldfire.h b/firmware/export/i2c-coldfire.h
index d4a5781116..544a3169cf 100644
--- a/firmware/export/i2c-coldfire.h
+++ b/firmware/export/i2c-coldfire.h
@@ -26,10 +26,18 @@
26#ifndef _I2C_COLDFIRE_H 26#ifndef _I2C_COLDFIRE_H
27#define _I2C_COLDFIRE_H 27#define _I2C_COLDFIRE_H
28 28
29#include "cpu.h"
30
29void i2c_init(void); 31void i2c_init(void);
30int i2c_write(int device, unsigned char *buf, int count); 32int i2c_read (volatile unsigned char *iface, unsigned char addr,
33 unsigned char *buf, int count);
34int i2c_write(volatile unsigned char *iface, unsigned char addr,
35 const unsigned char *buf, int count);
31void i2c_close(void); 36void i2c_close(void);
37void i2c_adjust_prescale(int multiplier);
32 38
39#define I2C_IFACE_0 ((volatile unsigned char *)&MADR)
40#define I2C_IFACE_1 ((volatile unsigned char *)&MADR2)
33 41
34#define MAX_LOOP 0x100 /* TODO: select a better value */ 42#define MAX_LOOP 0x100 /* TODO: select a better value */
35 43
diff --git a/firmware/export/sound.h b/firmware/export/sound.h
index a49cb99263..33175e4166 100644
--- a/firmware/export/sound.h
+++ b/firmware/export/sound.h
@@ -36,7 +36,7 @@ enum {
36 SOUND_MDB_ENABLE, 36 SOUND_MDB_ENABLE,
37 SOUND_SUPERBASS, 37 SOUND_SUPERBASS,
38#endif 38#endif
39#if CONFIG_CODEC == MAS3587F || defined(HAVE_UDA1380) 39#if CONFIG_CODEC == MAS3587F || defined(HAVE_UDA1380) || defined(HAVE_TLV320)
40 SOUND_LEFT_GAIN, 40 SOUND_LEFT_GAIN,
41 SOUND_RIGHT_GAIN, 41 SOUND_RIGHT_GAIN,
42 SOUND_MIC_GAIN, 42 SOUND_MIC_GAIN,
diff --git a/firmware/export/tlv320.h b/firmware/export/tlv320.h
index 93a79780c0..45ebfee569 100644
--- a/firmware/export/tlv320.h
+++ b/firmware/export/tlv320.h
@@ -26,11 +26,12 @@ extern void tlv320_init(void);
26extern void tlv320_reset(void); 26extern void tlv320_reset(void);
27extern void tlv320_enable_output(bool enable); 27extern void tlv320_enable_output(bool enable);
28extern void tlv320_set_headphone_vol(int vol_l, int vol_r); 28extern void tlv320_set_headphone_vol(int vol_l, int vol_r);
29extern void tlv320_set_linein_vol(int vol_l, int vol_r); 29extern void tlv320_set_recvol(int left, int right, int type);
30extern void tlv320_mute(bool mute); 30extern void tlv320_mute(bool mute);
31extern void tlv320_close(void); 31extern void tlv320_close(void);
32extern void tlv320_enable_recording(bool source_mic); 32extern void tlv320_enable_recording(bool source_mic);
33extern void tlv320_disable_recording(void); 33extern void tlv320_disable_recording(void);
34extern void tlv320_set_monitor(bool enable);
34 35
35#define HEADPHONE_MUTE 0x30 /* 0110000 = -73db */ 36#define HEADPHONE_MUTE 0x30 /* 0110000 = -73db */
36 37