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:
Pavel Pisa 2023-09-11 13:06:04 +02:00 committed by Xiang Xiao
parent e5ee8f7470
commit b9472129c8
2 changed files with 2 additions and 2 deletions

View File

@ -118,7 +118,7 @@ static struct sam_lowerhalf_s g_tc0lower =
static struct sam_lowerhalf_s g_tc1lower =
{
.ops = &g_qecallbacks,
.timid = 1,
.tcid = 1,
.inuse = false,
};
#endif

View File

@ -514,7 +514,7 @@ static struct sam_tc_s g_tc345 =
static struct sam_tc_s g_tc678 =
{
.lock = NXMUTEX_INITIALIZER,
.base = SAM_TC789_BASE,
.base = SAM_TC678_BASE,
.tc = 2,
};
#endif