From: lottaviano <lottaviano@38d2e660-2303-0410-9eaa-f027e97ec537>
Date: Mon, 6 Jul 2009 16:57:44 +0000 (+0000)
Subject: Fix compilation issues on I2S module.
X-Git-Tag: 2.2.0~223
X-Git-Url: https://codewiz.org/gitweb?a=commitdiff_plain;h=4b44dce76b22ee82adce289246abd6985d8d5259;p=bertos.git

Fix compilation issues on I2S module.

git-svn-id: https://src.develer.com/svnoss/bertos/trunk@2745 38d2e660-2303-0410-9eaa-f027e97ec537
---

diff --git a/bertos/cpu/arm/drv/i2s_at91.c b/bertos/cpu/arm/drv/i2s_at91.c
index bdcd9852..edb8ba04 100644
--- a/bertos/cpu/arm/drv/i2s_at91.c
+++ b/bertos/cpu/arm/drv/i2s_at91.c
@@ -35,7 +35,7 @@
  * \author Luca Ottaviano <lottaviano@develer.com>
  */
 
-#include "i2s.h"
+#include "i2s_at91.h"
 
 #include <drv/timer.h>
 #include <cfg/log.h>
@@ -133,7 +133,6 @@ bool i2s_start(void)
 	return true;
 }
 
-#define CONFIG_SAMPLE_FREQ 44100
 #define BITS_PER_CHANNEL 16
 #define N_OF_CHANNEL 2
 // TODO: check the computed value?
diff --git a/bertos/cpu/arm/drv/i2s_at91.h b/bertos/cpu/arm/drv/i2s_at91.h
index 2623702c..abdbdc28 100644
--- a/bertos/cpu/arm/drv/i2s_at91.h
+++ b/bertos/cpu/arm/drv/i2s_at91.h
@@ -57,7 +57,7 @@
  *
  * $WIZ$ module_name = "i2s"
  * $WIZ$ module_configuration = "bertos/cfg/cfg_i2s.h"
- * $WIZ$ module_supports = "not atmega103 and not atmega168 and not atmega8"
+ * $WIZ$ module_supports = "at91"
  */
 
 #ifndef I2S_H