Fix typos in comments and identifiers

This commit is contained in:
Nathan Hartman
2021-07-16 17:37:45 -04:00
committed by Gustavo Henrique Nihei
parent 38c5837d2b
commit 609ee6b54b
41 changed files with 68 additions and 66 deletions
+6 -4
View File
@@ -1759,14 +1759,16 @@ config STACK_COLORATION
Only supported by a few architectures.
config STACK_USAGE_SAFE_PERCENT
int "Stack usage safe precent"
int "Stack usage safe percent"
default 0
range 0 100
depends on STACK_COLORATION
---help---
Stack usage precent = up_check_tcbstack() * 100 / tcb->adj_stack_size,
this should lower then STACK_USAGE_SAFE_PERCENT.
Idle thread will timely check stack usage when this macro value > 0.
Stack usage percent = up_check_tcbstack() * 100 / tcb->adj_stack_size,
this should be lower than STACK_USAGE_SAFE_PERCENT.
Idle thread will periodically check stack usage when this macro
value > 0.
N.B. This feature should not be used in production code.
+1 -1
View File
@@ -130,7 +130,7 @@ int up_cpu_paused(int cpu)
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.
*/
+1 -1
View File
@@ -63,7 +63,7 @@ config ARMV7M_USEBASEPRI
WARNING: If CONFIG_ARCH_HIPRI_INTERRUPT is selected, then you
MUST select CONFIG_ARMV7M_USEBASEPRI. The Kconfig dependencies
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
very difficult to debug.
+1 -1
View File
@@ -95,7 +95,7 @@
*
* 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
* 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.
*/
+1 -1
View File
@@ -57,7 +57,7 @@
*
* 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
* 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.
*/
+1 -1
View File
@@ -62,7 +62,7 @@ config ARMV8M_USEBASEPRI
WARNING: If CONFIG_ARCH_HIPRI_INTERRUPT is selected, then you
MUST select CONFIG_ARMV8M_USEBASEPRI. The Kconfig dependencies
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
very difficult to debug.
+1 -1
View File
@@ -94,7 +94,7 @@
*
* 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
* 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.
*/
+1 -1
View File
@@ -57,7 +57,7 @@
*
* 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
* 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.
*/
+1 -1
View File
@@ -39,7 +39,7 @@ extern "C"
#endif
/****************************************************************************
* Public Function Protoypes
* Public Function Prototypes
****************************************************************************/
/****************************************************************************
+2 -2
View File
@@ -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
* the above enter_critical_setion() would call up_cpu_paused()
* 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
* during up_enable_irq() and up_disable_irq(). This is allowed
* because IRQ control logic does not interact wtih the scheduler.
* 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))
+1 -1
View File
@@ -39,7 +39,7 @@ extern "C"
#endif
/****************************************************************************
* Public Function Protoypes
* Public Function Prototypes
****************************************************************************/
int cxd56_emmcinitialize(void);
+1 -1
View File
@@ -54,7 +54,7 @@
#define CXD56_GNSS_OPMOD_1PSS 5
/****************************************************************************
* Public Function Protoypes
* Public Function Prototypes
****************************************************************************/
/* Start a positioning
+1 -1
View File
@@ -48,7 +48,7 @@ extern "C"
#endif
/****************************************************************************
* Public Function Protoypes
* Public Function Prototypes
****************************************************************************/
int cxd56_sphinitialize(FAR const char *devname);
+1 -1
View File
@@ -680,7 +680,7 @@
****************************************************************************/
/* 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
+2 -2
View File
@@ -437,10 +437,10 @@ int stm32_configgpio(uint32_t cfgset);
* Description:
* 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
* whether it was previsouly selected as alternative function
* whether it was previously selected as alternative function
* (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'
* while it should operate in PWM mode could produce excessive on-board
* currents and trigger over-current/alarm function.
+2 -2
View File
@@ -344,10 +344,10 @@ int stm32_configgpio(uint32_t cfgset)
* Description:
* 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
* whether it was previsouly selected as alternative function
* whether it was previously selected as alternative function
* (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'
* while it should operate in PWM mode could produce excessive on-board
* currents and trigger over-current/alarm function.
+2 -2
View File
@@ -262,10 +262,10 @@ int stm32_configgpio(uint32_t cfgset);
* Description:
* 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
* whether it was previsouly selected as alternative function
* whether it was previously selected as alternative function
* (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'
* while it should operate in PWM mode could produce excessive on-board
* currents and trigger over-current/alarm function.
+1 -1
View File
@@ -327,7 +327,7 @@ int stm32_configgpio(uint32_t cfgset)
* whether it was previously selected as alternative function
* (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'
* while it should operate in PWM mode could produce excessive on-board
* currents and trigger over-current/alarm function.
+1 -1
View File
@@ -270,7 +270,7 @@ int stm32_configgpio(uint32_t cfgset);
* whether it was previously selected as alternative function
* (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'
* while it should operate in PWM mode could produce excessive on-board
* currents and trigger over-current/alarm function.
+1 -1
View File
@@ -292,7 +292,7 @@ int stm32_configgpio(uint32_t cfgset);
* whether it was previously selected as alternative function
* (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'
* while it should operate in PWM mode could produce excessive on-board
* currents and trigger over-current/alarm function.
+1 -1
View File
@@ -1142,7 +1142,7 @@ struct stm32_adc_dev_s
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 */
+2 -2
View File
@@ -361,10 +361,10 @@ int stm32l4_configgpio(uint32_t cfgset)
* Description:
* 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
* whether it was previsouly selected as alternative function
* whether it was previously selected as alternative function
* (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'
* while it should operate in PWM mode could produce excessive on-board
* currents and trigger over-current/alarm function.
+2 -2
View File
@@ -272,10 +272,10 @@ int stm32l4_configgpio(uint32_t cfgset);
* Description:
* 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
* whether it was previsouly selected as alternative function
* whether it was previously selected as alternative function
* (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'
* while it should operate in PWM mode could produce excessive on-board
* currents and trigger over-current/alarm function.
+2 -2
View File
@@ -301,10 +301,10 @@ int stm32l5_configgpio(uint32_t cfgset)
* Description:
* 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
* whether it was previsouly selected as alternative function
* whether it was previously selected as alternative function
* (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'
* while it should operate in PWM mode could produce excessive on-board
* currents and trigger over-current/alarm function.
+2 -2
View File
@@ -268,10 +268,10 @@ int stm32l5_configgpio(uint32_t cfgset);
* Description:
* 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
* whether it was previsouly selected as alternative function
* whether it was previously selected as alternative function
* (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'
* while it should operate in PWM mode could produce excessive on-board
* currents and trigger over-current/alarm function.
+2 -2
View File
@@ -238,7 +238,7 @@
* interrupt.
*/
#define ETHER_CFG_AL1_INT_PRIORTY (15)
#define ETHER_CFG_AL1_INT_PRIORITY (15)
/* Use LINKSTA signal for detect link status changes
* 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 */
ipl = ETHER_CFG_AL1_INT_PRIORTY;
ipl = ETHER_CFG_AL1_INT_PRIORITY;
/* Disable group interrupts */
+1 -1
View File
@@ -1692,7 +1692,7 @@ config ARCH_BOARD_STM32_BUTTERFLY2
select ARCH_HAVE_BUTTONS
---help---
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
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;
}
/* Regiter the Segment LCD */
/* Register the Segment LCD */
snprintf(devpath, 12, "/dev/slcd%d", devno);
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;
}
/* Regiter the Segment LCD */
/* Register the Segment LCD */
snprintf(devpath, 12, "/dev/slcd%d", devno);
ret = pcf8574_lcd_backpack_register(devpath, i2c, &cfg);
+1 -1
View File
@@ -98,7 +98,7 @@ Configurations
- Ethernet
- DHCP Client
- iperf
- telnet deamon
- telnet daemon
File Systems:
- FAT filesystem
+1 -1
View File
@@ -20,7 +20,7 @@ config MOTOR_FOC_SHUNTS
default 3
---help---
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
bool "FOC trace support"
+1 -1
View File
@@ -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_ref; /* Requested current for the FOC
* current controler
* current controller
*/
pid_controller_f32_t id_pid; /* Current d-axis component PI controller */
+1 -1
View File
@@ -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_ref; /* Requested current for the FOC
* current controler
* current controller
*/
pid_controller_b16_t id_pid; /* Current d-axis component PI controller */
+2 -2
View File
@@ -12,14 +12,14 @@ config LIBC_EXECFUNCS
---help---
Enable support for the exec[l|v] family of functions that can be
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
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 program from the file system.
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
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
+3 -3
View File
@@ -44,9 +44,9 @@
* the controlling terminal and run in the background as system daemons.
*
* 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
* 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
*
* Limitations:
@@ -59,7 +59,7 @@
* be translated to NuttX. The above mentioned web page states:
*
* (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
* library daemon() begins will logic like:
+6 -6
View File
@@ -32,10 +32,10 @@
****************************************************************************/
/****************************************************************************
* Name: foc_current_controler
* Name: foc_current_controller
*
* Description:
* This function implements FOC current controler algorithm.
* This function implements FOC current controller algorithm.
*
* Input Parameters:
* 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 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);
/* 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 */
@@ -418,7 +418,7 @@ void foc_current_control(FAR struct foc_data_f32_s *foc,
* Name: foc_vabmod_get
*
* Description:
* Get result from the FOC controler (foc_current_control or
* Get result from the FOC controller (foc_current_control or
* foc_voltage_control)
*
* Input Parameters:
+6 -6
View File
@@ -32,10 +32,10 @@
****************************************************************************/
/****************************************************************************
* Name: foc_current_controler_b16
* Name: foc_current_controller_b16
*
* Description:
* This function implements FOC current controler algorithm.
* This function implements FOC current controller algorithm.
*
* Input Parameters:
* 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 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);
/* 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 */
@@ -419,7 +419,7 @@ void foc_current_control_b16(FAR struct foc_data_b16_s *foc,
* Name: foc_vabmod_get_b16
*
* Description:
* Get result from the FOC controler (foc_current_control or
* Get result from the FOC controller (foc_current_control or
* foc_voltage_control)
*
* Input Parameters:
+1 -1
View File
@@ -159,7 +159,7 @@ float motor_openloop_angle_get(FAR struct openloop_data_f32_s *op)
* Initialize motor angle structure
*
* 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
*
* Returned Value:
+1 -1
View File
@@ -280,7 +280,7 @@ static void svm3_duty_calc(FAR struct svm3_state_f32_s *s,
* 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 |
* | |-----------|--------------------|-----------------|
* | | a | b | c | Van | Vbn | Vcn | Vab | Vbe | Vca |
+1 -1
View File
@@ -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 | swithcing | Line to neutral | Line to line |
* | Voltage | switching | Line to neutral | Line to line |
* | vector | vectors | voltage | voltage |
* | |-----------|--------------------|-----------------|
* | | a | b | c | Van | Vbn | Vcn | Vab | Vbe | Vca |
+1 -1
View File
@@ -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_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)
#
# libxx_new.cxx:64:11: error: 'operator new' is missing exception specification