mirror of
https://github.com/apache/nuttx.git
synced 2026-05-27 19:36:35 +08:00
Fix typos in comments and identifiers
This commit is contained in:
committed by
Gustavo Henrique Nihei
parent
38c5837d2b
commit
609ee6b54b
@@ -1759,14 +1759,16 @@ config STACK_COLORATION
|
|||||||
Only supported by a few architectures.
|
Only supported by a few architectures.
|
||||||
|
|
||||||
config STACK_USAGE_SAFE_PERCENT
|
config STACK_USAGE_SAFE_PERCENT
|
||||||
int "Stack usage safe precent"
|
int "Stack usage safe percent"
|
||||||
default 0
|
default 0
|
||||||
range 0 100
|
range 0 100
|
||||||
depends on STACK_COLORATION
|
depends on STACK_COLORATION
|
||||||
---help---
|
---help---
|
||||||
Stack usage precent = up_check_tcbstack() * 100 / tcb->adj_stack_size,
|
Stack usage percent = up_check_tcbstack() * 100 / tcb->adj_stack_size,
|
||||||
this should lower then STACK_USAGE_SAFE_PERCENT.
|
this should be lower than STACK_USAGE_SAFE_PERCENT.
|
||||||
Idle thread will timely check stack usage when this macro value > 0.
|
|
||||||
|
Idle thread will periodically check stack usage when this macro
|
||||||
|
value > 0.
|
||||||
|
|
||||||
N.B. This feature should not be used in production code.
|
N.B. This feature should not be used in production code.
|
||||||
|
|
||||||
|
|||||||
@@ -130,7 +130,7 @@ int up_cpu_paused(int cpu)
|
|||||||
|
|
||||||
arm_savestate(tcb->xcp.regs);
|
arm_savestate(tcb->xcp.regs);
|
||||||
|
|
||||||
/* Release the g_cpu_puased spinlock to synchronize with the
|
/* Release the g_cpu_paused spinlock to synchronize with the
|
||||||
* requesting CPU.
|
* requesting CPU.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|||||||
@@ -63,7 +63,7 @@ config ARMV7M_USEBASEPRI
|
|||||||
WARNING: If CONFIG_ARCH_HIPRI_INTERRUPT is selected, then you
|
WARNING: If CONFIG_ARCH_HIPRI_INTERRUPT is selected, then you
|
||||||
MUST select CONFIG_ARMV7M_USEBASEPRI. The Kconfig dependencies
|
MUST select CONFIG_ARMV7M_USEBASEPRI. The Kconfig dependencies
|
||||||
here will permit to select an invalid configuration because it
|
here will permit to select an invalid configuration because it
|
||||||
cannot enforce that requirement. If you create this invalild
|
cannot enforce that requirement. If you create this invalid
|
||||||
configuration, you will encounter some problems that may be
|
configuration, you will encounter some problems that may be
|
||||||
very difficult to debug.
|
very difficult to debug.
|
||||||
|
|
||||||
|
|||||||
@@ -95,7 +95,7 @@
|
|||||||
*
|
*
|
||||||
* REVISIT: Can this alignment requirement vary from core-to-core? Yes, it
|
* REVISIT: Can this alignment requirement vary from core-to-core? Yes, it
|
||||||
* depends on the number of vectors supported by the MCU. The safest thing
|
* depends on the number of vectors supported by the MCU. The safest thing
|
||||||
* to do is to put the vector table at the beginning of RAM in order toforce
|
* to do is to put the vector table at the beginning of RAM in order to force
|
||||||
* the highest alignment possible.
|
* the highest alignment possible.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|||||||
@@ -57,7 +57,7 @@
|
|||||||
*
|
*
|
||||||
* REVISIT: Can this alignment requirement vary from core-to-core? Yes, it
|
* REVISIT: Can this alignment requirement vary from core-to-core? Yes, it
|
||||||
* depends on the number of vectors supported by the MCU. The safest thing
|
* depends on the number of vectors supported by the MCU. The safest thing
|
||||||
* to do is to put the vector table at the beginning of RAM in order toforce
|
* to do is to put the vector table at the beginning of RAM in order to force
|
||||||
* the highest alignment possible.
|
* the highest alignment possible.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|||||||
@@ -62,7 +62,7 @@ config ARMV8M_USEBASEPRI
|
|||||||
WARNING: If CONFIG_ARCH_HIPRI_INTERRUPT is selected, then you
|
WARNING: If CONFIG_ARCH_HIPRI_INTERRUPT is selected, then you
|
||||||
MUST select CONFIG_ARMV8M_USEBASEPRI. The Kconfig dependencies
|
MUST select CONFIG_ARMV8M_USEBASEPRI. The Kconfig dependencies
|
||||||
here will permit to select an invalid configuration because it
|
here will permit to select an invalid configuration because it
|
||||||
cannot enforce that requirement. If you create this invalild
|
cannot enforce that requirement. If you create this invalid
|
||||||
configuration, you will encounter some problems that may be
|
configuration, you will encounter some problems that may be
|
||||||
very difficult to debug.
|
very difficult to debug.
|
||||||
|
|
||||||
|
|||||||
@@ -94,7 +94,7 @@
|
|||||||
*
|
*
|
||||||
* REVISIT: Can this alignment requirement vary from core-to-core? Yes, it
|
* REVISIT: Can this alignment requirement vary from core-to-core? Yes, it
|
||||||
* depends on the number of vectors supported by the MCU. The safest thing
|
* depends on the number of vectors supported by the MCU. The safest thing
|
||||||
* to do is to put the vector table at the beginning of RAM in order toforce
|
* to do is to put the vector table at the beginning of RAM in order to force
|
||||||
* the highest alignment possible.
|
* the highest alignment possible.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|||||||
@@ -57,7 +57,7 @@
|
|||||||
*
|
*
|
||||||
* REVISIT: Can this alignment requirement vary from core-to-core? Yes, it
|
* REVISIT: Can this alignment requirement vary from core-to-core? Yes, it
|
||||||
* depends on the number of vectors supported by the MCU. The safest thing
|
* depends on the number of vectors supported by the MCU. The safest thing
|
||||||
* to do is to put the vector table at the beginning of RAM in order toforce
|
* to do is to put the vector table at the beginning of RAM in order to force
|
||||||
* the highest alignment possible.
|
* the highest alignment possible.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|||||||
@@ -39,7 +39,7 @@ extern "C"
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* Public Function Protoypes
|
* Public Function Prototypes
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
|
|||||||
@@ -295,12 +295,12 @@ int arm_pause_handler(int irq, void *c, FAR void *arg)
|
|||||||
/* NOTE: Normally, we do not call up_cpu_paused() here because
|
/* NOTE: Normally, we do not call up_cpu_paused() here because
|
||||||
* the above enter_critical_setion() would call up_cpu_paused()
|
* the above enter_critical_setion() would call up_cpu_paused()
|
||||||
* inside because the caller holds a crtical section.
|
* inside because the caller holds a crtical section.
|
||||||
* Howerver, cxd56's remote IRQ control logic also uses this handler
|
* However, cxd56's remote IRQ control logic also uses this handler
|
||||||
* and a caller might not take a critical section to avoid a deadlock
|
* and a caller might not take a critical section to avoid a deadlock
|
||||||
* during up_enable_irq() and up_disable_irq(). This is allowed
|
* during up_enable_irq() and up_disable_irq(). This is allowed
|
||||||
* because IRQ control logic does not interact wtih the scheduler.
|
* because IRQ control logic does not interact wtih the scheduler.
|
||||||
* This means that if the request was not handled above, we need
|
* This means that if the request was not handled above, we need
|
||||||
* to call up_cpu_puased() here again.
|
* to call up_cpu_paused() here again.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
if (up_cpu_pausereq(cpu))
|
if (up_cpu_pausereq(cpu))
|
||||||
|
|||||||
@@ -39,7 +39,7 @@ extern "C"
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* Public Function Protoypes
|
* Public Function Prototypes
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
int cxd56_emmcinitialize(void);
|
int cxd56_emmcinitialize(void);
|
||||||
|
|||||||
@@ -54,7 +54,7 @@
|
|||||||
#define CXD56_GNSS_OPMOD_1PSS 5
|
#define CXD56_GNSS_OPMOD_1PSS 5
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* Public Function Protoypes
|
* Public Function Prototypes
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
/* Start a positioning
|
/* Start a positioning
|
||||||
|
|||||||
@@ -48,7 +48,7 @@ extern "C"
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* Public Function Protoypes
|
* Public Function Prototypes
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
int cxd56_sphinitialize(FAR const char *devname);
|
int cxd56_sphinitialize(FAR const char *devname);
|
||||||
|
|||||||
@@ -680,7 +680,7 @@
|
|||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
/* STM32 FOC devices.
|
/* STM32 FOC devices.
|
||||||
* This strucutre gathers all low level drivers required by FOC device.
|
* This structure gathers all low level drivers required by FOC device.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
struct stm32_foc_dev_s
|
struct stm32_foc_dev_s
|
||||||
|
|||||||
@@ -437,10 +437,10 @@ int stm32_configgpio(uint32_t cfgset);
|
|||||||
* Description:
|
* Description:
|
||||||
* Unconfigure a GPIO pin based on bit-encoded description of the pin, set
|
* Unconfigure a GPIO pin based on bit-encoded description of the pin, set
|
||||||
* it into default HiZ state (and possibly mark it's unused) and unlock it
|
* it into default HiZ state (and possibly mark it's unused) and unlock it
|
||||||
* whether it was previsouly selected as alternative function
|
* whether it was previously selected as alternative function
|
||||||
* (GPIO_ALT|GPIO_CNF_AFPP|...).
|
* (GPIO_ALT|GPIO_CNF_AFPP|...).
|
||||||
*
|
*
|
||||||
* This is a safety function and prevents hardware from schocks, as
|
* This is a safety function and prevents hardware from shocks, as
|
||||||
* unexpected write to the Timer Channel Output GPIO to fixed '1' or '0'
|
* unexpected write to the Timer Channel Output GPIO to fixed '1' or '0'
|
||||||
* while it should operate in PWM mode could produce excessive on-board
|
* while it should operate in PWM mode could produce excessive on-board
|
||||||
* currents and trigger over-current/alarm function.
|
* currents and trigger over-current/alarm function.
|
||||||
|
|||||||
@@ -344,10 +344,10 @@ int stm32_configgpio(uint32_t cfgset)
|
|||||||
* Description:
|
* Description:
|
||||||
* Unconfigure a GPIO pin based on bit-encoded description of the pin, set
|
* Unconfigure a GPIO pin based on bit-encoded description of the pin, set
|
||||||
* it into default HiZ state (and possibly mark it's unused) and unlock it
|
* it into default HiZ state (and possibly mark it's unused) and unlock it
|
||||||
* whether it was previsouly selected as alternative function
|
* whether it was previously selected as alternative function
|
||||||
* (GPIO_ALT|GPIO_CNF_AFPP|...).
|
* (GPIO_ALT|GPIO_CNF_AFPP|...).
|
||||||
*
|
*
|
||||||
* This is a safety function and prevents hardware from schocks, as
|
* This is a safety function and prevents hardware from shocks, as
|
||||||
* unexpected write to the Timer Channel Output GPIO to fixed '1' or '0'
|
* unexpected write to the Timer Channel Output GPIO to fixed '1' or '0'
|
||||||
* while it should operate in PWM mode could produce excessive on-board
|
* while it should operate in PWM mode could produce excessive on-board
|
||||||
* currents and trigger over-current/alarm function.
|
* currents and trigger over-current/alarm function.
|
||||||
|
|||||||
@@ -262,10 +262,10 @@ int stm32_configgpio(uint32_t cfgset);
|
|||||||
* Description:
|
* Description:
|
||||||
* Unconfigure a GPIO pin based on bit-encoded description of the pin, set
|
* Unconfigure a GPIO pin based on bit-encoded description of the pin, set
|
||||||
* it into default HiZ state (and possibly mark it's unused) and unlock it
|
* it into default HiZ state (and possibly mark it's unused) and unlock it
|
||||||
* whether it was previsouly selected as alternative function
|
* whether it was previously selected as alternative function
|
||||||
* (GPIO_ALT|GPIO_CNF_AFPP|...).
|
* (GPIO_ALT|GPIO_CNF_AFPP|...).
|
||||||
*
|
*
|
||||||
* This is a safety function and prevents hardware from schocks, as
|
* This is a safety function and prevents hardware from shocks, as
|
||||||
* unexpected write to the Timer Channel Output GPIO to fixed '1' or '0'
|
* unexpected write to the Timer Channel Output GPIO to fixed '1' or '0'
|
||||||
* while it should operate in PWM mode could produce excessive on-board
|
* while it should operate in PWM mode could produce excessive on-board
|
||||||
* currents and trigger over-current/alarm function.
|
* currents and trigger over-current/alarm function.
|
||||||
|
|||||||
@@ -327,7 +327,7 @@ int stm32_configgpio(uint32_t cfgset)
|
|||||||
* whether it was previously selected as alternative function
|
* whether it was previously selected as alternative function
|
||||||
* (GPIO_ALT|GPIO_CNF_AFPP|...).
|
* (GPIO_ALT|GPIO_CNF_AFPP|...).
|
||||||
*
|
*
|
||||||
* This is a safety function and prevents hardware from schocks, as
|
* This is a safety function and prevents hardware from shocks, as
|
||||||
* unexpected write to the Timer Channel Output GPIO to fixed '1' or '0'
|
* unexpected write to the Timer Channel Output GPIO to fixed '1' or '0'
|
||||||
* while it should operate in PWM mode could produce excessive on-board
|
* while it should operate in PWM mode could produce excessive on-board
|
||||||
* currents and trigger over-current/alarm function.
|
* currents and trigger over-current/alarm function.
|
||||||
|
|||||||
@@ -270,7 +270,7 @@ int stm32_configgpio(uint32_t cfgset);
|
|||||||
* whether it was previously selected as alternative function
|
* whether it was previously selected as alternative function
|
||||||
* (GPIO_ALT|GPIO_CNF_AFPP|...).
|
* (GPIO_ALT|GPIO_CNF_AFPP|...).
|
||||||
*
|
*
|
||||||
* This is a safety function and prevents hardware from schocks, as
|
* This is a safety function and prevents hardware from shocks, as
|
||||||
* unexpected write to the Timer Channel Output GPIO to fixed '1' or '0'
|
* unexpected write to the Timer Channel Output GPIO to fixed '1' or '0'
|
||||||
* while it should operate in PWM mode could produce excessive on-board
|
* while it should operate in PWM mode could produce excessive on-board
|
||||||
* currents and trigger over-current/alarm function.
|
* currents and trigger over-current/alarm function.
|
||||||
|
|||||||
@@ -292,7 +292,7 @@ int stm32_configgpio(uint32_t cfgset);
|
|||||||
* whether it was previously selected as alternative function
|
* whether it was previously selected as alternative function
|
||||||
* (GPIO_ALT|GPIO_CNF_AFPP|...).
|
* (GPIO_ALT|GPIO_CNF_AFPP|...).
|
||||||
*
|
*
|
||||||
* This is a safety function and prevents hardware from schocks, as
|
* This is a safety function and prevents hardware from shocks, as
|
||||||
* unexpected write to the Timer Channel Output GPIO to fixed '1' or '0'
|
* unexpected write to the Timer Channel Output GPIO to fixed '1' or '0'
|
||||||
* while it should operate in PWM mode could produce excessive on-board
|
* while it should operate in PWM mode could produce excessive on-board
|
||||||
* currents and trigger over-current/alarm function.
|
* currents and trigger over-current/alarm function.
|
||||||
|
|||||||
@@ -1142,7 +1142,7 @@ struct stm32_adc_dev_s
|
|||||||
|
|
||||||
FAR const struct stm32_adc_ops_s *llops;
|
FAR const struct stm32_adc_ops_s *llops;
|
||||||
|
|
||||||
/* Require cast-compatibility with private "lower-half" ADC strucutre */
|
/* Require cast-compatibility with private "lower-half" ADC structure */
|
||||||
};
|
};
|
||||||
|
|
||||||
/* Low-level operations for ADC */
|
/* Low-level operations for ADC */
|
||||||
|
|||||||
@@ -361,10 +361,10 @@ int stm32l4_configgpio(uint32_t cfgset)
|
|||||||
* Description:
|
* Description:
|
||||||
* Unconfigure a GPIO pin based on bit-encoded description of the pin, set
|
* Unconfigure a GPIO pin based on bit-encoded description of the pin, set
|
||||||
* it into default HiZ state (and possibly mark it's unused) and unlock it
|
* it into default HiZ state (and possibly mark it's unused) and unlock it
|
||||||
* whether it was previsouly selected as alternative function
|
* whether it was previously selected as alternative function
|
||||||
* (GPIO_ALT|GPIO_CNF_AFPP|...).
|
* (GPIO_ALT|GPIO_CNF_AFPP|...).
|
||||||
*
|
*
|
||||||
* This is a safety function and prevents hardware from schocks, as
|
* This is a safety function and prevents hardware from shocks, as
|
||||||
* unexpected write to the Timer Channel Output GPIO to fixed '1' or '0'
|
* unexpected write to the Timer Channel Output GPIO to fixed '1' or '0'
|
||||||
* while it should operate in PWM mode could produce excessive on-board
|
* while it should operate in PWM mode could produce excessive on-board
|
||||||
* currents and trigger over-current/alarm function.
|
* currents and trigger over-current/alarm function.
|
||||||
|
|||||||
@@ -272,10 +272,10 @@ int stm32l4_configgpio(uint32_t cfgset);
|
|||||||
* Description:
|
* Description:
|
||||||
* Unconfigure a GPIO pin based on bit-encoded description of the pin, set
|
* Unconfigure a GPIO pin based on bit-encoded description of the pin, set
|
||||||
* it into default HiZ state (and possibly mark it's unused) and unlock it
|
* it into default HiZ state (and possibly mark it's unused) and unlock it
|
||||||
* whether it was previsouly selected as alternative function
|
* whether it was previously selected as alternative function
|
||||||
* (GPIO_ALT|GPIO_CNF_AFPP|...).
|
* (GPIO_ALT|GPIO_CNF_AFPP|...).
|
||||||
*
|
*
|
||||||
* This is a safety function and prevents hardware from schocks, as
|
* This is a safety function and prevents hardware from shocks, as
|
||||||
* unexpected write to the Timer Channel Output GPIO to fixed '1' or '0'
|
* unexpected write to the Timer Channel Output GPIO to fixed '1' or '0'
|
||||||
* while it should operate in PWM mode could produce excessive on-board
|
* while it should operate in PWM mode could produce excessive on-board
|
||||||
* currents and trigger over-current/alarm function.
|
* currents and trigger over-current/alarm function.
|
||||||
|
|||||||
@@ -301,10 +301,10 @@ int stm32l5_configgpio(uint32_t cfgset)
|
|||||||
* Description:
|
* Description:
|
||||||
* Unconfigure a GPIO pin based on bit-encoded description of the pin, set
|
* Unconfigure a GPIO pin based on bit-encoded description of the pin, set
|
||||||
* it into default HiZ state (and possibly mark it's unused) and unlock it
|
* it into default HiZ state (and possibly mark it's unused) and unlock it
|
||||||
* whether it was previsouly selected as alternative function
|
* whether it was previously selected as alternative function
|
||||||
* (GPIO_ALT|GPIO_CNF_AFPP|...).
|
* (GPIO_ALT|GPIO_CNF_AFPP|...).
|
||||||
*
|
*
|
||||||
* This is a safety function and prevents hardware from schocks, as
|
* This is a safety function and prevents hardware from shocks, as
|
||||||
* unexpected write to the Timer Channel Output GPIO to fixed '1' or '0'
|
* unexpected write to the Timer Channel Output GPIO to fixed '1' or '0'
|
||||||
* while it should operate in PWM mode could produce excessive on-board
|
* while it should operate in PWM mode could produce excessive on-board
|
||||||
* currents and trigger over-current/alarm function.
|
* currents and trigger over-current/alarm function.
|
||||||
|
|||||||
@@ -268,10 +268,10 @@ int stm32l5_configgpio(uint32_t cfgset);
|
|||||||
* Description:
|
* Description:
|
||||||
* Unconfigure a GPIO pin based on bit-encoded description of the pin, set
|
* Unconfigure a GPIO pin based on bit-encoded description of the pin, set
|
||||||
* it into default HiZ state (and possibly mark it's unused) and unlock it
|
* it into default HiZ state (and possibly mark it's unused) and unlock it
|
||||||
* whether it was previsouly selected as alternative function
|
* whether it was previously selected as alternative function
|
||||||
* (GPIO_ALT|GPIO_CNF_AFPP|...).
|
* (GPIO_ALT|GPIO_CNF_AFPP|...).
|
||||||
*
|
*
|
||||||
* This is a safety function and prevents hardware from schocks, as
|
* This is a safety function and prevents hardware from shocks, as
|
||||||
* unexpected write to the Timer Channel Output GPIO to fixed '1' or '0'
|
* unexpected write to the Timer Channel Output GPIO to fixed '1' or '0'
|
||||||
* while it should operate in PWM mode could produce excessive on-board
|
* while it should operate in PWM mode could produce excessive on-board
|
||||||
* currents and trigger over-current/alarm function.
|
* currents and trigger over-current/alarm function.
|
||||||
|
|||||||
@@ -238,7 +238,7 @@
|
|||||||
* interrupt.
|
* interrupt.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#define ETHER_CFG_AL1_INT_PRIORTY (15)
|
#define ETHER_CFG_AL1_INT_PRIORITY (15)
|
||||||
|
|
||||||
/* Use LINKSTA signal for detect link status changes
|
/* Use LINKSTA signal for detect link status changes
|
||||||
* 0 = unused (use PHY-LSI status register)
|
* 0 = unused (use PHY-LSI status register)
|
||||||
@@ -3114,7 +3114,7 @@ void rx65n_ether_enable_icu(void)
|
|||||||
|
|
||||||
/* Priority to this interrupt should be value 2 */
|
/* Priority to this interrupt should be value 2 */
|
||||||
|
|
||||||
ipl = ETHER_CFG_AL1_INT_PRIORTY;
|
ipl = ETHER_CFG_AL1_INT_PRIORITY;
|
||||||
|
|
||||||
/* Disable group interrupts */
|
/* Disable group interrupts */
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -1692,7 +1692,7 @@ config ARCH_BOARD_STM32_BUTTERFLY2
|
|||||||
select ARCH_HAVE_BUTTONS
|
select ARCH_HAVE_BUTTONS
|
||||||
---help---
|
---help---
|
||||||
A configuration for the Kamami STM32Butterfly2 development board
|
A configuration for the Kamami STM32Butterfly2 development board
|
||||||
based on STM32F107VC micro-controler chip with optional ETH
|
based on STM32F107VC micro-controller chip with optional ETH
|
||||||
board. See
|
board. See
|
||||||
https://kamami.pl/zestawy-uruchomieniowe-stm32/178507-stm32butterfly2.html
|
https://kamami.pl/zestawy-uruchomieniowe-stm32/178507-stm32butterfly2.html
|
||||||
|
|
||||||
|
|||||||
@@ -84,7 +84,7 @@ int board_lcd_backpack_init(int devno, int busno, int rows, int cols)
|
|||||||
return -ENODEV;
|
return -ENODEV;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Regiter the Segment LCD */
|
/* Register the Segment LCD */
|
||||||
|
|
||||||
snprintf(devpath, 12, "/dev/slcd%d", devno);
|
snprintf(devpath, 12, "/dev/slcd%d", devno);
|
||||||
ret = pcf8574_lcd_backpack_register(devpath, i2c, &cfg);
|
ret = pcf8574_lcd_backpack_register(devpath, i2c, &cfg);
|
||||||
|
|||||||
@@ -82,7 +82,7 @@ int board_lcd_backpack_init(int devno, int busno, int rows, int cols)
|
|||||||
return -ENODEV;
|
return -ENODEV;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Regiter the Segment LCD */
|
/* Register the Segment LCD */
|
||||||
|
|
||||||
snprintf(devpath, 12, "/dev/slcd%d", devno);
|
snprintf(devpath, 12, "/dev/slcd%d", devno);
|
||||||
ret = pcf8574_lcd_backpack_register(devpath, i2c, &cfg);
|
ret = pcf8574_lcd_backpack_register(devpath, i2c, &cfg);
|
||||||
|
|||||||
@@ -98,7 +98,7 @@ Configurations
|
|||||||
- Ethernet
|
- Ethernet
|
||||||
- DHCP Client
|
- DHCP Client
|
||||||
- iperf
|
- iperf
|
||||||
- telnet deamon
|
- telnet daemon
|
||||||
|
|
||||||
File Systems:
|
File Systems:
|
||||||
- FAT filesystem
|
- FAT filesystem
|
||||||
|
|||||||
@@ -20,7 +20,7 @@ config MOTOR_FOC_SHUNTS
|
|||||||
default 3
|
default 3
|
||||||
---help---
|
---help---
|
||||||
Number of shunts supported (or other types of current sensors).
|
Number of shunts supported (or other types of current sensors).
|
||||||
Any current recontruction must be done on the lower-half side.
|
Any current reconstruction must be done on the lower-half side.
|
||||||
|
|
||||||
config MOTOR_FOC_TRACE
|
config MOTOR_FOC_TRACE
|
||||||
bool "FOC trace support"
|
bool "FOC trace support"
|
||||||
|
|||||||
+1
-1
@@ -340,7 +340,7 @@ struct foc_data_f32_s
|
|||||||
dq_frame_f32_t i_dq_err; /* DQ current error */
|
dq_frame_f32_t i_dq_err; /* DQ current error */
|
||||||
|
|
||||||
dq_frame_f32_t i_dq_ref; /* Requested current for the FOC
|
dq_frame_f32_t i_dq_ref; /* Requested current for the FOC
|
||||||
* current controler
|
* current controller
|
||||||
*/
|
*/
|
||||||
|
|
||||||
pid_controller_f32_t id_pid; /* Current d-axis component PI controller */
|
pid_controller_f32_t id_pid; /* Current d-axis component PI controller */
|
||||||
|
|||||||
+1
-1
@@ -277,7 +277,7 @@ struct foc_data_b16_s
|
|||||||
dq_frame_b16_t i_dq_err; /* DQ current error */
|
dq_frame_b16_t i_dq_err; /* DQ current error */
|
||||||
|
|
||||||
dq_frame_b16_t i_dq_ref; /* Requested current for the FOC
|
dq_frame_b16_t i_dq_ref; /* Requested current for the FOC
|
||||||
* current controler
|
* current controller
|
||||||
*/
|
*/
|
||||||
|
|
||||||
pid_controller_b16_t id_pid; /* Current d-axis component PI controller */
|
pid_controller_b16_t id_pid; /* Current d-axis component PI controller */
|
||||||
|
|||||||
@@ -12,14 +12,14 @@ config LIBC_EXECFUNCS
|
|||||||
---help---
|
---help---
|
||||||
Enable support for the exec[l|v] family of functions that can be
|
Enable support for the exec[l|v] family of functions that can be
|
||||||
used to start other programs, terminating the current program and
|
used to start other programs, terminating the current program and
|
||||||
the posix_spawn() familty of functions that can be used start other
|
the posix_spawn() family of functions that can be used to start other
|
||||||
programs without terminating the current program. The typical
|
programs without terminating the current program. The typical
|
||||||
usage of the exec[l|v] functions is (1) first call vfork() to create
|
usage of the exec[l|v] functions is (1) first call vfork() to create
|
||||||
a new thread, then (2) call exec[l|v] to replace the new thread with
|
a new thread, then (2) call exec[l|v] to replace the new thread with
|
||||||
a program from the file system.
|
a program from the file system.
|
||||||
|
|
||||||
NOTE 1: This two step process start is completely unnecessary in
|
NOTE 1: This two step process start is completely unnecessary in
|
||||||
NuttX and is provided only for compatibily with Unix systems. These
|
NuttX and is provided only for compatibility with Unix systems. These
|
||||||
functions are essentially just wrapper functions that (1) call the
|
functions are essentially just wrapper functions that (1) call the
|
||||||
non-standard binfmt function 'exec', and then (2) exit(0). Since
|
non-standard binfmt function 'exec', and then (2) exit(0). Since
|
||||||
the new thread will be terminated by the exec[l|v] call, it really
|
the new thread will be terminated by the exec[l|v] call, it really
|
||||||
|
|||||||
@@ -44,9 +44,9 @@
|
|||||||
* the controlling terminal and run in the background as system daemons.
|
* the controlling terminal and run in the background as system daemons.
|
||||||
*
|
*
|
||||||
* NOTE: daemon() is a non-standard GNU C library interface (based on a
|
* NOTE: daemon() is a non-standard GNU C library interface (based on a
|
||||||
* BSD interface of the same way which behaves slightly differently).
|
* BSD interface of the same name which behaves slightly differently).
|
||||||
* The interfaces defined at OpenGroup.org are the interfaces that govern
|
* The interfaces defined at OpenGroup.org are the interfaces that govern
|
||||||
* NuttX. deamon() is only described in the Linux man pages like:
|
* NuttX. daemon() is only described in the Linux man pages like:
|
||||||
* http://man7.org/linux/man-pages/man3/daemon.3.html
|
* http://man7.org/linux/man-pages/man3/daemon.3.html
|
||||||
*
|
*
|
||||||
* Limitations:
|
* Limitations:
|
||||||
@@ -59,7 +59,7 @@
|
|||||||
* be translated to NuttX. The above mentioned web page states:
|
* be translated to NuttX. The above mentioned web page states:
|
||||||
*
|
*
|
||||||
* (This function forks, and if the fork(2) succeeds, the parent calls
|
* (This function forks, and if the fork(2) succeeds, the parent calls
|
||||||
* _exit(2), so that further errors are seen by the child only.) On
|
* _exit(2), so that further errors are seen by the child only.)
|
||||||
*
|
*
|
||||||
* So the basic operation of the NuttX daemon() is different. The GNU C
|
* So the basic operation of the NuttX daemon() is different. The GNU C
|
||||||
* library daemon() begins will logic like:
|
* library daemon() begins will logic like:
|
||||||
|
|||||||
@@ -32,10 +32,10 @@
|
|||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* Name: foc_current_controler
|
* Name: foc_current_controller
|
||||||
*
|
*
|
||||||
* Description:
|
* Description:
|
||||||
* This function implements FOC current controler algorithm.
|
* This function implements FOC current controller algorithm.
|
||||||
*
|
*
|
||||||
* Input Parameters:
|
* Input Parameters:
|
||||||
* foc - (in/out) pointer to the FOC data
|
* foc - (in/out) pointer to the FOC data
|
||||||
@@ -46,7 +46,7 @@
|
|||||||
*
|
*
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
static void foc_current_controler(FAR struct foc_data_f32_s *foc,
|
static void foc_current_controller(FAR struct foc_data_f32_s *foc,
|
||||||
FAR dq_frame_f32_t *v_dq_req)
|
FAR dq_frame_f32_t *v_dq_req)
|
||||||
{
|
{
|
||||||
FAR pid_controller_f32_t *id_pid = &foc->id_pid;
|
FAR pid_controller_f32_t *id_pid = &foc->id_pid;
|
||||||
@@ -404,9 +404,9 @@ void foc_current_control(FAR struct foc_data_f32_s *foc,
|
|||||||
|
|
||||||
foc_idq_ref_set(foc, idq_ref);
|
foc_idq_ref_set(foc, idq_ref);
|
||||||
|
|
||||||
/* Run FOC current controler (current dq -> voltage dq) */
|
/* Run FOC current controller (current dq -> voltage dq) */
|
||||||
|
|
||||||
foc_current_controler(foc, vdq_ref);
|
foc_current_controller(foc, vdq_ref);
|
||||||
|
|
||||||
/* DQ voltage compensation */
|
/* DQ voltage compensation */
|
||||||
|
|
||||||
@@ -418,7 +418,7 @@ void foc_current_control(FAR struct foc_data_f32_s *foc,
|
|||||||
* Name: foc_vabmod_get
|
* Name: foc_vabmod_get
|
||||||
*
|
*
|
||||||
* Description:
|
* Description:
|
||||||
* Get result from the FOC controler (foc_current_control or
|
* Get result from the FOC controller (foc_current_control or
|
||||||
* foc_voltage_control)
|
* foc_voltage_control)
|
||||||
*
|
*
|
||||||
* Input Parameters:
|
* Input Parameters:
|
||||||
|
|||||||
@@ -32,10 +32,10 @@
|
|||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* Name: foc_current_controler_b16
|
* Name: foc_current_controller_b16
|
||||||
*
|
*
|
||||||
* Description:
|
* Description:
|
||||||
* This function implements FOC current controler algorithm.
|
* This function implements FOC current controller algorithm.
|
||||||
*
|
*
|
||||||
* Input Parameters:
|
* Input Parameters:
|
||||||
* foc - (in/out) pointer to the FOC data
|
* foc - (in/out) pointer to the FOC data
|
||||||
@@ -46,7 +46,7 @@
|
|||||||
*
|
*
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
static void foc_current_controler_b16(FAR struct foc_data_b16_s *foc,
|
static void foc_current_controller_b16(FAR struct foc_data_b16_s *foc,
|
||||||
FAR dq_frame_b16_t *v_dq_req)
|
FAR dq_frame_b16_t *v_dq_req)
|
||||||
{
|
{
|
||||||
FAR pid_controller_b16_t *id_pid = &foc->id_pid;
|
FAR pid_controller_b16_t *id_pid = &foc->id_pid;
|
||||||
@@ -405,9 +405,9 @@ void foc_current_control_b16(FAR struct foc_data_b16_s *foc,
|
|||||||
|
|
||||||
foc_idq_ref_set_b16(foc, idq_ref);
|
foc_idq_ref_set_b16(foc, idq_ref);
|
||||||
|
|
||||||
/* Run FOC current controler (current dq -> voltage dq) */
|
/* Run FOC current controller (current dq -> voltage dq) */
|
||||||
|
|
||||||
foc_current_controler_b16(foc, vdq_ref);
|
foc_current_controller_b16(foc, vdq_ref);
|
||||||
|
|
||||||
/* DQ voltage compensation */
|
/* DQ voltage compensation */
|
||||||
|
|
||||||
@@ -419,7 +419,7 @@ void foc_current_control_b16(FAR struct foc_data_b16_s *foc,
|
|||||||
* Name: foc_vabmod_get_b16
|
* Name: foc_vabmod_get_b16
|
||||||
*
|
*
|
||||||
* Description:
|
* Description:
|
||||||
* Get result from the FOC controler (foc_current_control or
|
* Get result from the FOC controller (foc_current_control or
|
||||||
* foc_voltage_control)
|
* foc_voltage_control)
|
||||||
*
|
*
|
||||||
* Input Parameters:
|
* Input Parameters:
|
||||||
|
|||||||
@@ -159,7 +159,7 @@ float motor_openloop_angle_get(FAR struct openloop_data_f32_s *op)
|
|||||||
* Initialize motor angle structure
|
* Initialize motor angle structure
|
||||||
*
|
*
|
||||||
* Input Parameters:
|
* Input Parameters:
|
||||||
* angle - (in/out) pointer to the motor angle strucutre
|
* angle - (in/out) pointer to the motor angle structure
|
||||||
* p - (in) number of the motor pole pairs
|
* p - (in) number of the motor pole pairs
|
||||||
*
|
*
|
||||||
* Returned Value:
|
* Returned Value:
|
||||||
|
|||||||
@@ -280,7 +280,7 @@ static void svm3_duty_calc(FAR struct svm3_state_f32_s *s,
|
|||||||
* Voltage vector definitions in 3-phase SVM:
|
* Voltage vector definitions in 3-phase SVM:
|
||||||
*
|
*
|
||||||
* |---------|-----------|--------------------|-----------------|
|
* |---------|-----------|--------------------|-----------------|
|
||||||
* | Voltage | swithcing | Line to neutral | Line to line |
|
* | Voltage | switching | Line to neutral | Line to line |
|
||||||
* | vector | vectors | voltage | voltage |
|
* | vector | vectors | voltage | voltage |
|
||||||
* | |-----------|--------------------|-----------------|
|
* | |-----------|--------------------|-----------------|
|
||||||
* | | a | b | c | Van | Vbn | Vcn | Vab | Vbe | Vca |
|
* | | a | b | c | Van | Vbn | Vcn | Vab | Vbe | Vca |
|
||||||
|
|||||||
@@ -280,7 +280,7 @@ static void svm3_duty_calc_b16(FAR struct svm3_state_b16_s *s,
|
|||||||
* Voltage vector definitions in 3-phase SVM:
|
* Voltage vector definitions in 3-phase SVM:
|
||||||
*
|
*
|
||||||
* |---------|-----------|--------------------|-----------------|
|
* |---------|-----------|--------------------|-----------------|
|
||||||
* | Voltage | swithcing | Line to neutral | Line to line |
|
* | Voltage | switching | Line to neutral | Line to line |
|
||||||
* | vector | vectors | voltage | voltage |
|
* | vector | vectors | voltage | voltage |
|
||||||
* | |-----------|--------------------|-----------------|
|
* | |-----------|--------------------|-----------------|
|
||||||
* | | a | b | c | Van | Vbn | Vcn | Vab | Vbe | Vca |
|
* | | a | b | c | Van | Vbn | Vcn | Vab | Vbe | Vca |
|
||||||
|
|||||||
+1
-1
@@ -23,7 +23,7 @@ CXXSRCS += libxx_delete.cxx libxx_delete_sized.cxx libxx_deletea.cxx
|
|||||||
CXXSRCS += libxx_deletea_sized.cxx libxx_new.cxx libxx_newa.cxx
|
CXXSRCS += libxx_deletea_sized.cxx libxx_new.cxx libxx_newa.cxx
|
||||||
CXXSRCS += libxx_stdthrow.cxx
|
CXXSRCS += libxx_stdthrow.cxx
|
||||||
|
|
||||||
# Note: Our implmenetations of operator new are not conforming to
|
# Note: Our implementations of operator new are not conforming to
|
||||||
# the standard. (no bad_alloc implementation)
|
# the standard. (no bad_alloc implementation)
|
||||||
#
|
#
|
||||||
# libxx_new.cxx:64:11: error: 'operator new' is missing exception specification
|
# libxx_new.cxx:64:11: error: 'operator new' is missing exception specification
|
||||||
|
|||||||
Reference in New Issue
Block a user