From b3af469e80276e02fddac676be627b685872b91b Mon Sep 17 00:00:00 2001 From: David Sidrane Date: Mon, 25 Jan 2016 18:11:46 -1000 Subject: [PATCH] IO Timer Changes for Capture --- src/drivers/stm32/drv_io_timer.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/drivers/stm32/drv_io_timer.c b/src/drivers/stm32/drv_io_timer.c index b9968b274f..d4801074fb 100644 --- a/src/drivers/stm32/drv_io_timer.c +++ b/src/drivers/stm32/drv_io_timer.c @@ -332,7 +332,7 @@ static inline int allocate_channel_resource(unsigned channel, io_timer_channel_m static inline int free_channel_resource(unsigned channel) { - int mode = get_channel_mode(channel); + int mode = io_timer_get_channel_mode(channel); if (mode > IOTimerChanMode_NotUsed) { io_timer_channel_allocation_t bit = 1 << channel; @@ -349,7 +349,7 @@ int io_timer_free_channel(unsigned channel) return -EINVAL; } - int mode = get_channel_mode(channel); + int mode = io_timer_get_channel_mode(channel); if (mode > IOTimerChanMode_NotUsed) { io_timer_set_enable(false, mode, 1 << channel); @@ -685,7 +685,7 @@ int io_timer_set_ccr(unsigned channel, uint16_t value) int rv = io_timer_validate_channel_index(channel); if (rv == 0) { - if (get_channel_mode(channel) != IOTimerChanMode_PWMOut) { + if (io_timer_get_channel_mode(channel) != IOTimerChanMode_PWMOut) { rv = -EIO; @@ -709,7 +709,7 @@ uint16_t io_channel_get_ccr(unsigned channel) uint16_t value = 0; if (io_timer_validate_channel_index(channel) == 0 && - get_channel_mode(channel) == IOTimerChanMode_PWMOut) { + io_timer_get_channel_mode(channel) == IOTimerChanMode_PWMOut) { value = REG(channels_timer(channel), timer_io_channels[channel].ccr_offset) + 1; }