mirror of
https://github.com/apache/nuttx.git
synced 2026-06-08 01:42:58 +08:00
Run codespell -w against all files
and fix the wrong correction
This commit is contained in:
+1
-1
@@ -109,7 +109,7 @@ extern "C"
|
||||
*
|
||||
* Description:
|
||||
* dlsymtab() is a non-standard shared library interface. It selects the
|
||||
* symbol table to use when binding a shared libary to the base firmware
|
||||
* symbol table to use when binding a shared library to the base firmware
|
||||
* which may be in FLASH memory.
|
||||
*
|
||||
* Input Parameters:
|
||||
|
||||
+1
-1
@@ -195,7 +195,7 @@ struct float_sat_s
|
||||
|
||||
typedef struct float_sat_s float_sat_t;
|
||||
|
||||
/* PI/PID controler state structure */
|
||||
/* PI/PID controller state structure */
|
||||
|
||||
struct pid_controller_s
|
||||
{
|
||||
|
||||
+1
-1
@@ -54,7 +54,7 @@
|
||||
#define b8ONE 0x0100 /* 1 */
|
||||
#define b8HALF 0x0080 /* 0.5 */
|
||||
#define b8ONETENTH 0x001a /* 0.1 (acutally 0.1015625) */
|
||||
#define b8ONEHUNDRTH 0x0003 /* 0.01 (actualy 0.0117198765) */
|
||||
#define b8ONEHUNDRTH 0x0003 /* 0.01 (actually 0.0117198765) */
|
||||
#define b8HALFPI 0x0192 /* 1.5703125 */
|
||||
#define b8PI 0x0324 /* 3.1406250 */
|
||||
#define b8TWOPI 0x0648 /* 6.2812500 */
|
||||
|
||||
@@ -76,7 +76,7 @@
|
||||
* BTPROTO_L2CAP
|
||||
* L2CAP sockets give sequential packet access over channels to other
|
||||
* Bluetooth devices and make use of the bt_psm field in the sockaddr_bt_s
|
||||
* structure to select the Protocol/Sevice Multiplexer to specify when
|
||||
* structure to select the Protocol/Service Multiplexer to specify when
|
||||
* making connections. If the special value of L2CAP_PSM_ANY is bound
|
||||
* when the listen() call is made, the next available PSM from the
|
||||
* dynamic range above 0x1001 will be selected and may be discovered
|
||||
|
||||
@@ -2339,7 +2339,7 @@ int up_rtc_settime(FAR const struct timespec *tp);
|
||||
* signal tasks in user space. A value of NULL can be passed
|
||||
* in order to detach and disable the PHY interrupt.
|
||||
* arg - The argument that will accompany the interrupt
|
||||
* enable - A function pointer that be unsed to enable or disable the
|
||||
* enable - A function pointer that be unused to enable or disable the
|
||||
* PHY interrupt.
|
||||
*
|
||||
* Returned Value:
|
||||
|
||||
@@ -159,7 +159,7 @@ void board_early_initialize(void);
|
||||
* specific device drivers for which board_early_initialize() is not
|
||||
* suitable.
|
||||
*
|
||||
* Waiting for events, use of I2C, SPI, etc are permissable in the context
|
||||
* Waiting for events, use of I2C, SPI, etc are permissible in the context
|
||||
* of board_late_initialize(). That is because board_late_initialize()
|
||||
* will run on a temporary, internal kernel thread.
|
||||
*
|
||||
|
||||
@@ -314,7 +314,7 @@
|
||||
# define CAN_ERROR2_BIT1 (1 << 4) /* Bit 4: Unable to send recessive bit */
|
||||
# define CAN_ERROR2_OVERLOAD (1 << 5) /* Bit 5: Bus overload */
|
||||
# define CAN_ERROR2_ACTIVE (1 << 6) /* Bit 6: Active error announcement */
|
||||
# define CAN_ERROR2_TX (1 << 7) /* Bit 7: Error occured on transmission */
|
||||
# define CAN_ERROR2_TX (1 << 7) /* Bit 7: Error occurred on transmission */
|
||||
|
||||
/* Data[3]: Error in CAN protocol. This provides the loation of the error. */
|
||||
|
||||
@@ -799,7 +799,7 @@ int can_txdone(FAR struct can_dev_s *dev);
|
||||
* another transfer.
|
||||
*
|
||||
* If the CAN hardware supports a H/W FIFO, can_txdone() is not called
|
||||
* when the tranfer is complete, but rather when the transfer is queued in
|
||||
* when the transfer is complete, but rather when the transfer is queued in
|
||||
* the H/W FIFO. When the H/W FIFO becomes full, then dev_txready() will
|
||||
* report false and the number of queued messages in the S/W FIFO will grow.
|
||||
*
|
||||
|
||||
@@ -137,7 +137,7 @@ enum kbd_keycode_e
|
||||
KEYCODE_MEMCLEAR, /* Memory clear */
|
||||
KEYCODE_MEMRECALL, /* Memory recall */
|
||||
KEYCODE_MEMADD, /* Memory add */
|
||||
KEYCODE_MEMSUB, /* Memory substract */
|
||||
KEYCODE_MEMSUB, /* Memory subtract */
|
||||
KEYCODE_MEMMUL, /* Memory multiply */
|
||||
KEYCODE_MEMDIV, /* Memory divide */
|
||||
|
||||
|
||||
@@ -153,7 +153,7 @@
|
||||
# define XK_Zen_Koho 0xff3d /* Multiple/All Candidate(s) */
|
||||
# define XK_Mae_Koho 0xff3e /* Previous Candidate */
|
||||
|
||||
/* 0xff31 thru 0xff3f are under XK_KOREAN */
|
||||
/* 0xff31 through 0xff3f are under XK_KOREAN */
|
||||
|
||||
/* Cursor control & motion */
|
||||
|
||||
@@ -227,7 +227,7 @@
|
||||
# define XK_KP_8 0xffb8
|
||||
# define XK_KP_9 0xffb9
|
||||
|
||||
/* Auxilliary functions; note the duplicate definitions for left and right
|
||||
/* Auxiliary functions; note the duplicate definitions for left and right
|
||||
* function keys; Sun keyboards and a few other manufactures have such
|
||||
* function key groups on the left and/or right sides of the keyboard.
|
||||
* We've not found a keyboard with more than 35 function keys total.
|
||||
|
||||
@@ -228,7 +228,7 @@ void sched_garbage_collection(void);
|
||||
*
|
||||
* Certainly there is a race condition involved in sampling the garbage
|
||||
* state. The looping nature of the IDLE loops should catch any missed
|
||||
* garbage from the test on the next time arround.
|
||||
* garbage from the test on the next time around.
|
||||
*/
|
||||
|
||||
bool sched_have_garbage(void);
|
||||
|
||||
@@ -213,7 +213,7 @@ struct ili9340_lcd_s
|
||||
{
|
||||
/* Interface to control the ILI9340 lcd driver
|
||||
*
|
||||
* - select Select the device (as neccessary) before performing any
|
||||
* - select Select the device (as necessary) before performing any
|
||||
* operations.
|
||||
* - deselect Deselect the device (as necessary).
|
||||
* - sendcmd Send specific command to the LCD driver.
|
||||
@@ -263,7 +263,7 @@ extern "C"
|
||||
* Name: ili9340_initialize
|
||||
*
|
||||
* Description:
|
||||
* Initialize the LCD video driver internal sturcture. Also initialize the
|
||||
* Initialize the LCD video driver internal structure. Also initialize the
|
||||
* lcd hardware if not done. The control of the LCD driver is depend on the
|
||||
* selected MCU interface and part of the platform specific subdriver (see
|
||||
* config/stm32f429i-disco/src/stm32_ili93404ws.c)
|
||||
|
||||
@@ -210,7 +210,7 @@ struct ili9341_lcd_s
|
||||
{
|
||||
/* Interface to control the ILI9341 lcd driver
|
||||
*
|
||||
* - select Select the device (as neccessary) before performing any operations.
|
||||
* - select Select the device (as necessary) before performing any operations.
|
||||
* - deselect Deselect the device (as necessary).
|
||||
* - sendcmd Send specific command to the LCD driver.
|
||||
* - sendparam Send specific parameter to the LCD driver.
|
||||
@@ -260,7 +260,7 @@ extern "C"
|
||||
* Name: ili9341_initialize
|
||||
*
|
||||
* Description:
|
||||
* Initialize the LCD video driver internal sturcture. Also initialize the
|
||||
* Initialize the LCD video driver internal structure. Also initialize the
|
||||
* lcd hardware if not done. The control of the LCD driver is depend on the
|
||||
* selected MCU interface and part of the platform specific subdriver (see
|
||||
* config/stm32f429i-disco/src/stm32_ili93414ws.c)
|
||||
|
||||
@@ -71,7 +71,7 @@ struct lpm013m091a_lcd_s
|
||||
{
|
||||
/* Interface to control the LPM013M091A lcd driver
|
||||
*
|
||||
* - select Select the device (as neccessary) before performing
|
||||
* - select Select the device (as necessary) before performing
|
||||
* any operations.
|
||||
* - deselect Deselect the device (as necessary).
|
||||
* - sendcmd Send specific command to the LCD driver.
|
||||
@@ -109,7 +109,7 @@ struct lpm013m091a_lcd_s
|
||||
* Name: lpm013m091a_initialize
|
||||
*
|
||||
* Description:
|
||||
* Initialize the LCD video driver internal sturcture. Also initialize the
|
||||
* Initialize the LCD video driver internal structure. Also initialize the
|
||||
* lcd hardware if not done. The control of the LCD driver is depend on the
|
||||
* selected MCU interface and part of the platform specific subdriver
|
||||
*
|
||||
|
||||
@@ -85,7 +85,7 @@ struct st7565_lcd_s
|
||||
/* Interface to control the st7565 like lcd driver
|
||||
*
|
||||
* - reset Switch reset pin of LCD (optional but as your risk).
|
||||
* - select Select the device (as neccessary) before performing any
|
||||
* - select Select the device (as necessary) before performing any
|
||||
* operations.
|
||||
* - deselect Deselect the device (as necessary).
|
||||
* - cmddata Select command (A0 = 0) or data (A0 = 1) mode .
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
/**************************************************************************************
|
||||
* include/nuttx/lcd/ug-2864ambag01.h
|
||||
*
|
||||
* Driver for Univision UG-2864AMBAG01 OLED display (wih SH1101A controller) in SPI
|
||||
* Driver for Univision UG-2864AMBAG01 OLED display (with SH1101A controller) in SPI
|
||||
* mode
|
||||
*
|
||||
* Copyright (C) 2012 Gregory Nutt. All rights reserved.
|
||||
|
||||
@@ -102,7 +102,7 @@ extern "C"
|
||||
*
|
||||
* Description:
|
||||
* This function read an the ONFI signature at address of 20h to detect
|
||||
* if the device is ONFI compatiable.
|
||||
* if the device is ONFI compatible.
|
||||
*
|
||||
* Input Parameters:
|
||||
* cmdaddr - NAND command address base
|
||||
|
||||
@@ -534,7 +534,7 @@ bool net_ipv6addr_maskcmp(const net_ipv6addr_t addr1,
|
||||
*
|
||||
* NOTES:
|
||||
* 1. This function does not check for the broadcast address
|
||||
* 255.255.255.255. That must be performed as a seperate check.
|
||||
* 255.255.255.255. That must be performed as a separate check.
|
||||
* 2. You must also separately check if the ipaddress lies on the sub-net
|
||||
* using, perhaps, net_ipv4addr_maskcmp().
|
||||
*
|
||||
|
||||
@@ -373,7 +373,7 @@ struct mld_mcast_listen_done_s
|
||||
};
|
||||
|
||||
/* This structure represents the overall MLD state for a single network.
|
||||
* This structure in included withing the net_driver_s structure.
|
||||
* This structure in included within the net_driver_s structure.
|
||||
*
|
||||
* There will be a group for the all systems group address but this
|
||||
* will not run the state machine as it is used to kick off reports
|
||||
|
||||
@@ -130,7 +130,7 @@
|
||||
# error "CONFIG_PAGING_NPPAGED must be less than CONFIG_PAGING_NVPAGED"
|
||||
#endif
|
||||
|
||||
/* The size of physical and virutal paged address regions will then be: */
|
||||
/* The size of physical and virtual paged address regions will then be: */
|
||||
|
||||
#define PG_PAGED_PSIZE (CONFIG_PAGING_NPPAGED << PAGESHIFT)
|
||||
#define PG_PAGED_VSIZE (CONFIG_PAGING_NVPAGED << PAGESHIFT)
|
||||
|
||||
@@ -220,7 +220,7 @@ int battery_charger_register(FAR const char *devpath,
|
||||
*
|
||||
* CONFIG_BATTERY_CHARGER - Upper half battery charger driver support
|
||||
* CONFIG_I2C - I2C support
|
||||
* CONFIG_I2C_BQ2425X - And the driver must be explictly selected.
|
||||
* CONFIG_I2C_BQ2425X - And the driver must be explicitly selected.
|
||||
*
|
||||
* Input Parameters:
|
||||
* i2c - An instance of the I2C interface to use to communicate with
|
||||
@@ -269,7 +269,7 @@ FAR struct battery_charger_dev_s *bq2425x_initialize(FAR struct i2c_master_s *i2
|
||||
*
|
||||
* CONFIG_BATTERY_CHARGER - Upper half battery charger driver support
|
||||
* CONFIG_I2C - I2C support
|
||||
* CONFIG_I2C_BQ2429X - And the driver must be explictly selected.
|
||||
* CONFIG_I2C_BQ2429X - And the driver must be explicitly selected.
|
||||
*
|
||||
* Input Parameters:
|
||||
* i2c - An instance of the I2C interface to use to communicate with
|
||||
|
||||
@@ -182,7 +182,7 @@ int battery_gauge_register(FAR const char *devpath,
|
||||
*
|
||||
* CONFIG_BATTERY_GAUGE - Upper half battery fuel gauge driver support
|
||||
* CONFIG_I2C - I2C support
|
||||
* CONFIG_I2C_MAX1704X - And the driver must be explictly selected.
|
||||
* CONFIG_I2C_MAX1704X - And the driver must be explicitly selected.
|
||||
* CONFIG_I2C_MAX17040 or CONFIG_I2C_MAX17041 - The driver must know which
|
||||
* chip is on the board in order to scale the voltage correctly.
|
||||
*
|
||||
|
||||
@@ -96,7 +96,7 @@
|
||||
* Name: RPTUN_GET_ADDRENV
|
||||
*
|
||||
* Description:
|
||||
* Get adress env list
|
||||
* Get address env list
|
||||
*
|
||||
* Input Parameters:
|
||||
* dev - Device-specific state data
|
||||
|
||||
@@ -318,7 +318,7 @@ void sched_note_spinabort(FAR struct tcb_s *tcb, FAR volatile void *spinlock);
|
||||
*
|
||||
* Returned Value:
|
||||
* On success, the positive, non-zero length of the return note is
|
||||
* provided. Zero is returned only if ther circular buffer is empty. A
|
||||
* provided. Zero is returned only if the circular buffer is empty. A
|
||||
* negated errno value is returned in the event of any failure.
|
||||
*
|
||||
****************************************************************************/
|
||||
|
||||
@@ -646,7 +646,7 @@
|
||||
*
|
||||
* Returned Value:
|
||||
* Number of bytes sent on success; a negated errno on failure. Here a
|
||||
* failure means only a faiure to obtain the requested reponse (due to
|
||||
* failure means only a faiure to obtain the requested response (due to
|
||||
* transport problem -- timeout, CRC, etc.). The implementation only
|
||||
* assures that the response is returned intacta and does not check errors
|
||||
* within the response itself.
|
||||
|
||||
@@ -175,7 +175,7 @@
|
||||
#define TAP_Z_ENABLE (1 << 0) /* Bit 0: Enable/disable Z-axis in tap detection */
|
||||
#define TAP_Y_ENABLE (1 << 1) /* Bit 1: Enable/disable Y-axis in tap detection */
|
||||
#define TAP_X_ENABLE (1 << 2) /* Bit 2: Enable/disable X-axis in tap detection */
|
||||
#define TAP_SUPRESS (1 << 3) /* Bit 3: Supress double tap detection */
|
||||
#define TAP_SUPRESS (1 << 3) /* Bit 3: Suppress double tap detection */
|
||||
|
||||
/* Register 0x2b - ACT_TAP_STATUS */
|
||||
|
||||
|
||||
@@ -137,7 +137,7 @@
|
||||
#define PPULSE_SHIFT 0 /* Bits 0-5: Prox. Pulse Count (1 up to 64 pulses) */
|
||||
#define PPULSE_MASK (0x3f << PPULSE_SHIFT)
|
||||
# define PPULSE_NUM(n) ((n-1) << PPULSE_SHIFT)
|
||||
#define PPLEN_SHIFT 6 /* Bits 6-7: Prox. Pulse Lenght */
|
||||
#define PPLEN_SHIFT 6 /* Bits 6-7: Prox. Pulse Length */
|
||||
#define PPLEN_MASK (3 << PPLEN_SHIFT)
|
||||
# define PPLEN_4US (0 << PPLEN_SHIFT)
|
||||
# define PPLEN_8US (1 << PPLEN_SHIFT)
|
||||
|
||||
@@ -205,7 +205,7 @@
|
||||
/****************************************************************************************************
|
||||
* Register Bit Definitions
|
||||
*
|
||||
* For this sensor it is choosen to not define each pin individually...its set bitwise like:
|
||||
* For this sensor it is chosen to not define each pin individually...its set bitwise like:
|
||||
* 0b000[0]0000 with preferred hex value! Where [] is showing the [not defined in datasheet] bit.
|
||||
* A complete definition is written below, just not all registers are validated!!
|
||||
*
|
||||
|
||||
@@ -67,7 +67,7 @@
|
||||
struct symtab_s
|
||||
{
|
||||
FAR const char *sym_name; /* A pointer to the symbol name string */
|
||||
FAR const void *sym_value; /* The value associated witht the string */
|
||||
FAR const void *sym_value; /* The value associated with the string */
|
||||
};
|
||||
|
||||
/****************************************************************************
|
||||
|
||||
@@ -764,7 +764,7 @@ struct adc_outterm_desc_s
|
||||
uint8_t ot_termtype[2]; /* 4: Terminal type */
|
||||
uint8_t ot_interm; /* 6: ID of the associated input terminal */
|
||||
uint8_t ot_srcid; /* 7: ID of unit/terminal to which terminal is connected */
|
||||
uint8_t ot_csrcid; /* 8: ID of clock entity to whcih terminal is connected */
|
||||
uint8_t ot_csrcid; /* 8: ID of clock entity to which terminal is connected */
|
||||
uint8_t ot_controls[2]; /* 9: Bits 0-1: Copy protect control,
|
||||
* Bits 2-3: Connector control
|
||||
* Bits 4-5: Overload control
|
||||
|
||||
@@ -830,7 +830,7 @@ struct cdc_ecm_funcdesc_s
|
||||
uint8_t size; /* bFunctionLength, Size of this descriptor */
|
||||
uint8_t type; /* bDescriptorType, USB_DESC_TYPE_CSINTERFACE */
|
||||
uint8_t subtype; /* bDescriptorSubType, CDC_DSUBTYPE_ECM as defined in Table 25 */
|
||||
uint8_t mac; /* iMACAddress, Index of teh 48bit Ethernet MAC address string descriptor */
|
||||
uint8_t mac; /* iMACAddress, Index of the 48bit Ethernet MAC address string descriptor */
|
||||
uint8_t stats[4]; /* bmEthernetStatistics, Indicates which Ethernet statistics functions
|
||||
* the device collects. See Table 42.
|
||||
*/
|
||||
|
||||
@@ -361,7 +361,7 @@ struct v4l2_fmtdesc
|
||||
enum v4l2_frmsizetypes
|
||||
{
|
||||
V4L2_FRMSIZE_TYPE_DISCRETE = 1, /* Discrete value */
|
||||
V4L2_FRMSIZE_TYPE_CONTINUOUS = 2, /* Continous value */
|
||||
V4L2_FRMSIZE_TYPE_CONTINUOUS = 2, /* Continuous value */
|
||||
V4L2_FRMSIZE_TYPE_STEPWISE = 3, /* Step value */
|
||||
};
|
||||
|
||||
@@ -610,12 +610,12 @@ struct v4l2_ext_controls
|
||||
{
|
||||
union
|
||||
{
|
||||
uint16_t ctrl_class; /* camera control class */
|
||||
uint16_t ctrl_class; /* camera control class */
|
||||
uint16_t which;
|
||||
};
|
||||
uint16_t count; /* number of requests */
|
||||
uint16_t error_idx; /* index in that error occured */
|
||||
struct v4l2_ext_control *controls; /* each control information */
|
||||
uint16_t count; /* number of requests */
|
||||
uint16_t error_idx; /* index in that error occurred */
|
||||
struct v4l2_ext_control *controls; /* each control information */
|
||||
};
|
||||
|
||||
FAR const struct video_devops_s *g_video_devops;
|
||||
|
||||
@@ -364,7 +364,7 @@ struct c1101_rfsettings_s
|
||||
|
||||
/* REGULATORY LIMITS */
|
||||
|
||||
uint8_t CHMIN; /* Channel Range defintion MIN .. */
|
||||
uint8_t CHMIN; /* Channel Range definition MIN .. */
|
||||
uint8_t CHMAX; /* .. and MAX */
|
||||
uint8_t PAMAX; /* at given maximum output power */
|
||||
|
||||
|
||||
@@ -69,7 +69,7 @@ struct mac802154dev_rxframe_s
|
||||
uint8_t payload[IEEE802154_MAX_PHY_PACKET_SIZE];
|
||||
uint8_t length;
|
||||
|
||||
/* In promiscous mode, the entire frame is passed to the application inside
|
||||
/* In promiscuous mode, the entire frame is passed to the application inside
|
||||
* the payload field. The offset field is used to specify the start of the
|
||||
* actual payload, skipping the 802.15.4 header.
|
||||
*/
|
||||
|
||||
@@ -940,7 +940,7 @@ struct ieee802154_assoc_req_s
|
||||
* or not. Which means we don't know whether to tranmsit immediately or try
|
||||
* to track the beacon. The standard does say that ALL command frames should
|
||||
* be sent during the Contention Access Period (CAP), but how could you send
|
||||
* it at the rigth tiem, if you are not tracking the beacon. What's worse is
|
||||
* it at the rigth time, if you are not tracking the beacon. What's worse is
|
||||
* in the association section, it says if you are tracking the beacon, to
|
||||
* send the association request during the CAP. But how can you track the
|
||||
* beacon if you are not associated. Normally tracking the beacon would be
|
||||
@@ -1678,7 +1678,7 @@ union ieee802154_primitive_u
|
||||
struct ieee802154_commstatus_ind_s commstatusind;
|
||||
struct ieee802154_syncloss_ind_s synclossind;
|
||||
|
||||
/* Foward link contained as first entry of all primitives */
|
||||
/* Forward link contained as first entry of all primitives */
|
||||
|
||||
FAR struct ieee802154_primitive_s *flink;
|
||||
};
|
||||
|
||||
+1
-1
@@ -241,7 +241,7 @@ void vsyslog(int priority, FAR const IPTR char *fmt, va_list ap);
|
||||
* Kernel Build: The kernel build is compliant with the POSIX requirement:
|
||||
* There will be one mask for for each user process, controlling the
|
||||
* SYSLOG output only form that process. There will be a separate mask
|
||||
* accessable only in the kernel code to control kernel SYSLOG output.
|
||||
* accessible only in the kernel code to control kernel SYSLOG output.
|
||||
*
|
||||
****************************************************************************/
|
||||
|
||||
|
||||
Reference in New Issue
Block a user