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 =
|
||||
{
|
||||
.ops = &g_qecallbacks,
|
||||
.timid = 1,
|
||||
.tcid = 1,
|
||||
.inuse = false,
|
||||
};
|
||||
#endif
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user