STM32. GPT. Removed prefix "stm32" from names of functions changing interval.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@5518 35acf78f-673a-0410-8e92-d51de3d6d3f4master
parent
a782151cc5
commit
042c2ddba8
|
@ -89,7 +89,7 @@ typedef void (*gptcallback_t)(GPTDriver *gptp);
|
|||
*
|
||||
* @iclass
|
||||
*/
|
||||
#define stm32_gptChangeIntervalI(gptp, interval) { \
|
||||
#define gptChangeIntervalI(gptp, interval) { \
|
||||
gpt_lld_change_interval(gptp, interval); \
|
||||
}
|
||||
|
||||
|
@ -106,7 +106,7 @@ extern "C" {
|
|||
void gptStop(GPTDriver *gptp);
|
||||
void gptStartContinuous(GPTDriver *gptp, gptcnt_t interval);
|
||||
void gptStartContinuousI(GPTDriver *gptp, gptcnt_t interval);
|
||||
void stm32_gptChangeInterval(GPTDriver *gptp, gptcnt_t interval);
|
||||
void gptChangeInterval(GPTDriver *gptp, gptcnt_t interval);
|
||||
void gptStartOneShot(GPTDriver *gptp, gptcnt_t interval);
|
||||
void gptStartOneShotI(GPTDriver *gptp, gptcnt_t interval);
|
||||
void gptStopTimer(GPTDriver *gptp);
|
||||
|
|
|
@ -129,14 +129,14 @@ void gptStop(GPTDriver *gptp) {
|
|||
*
|
||||
* @api
|
||||
*/
|
||||
void stm32_gptChangeInterval(GPTDriver *gptp, gptcnt_t interval) {
|
||||
void gptChangeInterval(GPTDriver *gptp, gptcnt_t interval) {
|
||||
|
||||
chDbgCheck(gptp != NULL, "gptChangeInterval");
|
||||
|
||||
chSysLock();
|
||||
chDbgAssert(gptp->state == GPT_CONTINUOUS,
|
||||
"gptChangeInterval(), #1", "invalid state");
|
||||
stm32_gptChangeIntervalI(gptp, interval);
|
||||
gptChangeIntervalI(gptp, interval);
|
||||
chSysUnlock();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue