summaryrefslogtreecommitdiff
path: root/firmware/drivers/i2s.h
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/drivers/i2s.h')
-rw-r--r--firmware/drivers/i2s.h41
1 files changed, 41 insertions, 0 deletions
diff --git a/firmware/drivers/i2s.h b/firmware/drivers/i2s.h
new file mode 100644
index 0000000..dbbb6f2
--- /dev/null
+++ b/firmware/drivers/i2s.h
@@ -0,0 +1,41 @@
+/****************************************************************************
+ * $Id:: i2s.h 5797 2010-12-03 00:27:00Z usb00423 $
+ * Project: NXP LPC17xx I2S example
+ *
+ * Description:
+ * This file contains I2S code header definition.
+ *
+ ****************************************************************************
+ * Software that is described herein is for illustrative purposes only
+ * which provides customers with programming information regarding the
+ * products. This software is supplied "AS IS" without any warranties.
+ * NXP Semiconductors assumes no responsibility or liability for the
+ * use of the software, conveys no license or title under any patent,
+ * copyright, or mask work right to the product. NXP Semiconductors
+ * reserves the right to make changes in the software without
+ * notification. NXP Semiconductors also make no representation or
+ * warranty that such application will be suitable for the specified
+ * use without further testing or modification.
+****************************************************************************/
+#ifndef __I2S_H
+#define __I2S_H
+
+//#include "../src/sample.h"
+
+#define I2S_DMA_ENABLED 1
+
+#define BUFSIZE 0x200
+//(1097 * sizeof(short) * 2)/*stereo*/
+//((int)(sizeof(samples) * 2/*stereo*/))
+#define RXFIFO_EMPTY 0
+#define TXFIFO_FULL 8
+
+extern void I2S_IRQHandler( void );
+extern void I2SStart( void );
+extern void I2SStop( void );
+extern void I2SInit( void );
+
+#endif /* end __I2S_H */
+/****************************************************************************
+** End Of File
+*****************************************************************************/