This is an automated email from the ASF dual-hosted git repository. acassis pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git
commit 2b3106fb478839fd3507e380346ba5e0a8d27320 Author: raiden00pl <[email protected]> AuthorDate: Tue Aug 10 11:15:23 2021 +0200 Qencoder implementations for imxrt, stm32f7, stm32h7, stm32l4 and tivia don't support QEIOC_SETPOSMAX --- arch/arm/src/imxrt/imxrt_enc.c | 11 ++++++----- arch/arm/src/stm32f7/stm32_qencoder.c | 11 ++++++----- arch/arm/src/stm32h7/stm32_qencoder.c | 11 ++++++----- arch/arm/src/stm32l4/stm32l4_qencoder.c | 11 ++++++----- arch/arm/src/tiva/common/tiva_qencoder.c | 11 ++++++----- 5 files changed, 30 insertions(+), 25 deletions(-) diff --git a/arch/arm/src/imxrt/imxrt_enc.c b/arch/arm/src/imxrt/imxrt_enc.c index 8516844..f5b0a21 100644 --- a/arch/arm/src/imxrt/imxrt_enc.c +++ b/arch/arm/src/imxrt/imxrt_enc.c @@ -336,11 +336,12 @@ static int imxrt_ioctl(FAR struct qe_lowerhalf_s *lower, int cmd, static const struct qe_ops_s g_qecallbacks = { - .setup = imxrt_setup, - .shutdown = imxrt_shutdown, - .position = imxrt_position, - .reset = imxrt_reset, - .ioctl = imxrt_ioctl, + .setup = imxrt_setup, + .shutdown = imxrt_shutdown, + .position = imxrt_position, + .setposmax = NULL, /* not supported yet */ + .reset = imxrt_reset, + .ioctl = imxrt_ioctl, }; /* Per-timer state structures */ diff --git a/arch/arm/src/stm32f7/stm32_qencoder.c b/arch/arm/src/stm32f7/stm32_qencoder.c index b8238da..cd9aedd 100644 --- a/arch/arm/src/stm32f7/stm32_qencoder.c +++ b/arch/arm/src/stm32f7/stm32_qencoder.c @@ -263,11 +263,12 @@ static int stm32_ioctl(FAR struct qe_lowerhalf_s *lower, int cmd, static const struct qe_ops_s g_qecallbacks = { - .setup = stm32_setup, - .shutdown = stm32_shutdown, - .position = stm32_position, - .reset = stm32_reset, - .ioctl = stm32_ioctl, + .setup = stm32_setup, + .shutdown = stm32_shutdown, + .position = stm32_position, + .setposmax = NULL, /* not supported yet */ + .reset = stm32_reset, + .ioctl = stm32_ioctl, }; /* Per-timer state structures */ diff --git a/arch/arm/src/stm32h7/stm32_qencoder.c b/arch/arm/src/stm32h7/stm32_qencoder.c index b0259d2..c55216a 100644 --- a/arch/arm/src/stm32h7/stm32_qencoder.c +++ b/arch/arm/src/stm32h7/stm32_qencoder.c @@ -263,11 +263,12 @@ static int stm32_ioctl(FAR struct qe_lowerhalf_s *lower, int cmd, static const struct qe_ops_s g_qecallbacks = { - .setup = stm32_setup, - .shutdown = stm32_shutdown, - .position = stm32_position, - .reset = stm32_reset, - .ioctl = stm32_ioctl, + .setup = stm32_setup, + .shutdown = stm32_shutdown, + .position = stm32_position, + .setposmax = NULL, /* not supported yet */ + .reset = stm32_reset, + .ioctl = stm32_ioctl, }; /* Per-timer state structures */ diff --git a/arch/arm/src/stm32l4/stm32l4_qencoder.c b/arch/arm/src/stm32l4/stm32l4_qencoder.c index 20620de..24d5495 100644 --- a/arch/arm/src/stm32l4/stm32l4_qencoder.c +++ b/arch/arm/src/stm32l4/stm32l4_qencoder.c @@ -258,11 +258,12 @@ static int stm32l4_ioctl(FAR struct qe_lowerhalf_s *lower, static const struct qe_ops_s g_qecallbacks = { - .setup = stm32l4_setup, - .shutdown = stm32l4_shutdown, - .position = stm32l4_position, - .reset = stm32l4_reset, - .ioctl = stm32l4_ioctl, + .setup = stm32l4_setup, + .shutdown = stm32l4_shutdown, + .position = stm32l4_position, + .setposmax = NULL, /* not supported yet */ + .reset = stm32l4_reset, + .ioctl = stm32l4_ioctl, }; /* Per-timer state structures */ diff --git a/arch/arm/src/tiva/common/tiva_qencoder.c b/arch/arm/src/tiva/common/tiva_qencoder.c index d4d1163..529c4de 100644 --- a/arch/arm/src/tiva/common/tiva_qencoder.c +++ b/arch/arm/src/tiva/common/tiva_qencoder.c @@ -107,11 +107,12 @@ static int tiva_qe_resetatindex(FAR struct tiva_qe_s *qe); static const struct qe_ops_s g_qe_ops = { - .setup = tiva_qe_setup, - .shutdown = tiva_qe_shutdown, - .position = tiva_qe_position, - .reset = tiva_qe_reset, - .ioctl = tiva_qe_ioctl, + .setup = tiva_qe_setup, + .shutdown = tiva_qe_shutdown, + .position = tiva_qe_position, + .setposmax = NULL, /* not supported yet */ + .reset = tiva_qe_reset, + .ioctl = tiva_qe_ioctl, }; #ifdef CONFIG_TIVA_QEI0
