Fix a few typos.
This commit is contained in:
parent
472fa0cf20
commit
1338360ff7
@ -559,11 +559,11 @@ static int nunchuck_ioctl(FAR struct file *filep, int cmd, unsigned long arg)
|
|||||||
* Name: nunchuck_register
|
* Name: nunchuck_register
|
||||||
*
|
*
|
||||||
* Description:
|
* Description:
|
||||||
* Register the composite character driver as the specific device.
|
* Register the Nunchuck character driver as the specified device.
|
||||||
*
|
*
|
||||||
* Input Parameters:
|
* Input Parameters:
|
||||||
* devname - The name of the analog joystick device to be registers.
|
* devname - The name of the Nunchuck joystick device to be registered.
|
||||||
* This should be a string of the form "/priv/nunchuckN" where N is the
|
* This should be a string of the form "/dev/nunchuckN" where N is the
|
||||||
* minor device number.
|
* minor device number.
|
||||||
* i2c - An instance of the platform-specific I2C connected to Nunchuck.
|
* i2c - An instance of the platform-specific I2C connected to Nunchuck.
|
||||||
*
|
*
|
||||||
|
@ -57,8 +57,8 @@
|
|||||||
* Pre-processor Definitions
|
* Pre-processor Definitions
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
#define NUNCHUCK_ADDR 0x52 /* Nunchuck at address 0x52 */
|
#define NUNCHUCK_ADDR 0x52 /* Nunchuck at address 0x52 */
|
||||||
#define NUNCHUCK_I2C_FREQ 100000 /* 100Khz */
|
#define NUNCHUCK_I2C_FREQ 100000 /* 100Khz */
|
||||||
|
|
||||||
/* Joystick Interface *******************************************************/
|
/* Joystick Interface *******************************************************/
|
||||||
/* These definitions provide the meaning of all of the bits that may be
|
/* These definitions provide the meaning of all of the bits that may be
|
||||||
@ -94,12 +94,7 @@
|
|||||||
* state of all joystick buttons. read() never blocks. X an Y position
|
* state of all joystick buttons. read() never blocks. X an Y position
|
||||||
* data is raw converted data. Zeroing and scaling must be performed by
|
* data is raw converted data. Zeroing and scaling must be performed by
|
||||||
* the application.
|
* the application.
|
||||||
* 2) The poll() method can be used to notify a client if there is a change
|
* 2) The ioctl() method supports the commands documented below:
|
||||||
* in any of the joystick button inputs. NOTE: that semantics of poll() for
|
|
||||||
* POLLIN are atypical: The successful poll means that the button data has
|
|
||||||
* changed and has nothing to with the availability of data to be read;
|
|
||||||
* data is always available to be read.
|
|
||||||
* 3) The ioctl() method supports the commands documented below:
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* Command: NUNCHUCKIOC_SUPPORTED
|
/* Command: NUNCHUCKIOC_SUPPORTED
|
||||||
@ -136,14 +131,14 @@ struct nunchuck_sample_s
|
|||||||
|
|
||||||
nunchuck_buttonset_t nck_buttons; /* State of all buttons */
|
nunchuck_buttonset_t nck_buttons; /* State of all buttons */
|
||||||
/* Possibly padded with 1 byte here */
|
/* Possibly padded with 1 byte here */
|
||||||
int16_t js_x; /* X/horizontal position */
|
int16_t js_x; /* X/horizontal position */
|
||||||
int16_t js_y; /* Y/vertical position */
|
int16_t js_y; /* Y/vertical position */
|
||||||
|
|
||||||
/* Specific of the Nunchuck */
|
/* Specific of the Nunchuck */
|
||||||
|
|
||||||
int8_t acc_x; /* Accelerometer X */
|
int8_t acc_x; /* Accelerometer X */
|
||||||
int8_t acc_y; /* Accelerometer Y */
|
int8_t acc_y; /* Accelerometer Y */
|
||||||
int8_t acc_z; /* Accelerometer Z */
|
int8_t acc_z; /* Accelerometer Z */
|
||||||
};
|
};
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
@ -166,10 +161,10 @@ extern "C"
|
|||||||
* Name: nunchuck_register
|
* Name: nunchuck_register
|
||||||
*
|
*
|
||||||
* Description:
|
* Description:
|
||||||
* Register the composite character driver as the specified device.
|
* Register the Nunchuck character driver as the specified device.
|
||||||
*
|
*
|
||||||
* Input Parameters:
|
* Input Parameters:
|
||||||
* devname - The name of the analog joystick device to be registered.
|
* devname - The name of the Nunchuck joystick device to be registered.
|
||||||
* This should be a string of the form "/dev/nunchuckN" where N is the
|
* This should be a string of the form "/dev/nunchuckN" where N is the
|
||||||
* minor device number.
|
* minor device number.
|
||||||
* i2c - An instance of the platform-specific I2C connected to Nunchuck.
|
* i2c - An instance of the platform-specific I2C connected to Nunchuck.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user