aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal/include
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2014-03-03 13:19:56 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2014-03-03 13:19:56 +0000
commit8c4653a41374ecac0b50b874e1e0203de8d28487 (patch)
tree31491a221b6bffa13c805666e637f184afeb32c3 /os/hal/include
parent5599a0f0c36b23f3428c0d53df52d62c09284cfb (diff)
downloadChibiOS-8c4653a41374ecac0b50b874e1e0203de8d28487.tar.gz
ChibiOS-8c4653a41374ecac0b50b874e1e0203de8d28487.tar.bz2
ChibiOS-8c4653a41374ecac0b50b874e1e0203de8d28487.zip
I2S driver (over SPIv1) finished but untested.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/branches/kernel_3_dev@6748 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/hal/include')
-rw-r--r--os/hal/include/i2s.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/os/hal/include/i2s.h b/os/hal/include/i2s.h
index afd605b26..c7143daec 100644
--- a/os/hal/include/i2s.h
+++ b/os/hal/include/i2s.h
@@ -118,9 +118,9 @@ typedef enum {
*
* @notapi
*/
-#define _i2S_isr_half_code(i2sp) { \
- if ((i2sp)->end_cb != NULL) { \
- (i2sp)->end_cb(i2sp, 0, (i2sp)->config->depth / 2); \
+#define _i2s_isr_half_code(i2sp) { \
+ if ((i2sp)->config->end_cb != NULL) { \
+ (i2sp)->config->end_cb(i2sp, 0, (i2sp)->config->size / 2); \
} \
}
@@ -137,7 +137,7 @@ typedef enum {
*
* @notapi
*/
-#define _i2s_isr_code(i2sp) { \
+#define _i2s_isr_full_code(i2sp) { \
if ((i2sp)->config->end_cb) { \
(i2sp)->state = I2S_COMPLETE; \
(i2sp)->config->end_cb(i2sp, \