git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@14191 27425a3e-05d8-49a3-a47f-9c15f0e5edd8

This commit is contained in:
Giovanni Di Sirio 2021-04-15 13:19:25 +00:00
parent ecd271056a
commit 726aa34df0
2 changed files with 11 additions and 11 deletions

View File

@ -78,7 +78,7 @@ void dmaInit(void) {
*
* @iclass
*/
const rp_dma_channel_t *dmaStreamAllocI(uint32_t id,
const rp_dma_channel_t *dmaChannelAllocI(uint32_t id,
rp_dmaisr_t func,
void *param) {
}
@ -100,7 +100,7 @@ const rp_dma_channel_t *dmaStreamAllocI(uint32_t id,
*
* @api
*/
const rp_dma_channel_t *dmaStreamAlloc(uint32_t id,
const rp_dma_channel_t *dmaChannelAlloc(uint32_t id,
uint32_t priority,
rp_dmaisr_t func,
void *param) {
@ -113,7 +113,7 @@ const rp_dma_channel_t *dmaStreamAlloc(uint32_t id,
*
* @iclass
*/
void dmaStreamFreeI(const rp_dma_channel_t *dmachp) {
void dmaChannelFreeI(const rp_dma_channel_t *dmachp) {
}
/**
@ -123,7 +123,7 @@ void dmaStreamFreeI(const rp_dma_channel_t *dmachp) {
*
* @api
*/
void dmaStreamFree(const rp_dma_channel_t *dmachp) {
void dmaChannelFree(const rp_dma_channel_t *dmachp) {
}
/**

View File

@ -46,7 +46,7 @@
((id) <= (RP_DMA_CHANNELS + 1U)))
/**
* @name Special stream identifiers
* @name Special channel identifiers
* @{
*/
#define RP_DMA_STREAM_ID_ANY RP_DMA_CHANNELS
@ -74,7 +74,7 @@
typedef void (*rp_dmaisr_t)(void *p, uint32_t flags);
/**
* @brief RP DMA stream descriptor structure.
* @brief RP DMA channel descriptor structure.
*/
typedef struct {
DMA_TypeDef *dma; /**< @brief Associated DMA. */
@ -95,21 +95,21 @@ typedef struct {
/*===========================================================================*/
#if !defined(__DOXYGEN__)
extern const stm32_dma_stream_t _stm32_dma_streams[STM32_DMA_STREAMS];
extern const rp_dma_channel_t __rp_dma_channels[RP_DMA_CHANNELS];
#endif
#ifdef __cplusplus
extern "C" {
#endif
void dmaInit(void);
const rp_dma_channel_t *dmaStreamAllocI(uint32_t id,
const rp_dma_channel_t *dmaChannelAllocI(uint32_t id,
rp_dmaisr_t func,
void *param);
const rp_dma_channel_t *dmaStreamAlloc(uint32_t id,
const rp_dma_channel_t *dmaChannelAlloc(uint32_t id,
rp_dmaisr_t func,
void *param);
void dmaStreamFreeI(const rp_dma_channel_t *dmachp);
void dmaStreamFree(const rp_dma_channel_t *dmachp);
void dmaChannelFreeI(const rp_dma_channel_t *dmachp);
void dmaChannelFree(const rp_dma_channel_t *dmachp);
void dmaServeInterrupt(const rp_dma_channel_t *dmachp);
#ifdef __cplusplus
}