astyle src/drivers/stm32

This commit is contained in:
Daniel Agar
2017-01-28 16:24:34 -05:00
committed by Lorenz Meier
parent 1261f985d8
commit adbe38e86b
3 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -99,7 +99,7 @@ static struct channel_handler_entry {
static void input_capture_chan_handler(void *context, const io_timers_t *timer, uint32_t chan_index,
const timer_io_channels_t *chan,
hrt_abstime isrs_time , uint16_t isrs_rcnt)
hrt_abstime isrs_time, uint16_t isrs_rcnt)
{
uint16_t capture = _REG32(timer, chan->ccr_offset);
channel_stats[chan_index].last_edge = px4_arch_gpioread(chan->gpio_in);
+2 -2
View File
@@ -106,7 +106,7 @@
#define CCMR_C1_PWMIN_INIT 0 // TBD
// NotUsed PWMOut PWMIn Capture
io_timer_channel_allocation_t channel_allocations[IOTimerChanModeSize] = { UINT8_MAX, 0 , 0 , 0 };
io_timer_channel_allocation_t channel_allocations[IOTimerChanModeSize] = { UINT8_MAX, 0, 0, 0 };
typedef uint8_t io_timer_allocation_t; /* big enough to hold MAX_IO_TIMERS */
@@ -162,7 +162,7 @@ static int io_timer_handler(uint16_t timer_index)
if (channel_handlers[chan_index].callback) {
channel_handlers[chan_index].callback(channel_handlers[chan_index].context, tmr,
chan_index, &timer_io_channels[chan_index],
now , count);
now, count);
}
}
+1 -1
View File
@@ -88,7 +88,7 @@ typedef struct timer_io_channels_t {
typedef void (*channel_handler_t)(void *context, const io_timers_t *timer, uint32_t chan_index,
const timer_io_channels_t *chan,
hrt_abstime isrs_time , uint16_t isrs_rcnt);
hrt_abstime isrs_time, uint16_t isrs_rcnt);
/* supplied by board-specific code */