From 348b1390f02cbb66e68c140d1d1d3f887355a306 Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Tue, 12 Aug 2014 19:34:55 +0200 Subject: New I2S and DMA files (dummy). --- firmware/drivers/i2s.h | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 firmware/drivers/i2s.h (limited to 'firmware/drivers/i2s.h') 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 +*****************************************************************************/ -- cgit v1.2.3