mirror of
https://github.com/apache/nuttx.git
synced 2026-06-07 01:05:54 +08:00
Fix use of undefined pp-token #errror, other typos.
This commit is contained in:
committed by
Gregory Nutt
parent
c6689b3093
commit
e8b5dd4528
@@ -97,11 +97,11 @@
|
||||
/* Defines for third byte of header */
|
||||
#define MAGIC_1 (char_type)'\037' /* First byte of compressed file */
|
||||
#define MAGIC_2 (char_type)'\235' /* Second byte of compressed file */
|
||||
#define BIT_MASK 0x1f /* Mask for 'number of compresssion bits' */
|
||||
#define BIT_MASK 0x1f /* Mask for 'number of compression bits' */
|
||||
/* Masks 0x20 and 0x40 are free. */
|
||||
/* I think 0x20 should mean that there is */
|
||||
/* a fourth header byte (for expansion). */
|
||||
#define BLOCK_MODE 0x80 /* Block compresssion if table is full and */
|
||||
#define BLOCK_MODE 0x80 /* Block compression if table is full and */
|
||||
/* compression rate is dropping flush tables */
|
||||
|
||||
/* the next two codes should not be changed lightly, as they must not */
|
||||
|
||||
@@ -54,8 +54,8 @@
|
||||
* Name: ferror
|
||||
*
|
||||
* Description:
|
||||
* This function will test if the last operation resulted in an eror. This
|
||||
* is used to disambiguate EOF and error conditions.
|
||||
* This function will test if the last operation resulted in an error.
|
||||
* This is used to disambiguate EOF and error conditions.
|
||||
*
|
||||
* Returned Value:
|
||||
* A non-zero value is returned to indicate the error condition.
|
||||
|
||||
@@ -68,7 +68,7 @@ config MEMCPY_64BIT
|
||||
bool "64-bit memcpy()"
|
||||
default n
|
||||
---help---
|
||||
Compiles memcpy() for architectures that suppport 64-bit operations
|
||||
Compiles memcpy() for architectures that support 64-bit operations
|
||||
efficiently.
|
||||
|
||||
endif # MEMCPY_VIK
|
||||
@@ -86,7 +86,7 @@ config MEMSET_64BIT
|
||||
default n
|
||||
depends on MEMSET_OPTSPEED
|
||||
---help---
|
||||
Compiles memset() for architectures that suppport 64-bit operations
|
||||
Compiles memset() for architectures that support 64-bit operations
|
||||
efficiently.
|
||||
|
||||
endmenu # memcpy/memset Options
|
||||
|
||||
@@ -120,7 +120,7 @@ Sample Code to Mount the ROMFS Filesystem
|
||||
****************************************************************************/
|
||||
|
||||
#ifndef CONFIG_LIBC_TZDIR
|
||||
# errror CONFIG_LIBC_TZDIR is not defined
|
||||
# error CONFIG_LIBC_TZDIR is not defined
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_DISABLE_MOUNTPOINT
|
||||
|
||||
@@ -60,7 +60,7 @@
|
||||
* Initialize open-loop data
|
||||
*
|
||||
* Input Parameters:
|
||||
* op - (in/out) pointer to the openlooop data structure
|
||||
* op - (in/out) pointer to the openloop data structure
|
||||
* max - (in) maximum openloop speed
|
||||
* per - (in) period of the open-loop control
|
||||
*
|
||||
@@ -126,7 +126,7 @@ void motor_openloop(FAR struct openloop_data_s *op, float speed, float dir)
|
||||
|
||||
op->angle += phase_step;
|
||||
|
||||
/* Normalize the open-looop angle to 0.0 - 2PI range */
|
||||
/* Normalize the open-loop angle to 0.0 - 2PI range */
|
||||
|
||||
angle_norm_2pi(&op->angle, MOTOR_ANGLE_E_MIN, MOTOR_ANGLE_E_MAX);
|
||||
}
|
||||
|
||||
@@ -287,7 +287,7 @@ void motor_observer_smo(FAR struct motor_observer_s *o, FAR ab_frame_t *i_ab,
|
||||
i_est->a = smo->F_gain * i_est->a + smo->G_gain * (v_err->a - z->a);
|
||||
i_est->b = smo->F_gain * i_est->b + smo->G_gain * (v_err->b - z->b);
|
||||
|
||||
/* Get motor current errror */
|
||||
/* Get motor current error */
|
||||
|
||||
i_err->a = i_ab->a - i_est->a;
|
||||
i_err->b = i_ab->b - i_est->b;
|
||||
|
||||
+2
-2
@@ -51,7 +51,7 @@ config LIBCXX
|
||||
if LIBCXX
|
||||
|
||||
config LIBCXX_EXCEPTION
|
||||
bool "Enable Exception Suppport"
|
||||
bool "Enable Exception Support"
|
||||
default y
|
||||
select CXX_EXCEPTION
|
||||
|
||||
@@ -78,7 +78,7 @@ config UCLIBCXX
|
||||
if UCLIBCXX
|
||||
|
||||
config UCLIBCXX_EXCEPTION
|
||||
bool "Enable Exception Suppport"
|
||||
bool "Enable Exception Support"
|
||||
default y
|
||||
select CXX_EXCEPTION
|
||||
|
||||
|
||||
Reference in New Issue
Block a user