Il y avait des problèmes dans la libraire...
Fork of ST_I2S by
hal/stm_dma_api.h@7:e9105ae127ad, 2016-12-20 (annotated)
- Committer:
- Wolfgang Betz
- Date:
- Tue Dec 20 13:21:29 2016 +0100
- Revision:
- 7:e9105ae127ad
- Parent:
- 1:f90318e0923b
- Child:
- 9:c4c2240e06d6
Rename 'DMA_ERROR_OUT_OF_CHANNELS' in 'STM_DMA_ERROR_OUT_OF_CHANNELS' to avoid name clash with mbed-os 'dma_api.h'
Also removed "TRANSACTION_QUEUE_SIZE_I2S=2"
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
Wolfgang Betz |
1:f90318e0923b | 1 | #ifndef STM_DMA_API_H |
Wolfgang Betz |
1:f90318e0923b | 2 | #define STM_DMA_API_H |
Wolfgang Betz |
1:f90318e0923b | 3 | |
Wolfgang Betz |
1:f90318e0923b | 4 | #include <stdint.h> |
Wolfgang Betz |
1:f90318e0923b | 5 | |
Wolfgang Betz |
7:e9105ae127ad | 6 | #define STM_DMA_ERROR_OUT_OF_CHANNELS (NULL) |
Wolfgang Betz |
1:f90318e0923b | 7 | |
Wolfgang Betz |
1:f90318e0923b | 8 | typedef void* channelid_t; |
Wolfgang Betz |
1:f90318e0923b | 9 | |
Wolfgang Betz |
1:f90318e0923b | 10 | #ifdef __cplusplus |
Wolfgang Betz |
1:f90318e0923b | 11 | extern "C" { |
Wolfgang Betz |
1:f90318e0923b | 12 | #endif |
Wolfgang Betz |
1:f90318e0923b | 13 | |
Wolfgang Betz |
1:f90318e0923b | 14 | void stm_dma_init(void); |
Wolfgang Betz |
1:f90318e0923b | 15 | |
Wolfgang Betz |
1:f90318e0923b | 16 | channelid_t stm_dma_channel_allocate(uint32_t capabilities); |
Wolfgang Betz |
1:f90318e0923b | 17 | |
Wolfgang Betz |
1:f90318e0923b | 18 | void stm_dma_channel_free(channelid_t channelid); |
Wolfgang Betz |
1:f90318e0923b | 19 | |
Wolfgang Betz |
1:f90318e0923b | 20 | #ifdef __cplusplus |
Wolfgang Betz |
1:f90318e0923b | 21 | } |
Wolfgang Betz |
1:f90318e0923b | 22 | #endif |
Wolfgang Betz |
1:f90318e0923b | 23 | |
Wolfgang Betz |
1:f90318e0923b | 24 | #endif |
Wolfgang Betz |
1:f90318e0923b | 25 | |
Wolfgang Betz |
1:f90318e0923b | 26 | /** @}*/ |