Qencoder implementations for imxrt, stm32f7, stm32h7, stm32l4 and tivia don't support QEIOC_SETPOSMAX

This commit is contained in:
raiden00pl
2021-08-10 11:15:23 +02:00
committed by Alan Carvalho de Assis
parent 51b24c4bad
commit 2b3106fb47
5 changed files with 30 additions and 25 deletions
+6 -5
View File
@@ -336,11 +336,12 @@ static int imxrt_ioctl(FAR struct qe_lowerhalf_s *lower, int cmd,
static const struct qe_ops_s g_qecallbacks = static const struct qe_ops_s g_qecallbacks =
{ {
.setup = imxrt_setup, .setup = imxrt_setup,
.shutdown = imxrt_shutdown, .shutdown = imxrt_shutdown,
.position = imxrt_position, .position = imxrt_position,
.reset = imxrt_reset, .setposmax = NULL, /* not supported yet */
.ioctl = imxrt_ioctl, .reset = imxrt_reset,
.ioctl = imxrt_ioctl,
}; };
/* Per-timer state structures */ /* Per-timer state structures */
+6 -5
View File
@@ -263,11 +263,12 @@ static int stm32_ioctl(FAR struct qe_lowerhalf_s *lower, int cmd,
static const struct qe_ops_s g_qecallbacks = static const struct qe_ops_s g_qecallbacks =
{ {
.setup = stm32_setup, .setup = stm32_setup,
.shutdown = stm32_shutdown, .shutdown = stm32_shutdown,
.position = stm32_position, .position = stm32_position,
.reset = stm32_reset, .setposmax = NULL, /* not supported yet */
.ioctl = stm32_ioctl, .reset = stm32_reset,
.ioctl = stm32_ioctl,
}; };
/* Per-timer state structures */ /* Per-timer state structures */
+6 -5
View File
@@ -263,11 +263,12 @@ static int stm32_ioctl(FAR struct qe_lowerhalf_s *lower, int cmd,
static const struct qe_ops_s g_qecallbacks = static const struct qe_ops_s g_qecallbacks =
{ {
.setup = stm32_setup, .setup = stm32_setup,
.shutdown = stm32_shutdown, .shutdown = stm32_shutdown,
.position = stm32_position, .position = stm32_position,
.reset = stm32_reset, .setposmax = NULL, /* not supported yet */
.ioctl = stm32_ioctl, .reset = stm32_reset,
.ioctl = stm32_ioctl,
}; };
/* Per-timer state structures */ /* Per-timer state structures */
+6 -5
View File
@@ -258,11 +258,12 @@ static int stm32l4_ioctl(FAR struct qe_lowerhalf_s *lower,
static const struct qe_ops_s g_qecallbacks = static const struct qe_ops_s g_qecallbacks =
{ {
.setup = stm32l4_setup, .setup = stm32l4_setup,
.shutdown = stm32l4_shutdown, .shutdown = stm32l4_shutdown,
.position = stm32l4_position, .position = stm32l4_position,
.reset = stm32l4_reset, .setposmax = NULL, /* not supported yet */
.ioctl = stm32l4_ioctl, .reset = stm32l4_reset,
.ioctl = stm32l4_ioctl,
}; };
/* Per-timer state structures */ /* Per-timer state structures */
+6 -5
View File
@@ -107,11 +107,12 @@ static int tiva_qe_resetatindex(FAR struct tiva_qe_s *qe);
static const struct qe_ops_s g_qe_ops = static const struct qe_ops_s g_qe_ops =
{ {
.setup = tiva_qe_setup, .setup = tiva_qe_setup,
.shutdown = tiva_qe_shutdown, .shutdown = tiva_qe_shutdown,
.position = tiva_qe_position, .position = tiva_qe_position,
.reset = tiva_qe_reset, .setposmax = NULL, /* not supported yet */
.ioctl = tiva_qe_ioctl, .reset = tiva_qe_reset,
.ioctl = tiva_qe_ioctl,
}; };
#ifdef CONFIG_TIVA_QEI0 #ifdef CONFIG_TIVA_QEI0