mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-28 06:23:33 +08:00
fmu-v5: fix timer config
This commit is contained in:
committed by
David Sidrane
parent
a00441ecf4
commit
ada48571d7
@@ -232,6 +232,12 @@ int io_timer_handler3(int irq, void *context)
|
||||
|
||||
}
|
||||
|
||||
int io_timer_handler4(int irq, void *context)
|
||||
{
|
||||
return io_timer_handler(4);
|
||||
|
||||
}
|
||||
|
||||
static inline int validate_timer_index(unsigned timer)
|
||||
{
|
||||
return (timer < MAX_IO_TIMERS && io_timers[timer].base != 0) ? 0 : -EINVAL;
|
||||
|
||||
@@ -45,7 +45,7 @@
|
||||
#pragma once
|
||||
__BEGIN_DECLS
|
||||
/* configuration limits */
|
||||
#define MAX_IO_TIMERS 4
|
||||
#define MAX_IO_TIMERS 5
|
||||
#define MAX_TIMER_IO_CHANNELS 8
|
||||
|
||||
#define MAX_LED_TIMERS 2
|
||||
@@ -112,6 +112,7 @@ __EXPORT int io_timer_handler0(int irq, void *context);
|
||||
__EXPORT int io_timer_handler1(int irq, void *context);
|
||||
__EXPORT int io_timer_handler2(int irq, void *context);
|
||||
__EXPORT int io_timer_handler3(int irq, void *context);
|
||||
__EXPORT int io_timer_handler4(int irq, void *context);
|
||||
|
||||
__EXPORT int io_timer_channel_init(unsigned channel, io_timer_channel_mode_t mode,
|
||||
channel_handler_t channel_handler, void *context);
|
||||
|
||||
Reference in New Issue
Block a user