Il y avait des problèmes dans la libraire...
Fork of ST_I2S by
Diff: targets/TARGET_STM/stm_i2s_api.c
- Revision:
- 7:e9105ae127ad
- Parent:
- 5:74da3773bf43
- Child:
- 8:561d7ee70ef6
diff -r 74da3773bf43 -r e9105ae127ad targets/TARGET_STM/stm_i2s_api.c --- a/targets/TARGET_STM/stm_i2s_api.c Wed Dec 14 09:05:34 2016 +0100 +++ b/targets/TARGET_STM/stm_i2s_api.c Tue Dec 20 13:21:29 2016 +0100 @@ -142,14 +142,14 @@ case DMA_TX: if(*use_tx) { obj->dma.dma[DMA_TX] = stm_dma_channel_allocate(MAKE_CAP(obj->dma.dma_device, DMA_TX)); - MBED_ASSERT(obj->dma.dma[DMA_TX] != DMA_ERROR_OUT_OF_CHANNELS); + MBED_ASSERT(obj->dma.dma[DMA_TX] != STM_DMA_ERROR_OUT_OF_CHANNELS); } break; case DMA_RX: default: if(*use_rx) { obj->dma.dma[DMA_RX] = stm_dma_channel_allocate(MAKE_CAP(obj->dma.dma_device, DMA_RX)); - MBED_ASSERT(obj->dma.dma[DMA_RX] != DMA_ERROR_OUT_OF_CHANNELS); + MBED_ASSERT(obj->dma.dma[DMA_RX] != STM_DMA_ERROR_OUT_OF_CHANNELS); } break; } @@ -179,7 +179,7 @@ if(*use_rx) { obj->dma.dma[DMA_RX] = stm_dma_channel_allocate(MAKE_CAP(obj->dma.dma_device, DMA_RX)); secondary_handle = &DMaHandles[obj->i2s.module][DMA_RX]; - MBED_ASSERT(obj->dma.dma[DMA_RX] != DMA_ERROR_OUT_OF_CHANNELS); + MBED_ASSERT(obj->dma.dma[DMA_RX] != STM_DMA_ERROR_OUT_OF_CHANNELS); } break; case DMA_RX: @@ -187,7 +187,7 @@ if(*use_tx) { obj->dma.dma[DMA_TX] = stm_dma_channel_allocate(MAKE_CAP(obj->dma.dma_device, DMA_TX)); secondary_handle = &DMaHandles[obj->i2s.module][DMA_TX]; - MBED_ASSERT(obj->dma.dma[DMA_TX] != DMA_ERROR_OUT_OF_CHANNELS); + MBED_ASSERT(obj->dma.dma[DMA_TX] != STM_DMA_ERROR_OUT_OF_CHANNELS); } break; }