Il y avait des problèmes dans la libraire...

Dependents:   X_NUCLEO_CCA02M1

Fork of ST_I2S by ST

Revision:
19:ef6ef1795e30
Parent:
17:7a4a4631672c
Child:
22:e04af8667cad
--- a/drivers/I2S.h	Fri Jan 27 08:25:10 2017 +0100
+++ b/drivers/I2S.h	Fri Jan 27 08:35:23 2017 +0100
@@ -23,8 +23,6 @@
  * 16 data bits & 16 bits per frame, clock polarity 0, 
  * protocol PHILIPS, and a clock frequency of 44.1kHz
  *
- * TODO: "direct" PDM support
- *
  * Most I2S devices will also require Reset signals. These
  * can be controlled using <DigitalOut> pins
  *
@@ -77,7 +75,7 @@
      *  @param protocol I2S protocol to be used
      *  @return Zero if the usage was set, -1 if a transaction is on-going
      */
-    int set_protocol(i2s_bitorder_t protocol);
+    int protocol(i2s_bitorder_t protocol);
 
     /** Set the i2s mode
      *
@@ -85,7 +83,7 @@
      *  @param circular I2S should read/write buffers continuously (in circular mode)
      *  @return Zero if the usage was set, -1 if a transaction is on-going
      */
-    int set_mode(i2s_mode_t mode, bool circular);
+    int mode(i2s_mode_t mode, bool circular);
 
     /** Start non-blocking I2S transfer as configured with above methods
      *
@@ -231,7 +229,7 @@
 
 public:
     virtual ~I2S() {
-	/* betzw - TODO: cleanup has still to be revised completely! */
+	/* TODO: cleanup has still to be revised completely! */
 	abort_all_transfers();
 	i2s_free(&_i2s);
     }