arch/arm/samv7: fix typos in quadrature encoder and timer drivers
The typo s/.timid/.tcid prevents to compile NuttX with quadrature encoder configured for timer1 (CONFIG_SAMV7_TC1_QE) and s/SAM_TC789_BASE/SAM_TC678_BASE prevented use of the of the timer 2. Signed-off-by: Pavel Pisa <ppisa@pikron.com>
This commit is contained in:
parent
e5ee8f7470
commit
b9472129c8
@ -118,7 +118,7 @@ static struct sam_lowerhalf_s g_tc0lower =
|
|||||||
static struct sam_lowerhalf_s g_tc1lower =
|
static struct sam_lowerhalf_s g_tc1lower =
|
||||||
{
|
{
|
||||||
.ops = &g_qecallbacks,
|
.ops = &g_qecallbacks,
|
||||||
.timid = 1,
|
.tcid = 1,
|
||||||
.inuse = false,
|
.inuse = false,
|
||||||
};
|
};
|
||||||
#endif
|
#endif
|
||||||
|
@ -514,7 +514,7 @@ static struct sam_tc_s g_tc345 =
|
|||||||
static struct sam_tc_s g_tc678 =
|
static struct sam_tc_s g_tc678 =
|
||||||
{
|
{
|
||||||
.lock = NXMUTEX_INITIALIZER,
|
.lock = NXMUTEX_INITIALIZER,
|
||||||
.base = SAM_TC789_BASE,
|
.base = SAM_TC678_BASE,
|
||||||
.tc = 2,
|
.tc = 2,
|
||||||
};
|
};
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user