style: fix checkpatch issues after debug.h move
Build Documentation / build-html (push) Has been cancelled

Fixed copespell errors, for CI sucess!

Signed-off-by: Piyush Patle <piyushpatle228@gmail.com>
This commit is contained in:
Piyush Patle
2026-04-02 21:46:00 +05:30
committed by Alan C. Assis
parent 0dccc8ba21
commit 13d0e64ee6
123 changed files with 223 additions and 87 deletions
+1 -1
View File
@@ -45,8 +45,8 @@
#include <string.h> #include <string.h>
#include <assert.h> #include <assert.h>
#include <errno.h> #include <errno.h>
#include <nuttx/debug.h>
#include <nuttx/debug.h>
#include <nuttx/video/edid.h> #include <nuttx/video/edid.h>
#include "am335x_lcdc.h" #include "am335x_lcdc.h"
+1
View File
@@ -30,6 +30,7 @@
#include <stdint.h> #include <stdint.h>
#include <stdbool.h> #include <stdbool.h>
#include <errno.h> #include <errno.h>
#include <nuttx/debug.h> #include <nuttx/debug.h>
#include <nuttx/irq.h> #include <nuttx/irq.h>
#include <nuttx/spinlock.h> #include <nuttx/spinlock.h>
+1 -1
View File
@@ -67,7 +67,7 @@
#define TIMTYPE_GENERAL16 1 /* General 16-bit timers (up, down, up/down)*/ #define TIMTYPE_GENERAL16 1 /* General 16-bit timers (up, down, up/down)*/
#define TIMTYPE_COUNTUP16 2 /* General 16-bit count-up timers */ #define TIMTYPE_COUNTUP16 2 /* General 16-bit count-up timers */
#define TIMTYPE_COUNTUP16_N 3 /* General 16-bit count-up timers with #define TIMTYPE_COUNTUP16_N 3 /* General 16-bit count-up timers with
* complementary outptus * complementary outputs
*/ */
#define TIMTYPE_GENERAL32 4 /* General 32-bit timers (up, down, up/down)*/ #define TIMTYPE_GENERAL32 4 /* General 32-bit timers (up, down, up/down)*/
#define TIMTYPE_ADVANCED 5 /* Advanced timers */ #define TIMTYPE_ADVANCED 5 /* Advanced timers */
+1
View File
@@ -32,6 +32,7 @@
#include <string.h> #include <string.h>
#include <assert.h> #include <assert.h>
#include <errno.h> #include <errno.h>
#include <nuttx/debug.h> #include <nuttx/debug.h>
#include <nuttx/irq.h> #include <nuttx/irq.h>
#include <nuttx/arch.h> #include <nuttx/arch.h>
+1
View File
@@ -27,6 +27,7 @@
#include <nuttx/config.h> #include <nuttx/config.h>
#include <stdint.h> #include <stdint.h>
#include <assert.h> #include <assert.h>
#include <nuttx/debug.h> #include <nuttx/debug.h>
#include <nuttx/init.h> #include <nuttx/init.h>
#include "arm_internal.h" #include "arm_internal.h"
+1
View File
@@ -28,6 +28,7 @@
#include <stdint.h> #include <stdint.h>
#include <time.h> #include <time.h>
#include <nuttx/debug.h> #include <nuttx/debug.h>
#include <nuttx/arch.h> #include <nuttx/arch.h>
#include <nuttx/timers/arch_timer.h> #include <nuttx/timers/arch_timer.h>
+1
View File
@@ -32,6 +32,7 @@
#include <time.h> #include <time.h>
#include <assert.h> #include <assert.h>
#include <errno.h> #include <errno.h>
#include <nuttx/debug.h> #include <nuttx/debug.h>
#include <nuttx/arch.h> #include <nuttx/arch.h>
#include <nuttx/irq.h> #include <nuttx/irq.h>
+16 -16
View File
@@ -260,7 +260,7 @@
#define MD_PHY_LSB_REG 0x03 #define MD_PHY_LSB_REG 0x03
#define MD_PHY_CTRL_STAT_REG 0x17 #define MD_PHY_CTRL_STAT_REG 0x17
/* Lucent LU3X31T-T64 transeiver ID */ /* Lucent LU3X31T-T64 transceiver ID */
#define LU3X31_T64_PHYID 0x00437421 #define LU3X31_T64_PHYID 0x00437421
@@ -446,8 +446,8 @@ static inline void c5471_dumpbuffer(const char *msg, const uint8_t *buffer,
* *
* Description: * Description:
* A helper routine used when serially communicating with the c547X's * A helper routine used when serially communicating with the c547X's
* external ethernet transeiver device. GPIO pins are connected to the * external ethernet transceiver device. GPIO pins are connected to the
* transeiver's MDCLK and MDIO pins and are used to accomplish the serial * transceiver's MDCLK and MDIO pins and are used to accomplish the serial
* comm. * comm.
* *
* protocol: * protocol:
@@ -513,8 +513,8 @@ static void c5471_mdtxbit (int bit_state)
* *
* Description: * Description:
* A helper routine used when serially communicating with the c547X's * A helper routine used when serially communicating with the c547X's
* external ethernet transeiver device. GPIO pins are connected to the * external ethernet transceiver device. GPIO pins are connected to the
* transeiver's MDCLK and MDIO pins and are used to accomplish the serial * transceiver's MDCLK and MDIO pins and are used to accomplish the serial
* comm. * comm.
* *
* protocol: * protocol:
@@ -574,8 +574,8 @@ static int c5471_mdrxbit (void)
* *
* Description: * Description:
* A helper routine used when serially communicating with the c547X's * A helper routine used when serially communicating with the c547X's
* external ethernet transeiver device. GPIO pins are connected to the * external ethernet transceiver device. GPIO pins are connected to the
* transeiver's MDCLK and MDIO pins and are used to accomplish the serial * transceiver's MDCLK and MDIO pins and are used to accomplish the serial
* comm. * comm.
* *
****************************************************************************/ ****************************************************************************/
@@ -636,8 +636,8 @@ static void c5471_mdwrite (int adr, int reg, int data)
* *
* Description: * Description:
* A helper routine used when serially communicating with the c547X's * A helper routine used when serially communicating with the c547X's
* external ethernet transeiver device. GPIO pins are connected to the * external ethernet transceiver device. GPIO pins are connected to the
* transeiver's MDCLK and MDIO pins and are used to accomplish the serial * transceiver's MDCLK and MDIO pins and are used to accomplish the serial
* comm. * comm.
* *
****************************************************************************/ ****************************************************************************/
@@ -700,21 +700,21 @@ static int c5471_mdread (int adr, int reg)
* Name: c5471_phyinit * Name: c5471_phyinit
* *
* Description: * Description:
* The c547X EVM board uses a Lucent LU3X31T-T64 transeiver device to * The c547X EVM board uses a Lucent LU3X31T-T64 transceiver device to
* handle the physical layer (PHY). It's a h/w block that on the one end * handle the physical layer (PHY). It's a h/w block that on the one end
* offers a Media Independent Interface (MII) which is connected to the * offers a Media Independent Interface (MII) which is connected to the
* Ethernet Interface Module (EIM) internal to the C547x and on the other * Ethernet Interface Module (EIM) internal to the C547x and on the other
* end offers either the 10baseT or 100baseT electrical interface * end offers either the 10baseT or 100baseT electrical interface
* connecting to an RJ45 onboard network connector. The PHY transeiver has * connecting to an RJ45 onboard network connector. The PHY transceiver has
* several internal registers allowing host configuration and status * several internal registers allowing host configuration and status
* access. These internal registers are accessible by clocking serial data * access. These internal registers are accessible by clocking serial data
* in/out of the MDIO pin of the LU3X31T-T64 chip. For c547X, the MDC and * in/out of the MDIO pin of the LU3X31T-T64 chip. For c547X, the MDC and
* the MDIO pins are connected to the C547x GPIO15 and GPIO14 pins * the MDIO pins are connected to the C547x GPIO15 and GPIO14 pins
* respectively. Host software twiddles the GPIO pins appropriately to get * respectively. Host software twiddles the GPIO pins appropriately to get
* data serially into and out of the chip. This is typically a one time * data serially into and out of the chip. This is typically a one time
* operation at boot and normal operation of the transeiver involves * operation at boot and normal operation of the transceiver involves
* EIM/Transeiver interaction at the other pins of the transeiver chip and * EIM/Transceiver interaction at the other pins of the transceiver chip
* doesn't require host intervention at the MDC and MDIO pins. * and doesn't require host intervention at the MDC and MDIO pins.
* *
****************************************************************************/ ****************************************************************************/
@@ -724,7 +724,7 @@ static int c5471_phyinit (void)
int phyid; int phyid;
int status; int status;
/* Next, Setup GPIO pins to talk serially to the Lucent transeiver chip */ /* Next, Setup GPIO pins to talk serially to the Lucent transceiver chip */
/* enable gpio bits 15,14 */ /* enable gpio bits 15,14 */
@@ -786,7 +786,7 @@ static int c5471_phyinit (void)
int phyid; int phyid;
int status; int status;
/* Next, Setup GPIO pins to talk serially to the Lucent transeiver chip */ /* Next, Setup GPIO pins to talk serially to the Lucent transceiver chip */
putreg32((getreg32(GPIO_EN) | 0x0000c000), GPIO_EN); /* enable gpio bits 15,14 */ putreg32((getreg32(GPIO_EN) | 0x0000c000), GPIO_EN); /* enable gpio bits 15,14 */
putreg32((getreg32(GPIO_CIO) & ~0x00008000), GPIO_CIO); /* config gpio(15); out -> MDCLK */ putreg32((getreg32(GPIO_CIO) & ~0x00008000), GPIO_CIO); /* config gpio(15); out -> MDCLK */
+1
View File
@@ -27,6 +27,7 @@
#include <nuttx/config.h> #include <nuttx/config.h>
#include <stdint.h> #include <stdint.h>
#include <nuttx/debug.h> #include <nuttx/debug.h>
#include <nuttx/arch.h> #include <nuttx/arch.h>
+1
View File
@@ -27,6 +27,7 @@
#include <nuttx/config.h> #include <nuttx/config.h>
#include <stdint.h> #include <stdint.h>
#include <nuttx/debug.h> #include <nuttx/debug.h>
#include <nuttx/arch.h> #include <nuttx/arch.h>
+1
View File
@@ -28,6 +28,7 @@
#include <stdint.h> #include <stdint.h>
#include <time.h> #include <time.h>
#include <nuttx/debug.h> #include <nuttx/debug.h>
#include <nuttx/arch.h> #include <nuttx/arch.h>
#include <arch/board/board.h> #include <arch/board/board.h>
+1
View File
@@ -28,6 +28,7 @@
#include <stdint.h> #include <stdint.h>
#include <time.h> #include <time.h>
#include <nuttx/debug.h> #include <nuttx/debug.h>
#include <nuttx/arch.h> #include <nuttx/arch.h>
#include <nuttx/timers/arch_timer.h> #include <nuttx/timers/arch_timer.h>
+4 -4
View File
@@ -144,25 +144,25 @@ static void up_pm_notify(struct pm_callback_s *cb, int domain,
{ {
switch (pmstate) switch (pmstate)
{ {
case(PM_NORMAL): case (PM_NORMAL):
{ {
/* Logic for PM_NORMAL goes here */ /* Logic for PM_NORMAL goes here */
} }
break; break;
case(PM_IDLE): case (PM_IDLE):
{ {
/* Logic for PM_IDLE goes here */ /* Logic for PM_IDLE goes here */
} }
break; break;
case(PM_STANDBY): case (PM_STANDBY):
{ {
/* Logic for PM_STANDBY goes here */ /* Logic for PM_STANDBY goes here */
} }
break; break;
case(PM_SLEEP): case (PM_SLEEP):
{ {
/* Logic for PM_SLEEP goes here */ /* Logic for PM_SLEEP goes here */
} }
+4 -4
View File
@@ -145,25 +145,25 @@ static void up_pm_notify(struct pm_callback_s *cb, int domain,
{ {
switch (pmstate) switch (pmstate)
{ {
case(PM_NORMAL): case (PM_NORMAL):
{ {
/* Logic for PM_NORMAL goes here */ /* Logic for PM_NORMAL goes here */
} }
break; break;
case(PM_IDLE): case (PM_IDLE):
{ {
/* Logic for PM_IDLE goes here */ /* Logic for PM_IDLE goes here */
} }
break; break;
case(PM_STANDBY): case (PM_STANDBY):
{ {
/* Logic for PM_STANDBY goes here */ /* Logic for PM_STANDBY goes here */
} }
break; break;
case(PM_SLEEP): case (PM_SLEEP):
{ {
/* Logic for PM_SLEEP goes here */ /* Logic for PM_SLEEP goes here */
} }
+1
View File
@@ -28,6 +28,7 @@
#include <stdint.h> #include <stdint.h>
#include <time.h> #include <time.h>
#include <nuttx/debug.h> #include <nuttx/debug.h>
#include <nuttx/arch.h> #include <nuttx/arch.h>
#include <arch/board/board.h> #include <arch/board/board.h>
+3 -1
View File
@@ -2,7 +2,8 @@
* arch/arm/src/lc823450/lc823450_sdc.c * arch/arm/src/lc823450/lc823450_sdc.c
* *
* SPDX-License-Identifier: BSD-3-Clause * SPDX-License-Identifier: BSD-3-Clause
* SPDX-FileCopyrightText: 2014,2015,2016,2017 Sony Video & Sound Products Inc. * SPDX-FileCopyrightText: 2014,2015,2016,2017 Sony Video & Sound
* Products Inc.
* SPDX-FileCopyrightText: 2014-2015 ON Semiconductor. All rights reserved. * SPDX-FileCopyrightText: 2014-2015 ON Semiconductor. All rights reserved.
* SPDX-FileContributor: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com> * SPDX-FileContributor: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>
* SPDX-FileContributor: Masatoshi Tateishi <Masatoshi.Tateishi@jp.sony.com> * SPDX-FileContributor: Masatoshi Tateishi <Masatoshi.Tateishi@jp.sony.com>
@@ -45,6 +46,7 @@
#include <sys/types.h> #include <sys/types.h>
#include <assert.h> #include <assert.h>
#include <errno.h> #include <errno.h>
#include <nuttx/debug.h> #include <nuttx/debug.h>
#include <nuttx/clock.h> #include <nuttx/clock.h>
#include <nuttx/arch.h> #include <nuttx/arch.h>
+1
View File
@@ -30,6 +30,7 @@
#include <stddef.h> #include <stddef.h>
#include <time.h> #include <time.h>
#include <assert.h> #include <assert.h>
#include <nuttx/debug.h> #include <nuttx/debug.h>
#include <nuttx/nuttx.h> #include <nuttx/nuttx.h>
#include <nuttx/arch.h> #include <nuttx/arch.h>
+1 -1
View File
@@ -2,7 +2,7 @@
* arch/arm/src/lpc17xx_40xx/lpc17_40_dac.c * arch/arm/src/lpc17xx_40xx/lpc17_40_dac.c
* *
* SPDX-License-Identifier: BSD-3-Clause * SPDX-License-Identifier: BSD-3-Clause
* SPDX-FileCopyrightText: 2010, 2014, 2016 Gregory Nutt. All rights reserved. * SPDX-FileCopyrightText: 2010,2014,2016 Gregory Nutt. All rights reserved.
* SPDX-FileCopyrightText: 2011 Li Zhuoyi. All rights reserved. * SPDX-FileCopyrightText: 2011 Li Zhuoyi. All rights reserved.
* SPDX-FileContributor: Li Zhuoyi <lzyy.cn@gmail.com> * SPDX-FileContributor: Li Zhuoyi <lzyy.cn@gmail.com>
* *
@@ -34,6 +34,7 @@
#include <sys/types.h> #include <sys/types.h>
#include <stdint.h> #include <stdint.h>
#include <stdbool.h> #include <stdbool.h>
#include <nuttx/debug.h> #include <nuttx/debug.h>
#include <nuttx/irq.h> #include <nuttx/irq.h>
+1
View File
@@ -27,6 +27,7 @@
#include <nuttx/config.h> #include <nuttx/config.h>
#include <stdint.h> #include <stdint.h>
#include <nuttx/debug.h> #include <nuttx/debug.h>
#include <nuttx/arch.h> #include <nuttx/arch.h>
+1
View File
@@ -33,6 +33,7 @@
#include <string.h> #include <string.h>
#include <assert.h> #include <assert.h>
#include <errno.h> #include <errno.h>
#include <nuttx/debug.h> #include <nuttx/debug.h>
#include <nuttx/irq.h> #include <nuttx/irq.h>
#include <nuttx/arch.h> #include <nuttx/arch.h>
+1
View File
@@ -27,6 +27,7 @@
#include <nuttx/config.h> #include <nuttx/config.h>
#include <stdint.h> #include <stdint.h>
#include <nuttx/debug.h> #include <nuttx/debug.h>
#include <nuttx/arch.h> #include <nuttx/arch.h>
#include <arch/board/board.h> #include <arch/board/board.h>
+1
View File
@@ -44,6 +44,7 @@
#include <stdint.h> #include <stdint.h>
#include <errno.h> #include <errno.h>
#include <nuttx/debug.h> #include <nuttx/debug.h>
#include <nuttx/arch.h> #include <nuttx/arch.h>
+1
View File
@@ -50,6 +50,7 @@
#include <string.h> #include <string.h>
#include <assert.h> #include <assert.h>
#include <errno.h> #include <errno.h>
#include <nuttx/debug.h> #include <nuttx/debug.h>
#include <nuttx/irq.h> #include <nuttx/irq.h>
#include <nuttx/arch.h> #include <nuttx/arch.h>
+1
View File
@@ -42,6 +42,7 @@
#include <nuttx/config.h> #include <nuttx/config.h>
#include <sys/types.h> #include <sys/types.h>
#include <nuttx/debug.h> #include <nuttx/debug.h>
#include <nuttx/arch.h> #include <nuttx/arch.h>
#include <arch/board/board.h> #include <arch/board/board.h>
+1
View File
@@ -28,6 +28,7 @@
#include <stdint.h> #include <stdint.h>
#include <time.h> #include <time.h>
#include <nuttx/debug.h> #include <nuttx/debug.h>
#include <nuttx/arch.h> #include <nuttx/arch.h>
#include <arch/board/board.h> #include <arch/board/board.h>
+1
View File
@@ -27,6 +27,7 @@
#include <nuttx/config.h> #include <nuttx/config.h>
#include <stdbool.h> #include <stdbool.h>
#include <assert.h> #include <assert.h>
#include <nuttx/debug.h> #include <nuttx/debug.h>
#include <nuttx/clock.h> #include <nuttx/clock.h>
#include <nuttx/wdog.h> #include <nuttx/wdog.h>
@@ -48,6 +48,7 @@
#include <string.h> #include <string.h>
#include <errno.h> #include <errno.h>
#include <assert.h> #include <assert.h>
#include <nuttx/debug.h> #include <nuttx/debug.h>
#include <nuttx/spinlock.h> #include <nuttx/spinlock.h>
#include <nuttx/timers/timer.h> #include <nuttx/timers/timer.h>
+1
View File
@@ -28,6 +28,7 @@
#include <stdint.h> #include <stdint.h>
#include <time.h> #include <time.h>
#include <nuttx/debug.h> #include <nuttx/debug.h>
#include <nuttx/arch.h> #include <nuttx/arch.h>
#include <arch/board/board.h> #include <arch/board/board.h>
+1
View File
@@ -26,6 +26,7 @@
#include <stdint.h> #include <stdint.h>
#include <time.h> #include <time.h>
#include <nuttx/debug.h> #include <nuttx/debug.h>
#include <nuttx/arch.h> #include <nuttx/arch.h>
#include <arch/board/board.h> #include <arch/board/board.h>
+1
View File
@@ -32,6 +32,7 @@
#include <semaphore.h> #include <semaphore.h>
#include <string.h> #include <string.h>
#include <errno.h> #include <errno.h>
#include <nuttx/debug.h> #include <nuttx/debug.h>
#include <nuttx/spinlock.h> #include <nuttx/spinlock.h>
#include <nuttx/arch.h> #include <nuttx/arch.h>
+1
View File
@@ -28,6 +28,7 @@
#include <stdint.h> #include <stdint.h>
#include <time.h> #include <time.h>
#include <nuttx/debug.h> #include <nuttx/debug.h>
#include <nuttx/arch.h> #include <nuttx/arch.h>
#include <arch/board/board.h> #include <arch/board/board.h>
+1
View File
@@ -28,6 +28,7 @@
#include <stdint.h> #include <stdint.h>
#include <time.h> #include <time.h>
#include <nuttx/debug.h> #include <nuttx/debug.h>
#include <nuttx/arch.h> #include <nuttx/arch.h>
#include <arch/board/board.h> #include <arch/board/board.h>
+1
View File
@@ -28,6 +28,7 @@
#include <stdint.h> #include <stdint.h>
#include <time.h> #include <time.h>
#include <nuttx/debug.h> #include <nuttx/debug.h>
#include <nuttx/arch.h> #include <nuttx/arch.h>
#include <arch/board/board.h> #include <arch/board/board.h>
+1 -1
View File
@@ -68,7 +68,7 @@
#define TIMTYPE_GENERAL16 1 /* General 16-bit timers (up, down, up/down)*/ #define TIMTYPE_GENERAL16 1 /* General 16-bit timers (up, down, up/down)*/
#define TIMTYPE_COUNTUP16 2 /* General 16-bit count-up timers */ #define TIMTYPE_COUNTUP16 2 /* General 16-bit count-up timers */
#define TIMTYPE_COUNTUP16_N 3 /* General 16-bit count-up timers with #define TIMTYPE_COUNTUP16_N 3 /* General 16-bit count-up timers with
* complementary outptus * complementary outputs
*/ */
#define TIMTYPE_GENERAL32 4 /* General 32-bit timers (up, down, up/down)*/ #define TIMTYPE_GENERAL32 4 /* General 32-bit timers (up, down, up/down)*/
#define TIMTYPE_ADVANCED 5 /* Advanced timers */ #define TIMTYPE_ADVANCED 5 /* Advanced timers */
+1
View File
@@ -28,6 +28,7 @@
#include <stdint.h> #include <stdint.h>
#include <time.h> #include <time.h>
#include <nuttx/debug.h> #include <nuttx/debug.h>
#include <nuttx/arch.h> #include <nuttx/arch.h>
#include <nuttx/timers/arch_timer.h> #include <nuttx/timers/arch_timer.h>
@@ -28,6 +28,7 @@
#include <stdint.h> #include <stdint.h>
#include <time.h> #include <time.h>
#include <nuttx/debug.h> #include <nuttx/debug.h>
#include <nuttx/arch.h> #include <nuttx/arch.h>
#include <arch/board/board.h> #include <arch/board/board.h>
+1 -1
View File
@@ -56,7 +56,7 @@
#define TIMTYPE_GENERAL16 1 /* General 16-bit timers (up, down, up/down)*/ #define TIMTYPE_GENERAL16 1 /* General 16-bit timers (up, down, up/down)*/
#define TIMTYPE_COUNTUP16 2 /* General 16-bit count-up timers */ #define TIMTYPE_COUNTUP16 2 /* General 16-bit count-up timers */
#define TIMTYPE_COUNTUP16_N 3 /* General 16-bit count-up timers with #define TIMTYPE_COUNTUP16_N 3 /* General 16-bit count-up timers with
* complementary outptus * complementary outputs
*/ */
#define TIMTYPE_GENERAL32 4 /* General 32-bit timers (up, down, up/down)*/ #define TIMTYPE_GENERAL32 4 /* General 32-bit timers (up, down, up/down)*/
#define TIMTYPE_ADVANCED 5 /* Advanced timers */ #define TIMTYPE_ADVANCED 5 /* Advanced timers */
+1
View File
@@ -28,6 +28,7 @@
#include <stdint.h> #include <stdint.h>
#include <time.h> #include <time.h>
#include <nuttx/debug.h> #include <nuttx/debug.h>
#include <nuttx/arch.h> #include <nuttx/arch.h>
#include <arch/board/board.h> #include <arch/board/board.h>
+1 -1
View File
@@ -61,7 +61,7 @@
#define TIMTYPE_GENERAL16 1 /* General 16-bit timers (up, down, up/down)*/ #define TIMTYPE_GENERAL16 1 /* General 16-bit timers (up, down, up/down)*/
#define TIMTYPE_COUNTUP16 2 /* General 16-bit count-up timers */ #define TIMTYPE_COUNTUP16 2 /* General 16-bit count-up timers */
#define TIMTYPE_COUNTUP16_N 3 /* General 16-bit count-up timers with #define TIMTYPE_COUNTUP16_N 3 /* General 16-bit count-up timers with
* complementary outptus * complementary outputs
*/ */
#define TIMTYPE_GENERAL32 4 /* General 32-bit timers (up, down, up/down)*/ #define TIMTYPE_GENERAL32 4 /* General 32-bit timers (up, down, up/down)*/
#define TIMTYPE_ADVANCED 5 /* Advanced timers */ #define TIMTYPE_ADVANCED 5 /* Advanced timers */
+1
View File
@@ -28,6 +28,7 @@
#include <stdint.h> #include <stdint.h>
#include <time.h> #include <time.h>
#include <nuttx/debug.h> #include <nuttx/debug.h>
#include <nuttx/arch.h> #include <nuttx/arch.h>
#include <arch/board/board.h> #include <arch/board/board.h>
+1 -1
View File
@@ -63,7 +63,7 @@
#define TIMTYPE_GENERAL16 1 /* General 16-bit timers (up, down, up/down)*/ #define TIMTYPE_GENERAL16 1 /* General 16-bit timers (up, down, up/down)*/
#define TIMTYPE_COUNTUP16 2 /* General 16-bit count-up timers */ #define TIMTYPE_COUNTUP16 2 /* General 16-bit count-up timers */
#define TIMTYPE_COUNTUP16_N 3 /* General 16-bit count-up timers with #define TIMTYPE_COUNTUP16_N 3 /* General 16-bit count-up timers with
* complementary outptus * complementary outputs
*/ */
#define TIMTYPE_GENERAL32 4 /* General 32-bit timers (up, down, up/down)*/ #define TIMTYPE_GENERAL32 4 /* General 32-bit timers (up, down, up/down)*/
#define TIMTYPE_ADVANCED 5 /* Advanced timers */ #define TIMTYPE_ADVANCED 5 /* Advanced timers */
+1
View File
@@ -28,6 +28,7 @@
#include <stdint.h> #include <stdint.h>
#include <time.h> #include <time.h>
#include <nuttx/debug.h> #include <nuttx/debug.h>
#include <nuttx/arch.h> #include <nuttx/arch.h>
#include <arch/board/board.h> #include <arch/board/board.h>
+1 -1
View File
@@ -65,7 +65,7 @@
#define TIMTYPE_GENERAL16 1 /* General 16-bit timers: TIM3,4 */ #define TIMTYPE_GENERAL16 1 /* General 16-bit timers: TIM3,4 */
#define TIMTYPE_COUNTUP16 2 /* General 16-bit count-up timers: TIM15-17 */ #define TIMTYPE_COUNTUP16 2 /* General 16-bit count-up timers: TIM15-17 */
#define TIMTYPE_COUNTUP16_N 3 /* General 16-bit count-up timers with #define TIMTYPE_COUNTUP16_N 3 /* General 16-bit count-up timers with
* complementary outptus * complementary outputs
*/ */
#define TIMTYPE_GENERAL32 4 /* General 32-bit timers: TIM2,5 */ #define TIMTYPE_GENERAL32 4 /* General 32-bit timers: TIM2,5 */
#define TIMTYPE_ADVANCED 5 /* Advanced timers: TIM1,8 */ #define TIMTYPE_ADVANCED 5 /* Advanced timers: TIM1,8 */
+1
View File
@@ -28,6 +28,7 @@
#include <stdint.h> #include <stdint.h>
#include <time.h> #include <time.h>
#include <nuttx/debug.h> #include <nuttx/debug.h>
#include <nuttx/arch.h> #include <nuttx/arch.h>
#include <arch/board/board.h> #include <arch/board/board.h>
+1
View File
@@ -28,6 +28,7 @@
#include <stdint.h> #include <stdint.h>
#include <time.h> #include <time.h>
#include <nuttx/debug.h> #include <nuttx/debug.h>
#include <nuttx/arch.h> #include <nuttx/arch.h>
#include <arch/board/board.h> #include <arch/board/board.h>
+1
View File
@@ -28,6 +28,7 @@
#include <stdint.h> #include <stdint.h>
#include <time.h> #include <time.h>
#include <nuttx/debug.h> #include <nuttx/debug.h>
#include <nuttx/arch.h> #include <nuttx/arch.h>
#include <arch/board/board.h> #include <arch/board/board.h>
@@ -28,6 +28,7 @@
#include <stdint.h> #include <stdint.h>
#include <time.h> #include <time.h>
#include <nuttx/debug.h> #include <nuttx/debug.h>
#include <nuttx/arch.h> #include <nuttx/arch.h>
#include <arch/board/board.h> #include <arch/board/board.h>
+1
View File
@@ -33,6 +33,7 @@
#include <string.h> #include <string.h>
#include <assert.h> #include <assert.h>
#include <errno.h> #include <errno.h>
#include <nuttx/debug.h> #include <nuttx/debug.h>
#include <nuttx/irq.h> #include <nuttx/irq.h>
#include <nuttx/arch.h> #include <nuttx/arch.h>
+7 -7
View File
@@ -316,7 +316,7 @@ void tiva_adc_step_cfg(struct tiva_adc_step_cfg_s *stepcfg)
uint8_t sse = stepcfg->sse; uint8_t sse = stepcfg->sse;
uint8_t step = stepcfg->step; uint8_t step = stepcfg->step;
#ifdef CONFIG_EXPERIMENTAL #ifdef CONFIG_EXPERIMENTAL
uint8_t shold = stepcfg->shold; uint8_t hold = stepcfg->hold;
#endif #endif
uint8_t flags = stepcfg->flags; uint8_t flags = stepcfg->flags;
uint8_t ain = stepcfg->ain; uint8_t ain = stepcfg->ain;
@@ -324,8 +324,8 @@ void tiva_adc_step_cfg(struct tiva_adc_step_cfg_s *stepcfg)
ainfo("configure ADC%d SSE%d STEP%d...\n", adc, sse, step); ainfo("configure ADC%d SSE%d STEP%d...\n", adc, sse, step);
#ifdef CONFIG_DEBUG_ANALOG #ifdef CONFIG_DEBUG_ANALOG
ainfo(" shold=0x%02x flags=0x%02x ain=%d...\n", ainfo(" hold=0x%02x flags=0x%02x ain=%d...\n",
stepcfg->shold, stepcfg->flags, stepcfg->ain); stepcfg->hold, stepcfg->flags, stepcfg->ain);
#endif #endif
/* Configure the AIN GPIO for analog input if not flagged to be mux'ed to /* Configure the AIN GPIO for analog input if not flagged to be mux'ed to
@@ -343,7 +343,7 @@ void tiva_adc_step_cfg(struct tiva_adc_step_cfg_s *stepcfg)
tiva_adc_sse_differential(adc, sse, step, 0); /* TODO: update when differential tiva_adc_sse_differential(adc, sse, step, 0); /* TODO: update when differential
* support is added. */ * support is added. */
#ifdef CONFIG_EXPERIMENTAL #ifdef CONFIG_EXPERIMENTAL
tiva_adc_sse_sample_hold_time(adc, sse, step, shold); tiva_adc_sse_sample_hold_time(adc, sse, step, hold);
#endif #endif
tiva_adc_sse_step_cfg(adc, sse, step, flags); tiva_adc_sse_step_cfg(adc, sse, step, flags);
} }
@@ -959,17 +959,17 @@ void tiva_adc_sse_differential(uint8_t adc, uint8_t sse, uint8_t chn,
* adc - peripheral state * adc - peripheral state
* sse - sample sequencer * sse - sample sequencer
* chn - sample sequencer channel * chn - sample sequencer channel
* shold - sample and hold time * hold - sample and hold time
* *
****************************************************************************/ ****************************************************************************/
#ifdef CONFIG_EXPERIMENTAL #ifdef CONFIG_EXPERIMENTAL
void tiva_adc_sse_sample_hold_time(uint8_t adc, uint8_t sse, void tiva_adc_sse_sample_hold_time(uint8_t adc, uint8_t sse,
uint8_t chn, uint32_t shold) uint8_t chn, uint32_t hold)
{ {
uintptr_t sstshreg = (TIVA_ADC_BASE(adc) + TIVA_ADC_SSTSH(sse)); uintptr_t sstshreg = (TIVA_ADC_BASE(adc) + TIVA_ADC_SSTSH(sse));
modifyreg32(sstshreg, ADC_SSTSH_MASK(sse), modifyreg32(sstshreg, ADC_SSTSH_MASK(sse),
(shold << ADC_SSTSH_SHIFT(sse))); (hold << ADC_SSTSH_SHIFT(sse)));
} }
#endif #endif

Some files were not shown because too many files have changed in this diff Show More