Added macro for memory pointer 1.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@14691 27425a3e-05d8-49a3-a47f-9c15f0e5edd8
This commit is contained in:
parent
55252838ab
commit
75ef9ddb35
|
@ -268,14 +268,39 @@ typedef struct {
|
||||||
* @post After use the stream can be released using @p bdmaStreamRelease().
|
* @post After use the stream can be released using @p bdmaStreamRelease().
|
||||||
*
|
*
|
||||||
* @param[in] stp pointer to an @p stm32_bdma_stream_t structure
|
* @param[in] stp pointer to an @p stm32_bdma_stream_t structure
|
||||||
* @param[in] addr value to be written in the CMAR register
|
* @param[in] addr value to be written in the CM0AR register
|
||||||
*
|
*
|
||||||
* @special
|
* @special
|
||||||
*/
|
*/
|
||||||
#define bdmaStreamSetMemory(stp, addr) { \
|
#define bdmaStreamSetMemory0(stp, addr) { \
|
||||||
(stp)->channel->CM0AR = (uint32_t)(addr); \
|
(stp)->channel->CM0AR = (uint32_t)(addr); \
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Associates a memory destination to a BDMA stream.
|
||||||
|
* @note This function can be invoked in both ISR or thread context.
|
||||||
|
* @pre The stream must have been allocated using @p bdmaStreamAllocate().
|
||||||
|
* @post After use the stream can be released using @p bdmaStreamRelease().
|
||||||
|
*
|
||||||
|
* @param[in] stp pointer to an @p stm32_bdma_stream_t structure
|
||||||
|
* @param[in] addr value to be written in the CM1AR register
|
||||||
|
*
|
||||||
|
* @special
|
||||||
|
*/
|
||||||
|
#define bdmaStreamSetMemory1(stp, addr) { \
|
||||||
|
(stp)->channel->CM1AR = (uint32_t)(addr); \
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Alias of @p bdmaStreamSetMemory0() for compatibility.
|
||||||
|
*
|
||||||
|
* @param[in] stp pointer to an @p stm32_bdma_stream_t structure
|
||||||
|
* @param[in] addr value to be written in the CM0AR register
|
||||||
|
*
|
||||||
|
* @special
|
||||||
|
*/
|
||||||
|
#define bdmaStreamSetMemory(stp, addr) bdmaStreamSetMemory0(stp, addr)
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Sets the number of transfers to be performed.
|
* @brief Sets the number of transfers to be performed.
|
||||||
* @note This function can be invoked in both ISR or thread context.
|
* @note This function can be invoked in both ISR or thread context.
|
||||||
|
|
Loading…
Reference in New Issue