mirror of
https://github.com/apache/nuttx.git
synced 2026-05-29 20:56:47 +08:00
Fix various typos in comments. From Alan Carvalho de Assis
This commit is contained in:
+4
-4
@@ -143,7 +143,7 @@ static int can_open(FAR struct file *filep)
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
/* Increment the count of references to the device. If this the first
|
/* Increment the count of references to the device. If this is the first
|
||||||
* time that the driver has been opened for this device, then initialize
|
* time that the driver has been opened for this device, then initialize
|
||||||
* the device.
|
* the device.
|
||||||
*/
|
*/
|
||||||
@@ -453,9 +453,9 @@ static ssize_t can_write(FAR struct file *filep, FAR const char *buffer, size_t
|
|||||||
|
|
||||||
flags = irqsave();
|
flags = irqsave();
|
||||||
|
|
||||||
/* Check if the TX is inactive when we started. In certain race conditionas, there
|
/* Check if the TX is inactive when we started. In certain race conditions, there
|
||||||
* may be a pending interrupt to kick things back off, but we will here that there
|
* may be a pending interrupt to kick things back off, but we will be sure here that
|
||||||
* is not. That the hardware is IDLE and will need to be kick-started.
|
* there is not. That the hardware is IDLE and will need to be kick-started.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
inactive = dev_txempty(dev);
|
inactive = dev_txempty(dev);
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
* drivers/lcd/ssd1289.c
|
* drivers/lcd/ssd1289.c
|
||||||
*
|
*
|
||||||
* Generic LCD driver for LCDs based on the Solomon Systech SSD1289 LCD controller.
|
* Generic LCD driver for LCDs based on the Solomon Systech SSD1289 LCD controller.
|
||||||
* Think of this as a template for an LCD driver that you will proably ahve to
|
* Think of this as a template for an LCD driver that you will probably have to
|
||||||
* customize for any particular LCD hardware.
|
* customize for any particular LCD hardware.
|
||||||
*
|
*
|
||||||
* Copyright (C) 2012 Gregory Nutt. All rights reserved.
|
* Copyright (C) 2012 Gregory Nutt. All rights reserved.
|
||||||
|
|||||||
+5
-5
@@ -266,7 +266,7 @@ errout:
|
|||||||
* Name: pwm_read
|
* Name: pwm_read
|
||||||
*
|
*
|
||||||
* Description:
|
* Description:
|
||||||
* A dummy read method. This is provided only to satsify the VFS layer.
|
* A dummy read method. This is provided only to satisfy the VFS layer.
|
||||||
*
|
*
|
||||||
************************************************************************************/
|
************************************************************************************/
|
||||||
|
|
||||||
@@ -281,7 +281,7 @@ static ssize_t pwm_read(FAR struct file *filep, FAR char *buffer, size_t buflen)
|
|||||||
* Name: pwm_write
|
* Name: pwm_write
|
||||||
*
|
*
|
||||||
* Description:
|
* Description:
|
||||||
* A dummy write method. This is provided only to satsify the VFS layer.
|
* A dummy write method. This is provided only to satisfy the VFS layer.
|
||||||
*
|
*
|
||||||
************************************************************************************/
|
************************************************************************************/
|
||||||
|
|
||||||
@@ -469,7 +469,7 @@ static int pwm_ioctl(FAR struct file *filep, int cmd, unsigned long arg)
|
|||||||
/* PWMIOC_GETCHARACTERISTICS - Get the currently selected characteristics of
|
/* PWMIOC_GETCHARACTERISTICS - Get the currently selected characteristics of
|
||||||
* the pulsed output (independent of whether the output is start or stopped).
|
* the pulsed output (independent of whether the output is start or stopped).
|
||||||
*
|
*
|
||||||
* ioctl argument: A reference to struct pwm_info_s to recevie the
|
* ioctl argument: A reference to struct pwm_info_s to receive the
|
||||||
* characteristics of the pulsed output.
|
* characteristics of the pulsed output.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
@@ -569,7 +569,7 @@ static int pwm_ioctl(FAR struct file *filep, int cmd, unsigned long arg)
|
|||||||
* reset state (as if the shutdown() method had already been called).
|
* reset state (as if the shutdown() method had already been called).
|
||||||
*
|
*
|
||||||
* Input parameters:
|
* Input parameters:
|
||||||
* path - The full path to the driver to be registers in the NuttX pseudo-
|
* path - The full path to the driver to be registered in the NuttX pseudo-
|
||||||
* filesystem. The recommended convention is to name all PWM drivers
|
* filesystem. The recommended convention is to name all PWM drivers
|
||||||
* as "/dev/pwm0", "/dev/pwm1", etc. where the driver path differs only
|
* as "/dev/pwm0", "/dev/pwm1", etc. where the driver path differs only
|
||||||
* in the "minor" number at the end of the device name.
|
* in the "minor" number at the end of the device name.
|
||||||
@@ -622,7 +622,7 @@ int pwm_register(FAR const char *path, FAR struct pwm_lowerhalf_s *dev)
|
|||||||
* number of pulses is required, the 'count' value will be nonzero.
|
* number of pulses is required, the 'count' value will be nonzero.
|
||||||
* 2. The lower half driver's start() methoc must verify that it can
|
* 2. The lower half driver's start() methoc must verify that it can
|
||||||
* support the request pulse train (frequency, duty, AND pulse count).
|
* support the request pulse train (frequency, duty, AND pulse count).
|
||||||
* It it cannot, it should return an error. If the pulse count is
|
* If it cannot, it should return an error. If the pulse count is
|
||||||
* non-zero, it should set up the hardware for that number of pulses
|
* non-zero, it should set up the hardware for that number of pulses
|
||||||
* and return success. NOTE: That is CONFIG_PWM_PULSECOUNT is
|
* and return success. NOTE: That is CONFIG_PWM_PULSECOUNT is
|
||||||
* defined, the start() method receives an additional parameter
|
* defined, the start() method receives an additional parameter
|
||||||
|
|||||||
+2
-2
@@ -139,7 +139,7 @@ static int rd_close(FAR struct inode *inode)
|
|||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* Name: rd_read
|
* Name: rd_read
|
||||||
*
|
*
|
||||||
* Description: Read the specified numer of sectors
|
* Description: Read the specified number of sectors
|
||||||
*
|
*
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
@@ -329,7 +329,7 @@ int romdisk_register(int minor, uint8_t *buffer, uint32_t nsectors,
|
|||||||
|
|
||||||
snprintf(devname, 16, "/dev/ram%d", minor);
|
snprintf(devname, 16, "/dev/ram%d", minor);
|
||||||
|
|
||||||
/* Inode private data is a reference to the ramdisk device stgructure */
|
/* Inode private data is a reference to the ramdisk device structure */
|
||||||
|
|
||||||
ret = register_blockdriver(devname, &g_bops, 0, dev);
|
ret = register_blockdriver(devname, &g_bops, 0, dev);
|
||||||
if (ret < 0)
|
if (ret < 0)
|
||||||
|
|||||||
+1
-1
@@ -194,7 +194,7 @@ static void rwb_wrtimeout(FAR void *arg)
|
|||||||
FAR struct rwbuffer_s *rwb = (struct rwbuffer_s *)arg;
|
FAR struct rwbuffer_s *rwb = (struct rwbuffer_s *)arg;
|
||||||
DEBUGASSERT(rwb != NULL);
|
DEBUGASSERT(rwb != NULL);
|
||||||
|
|
||||||
/* If a timeout elpases with with write buffer activity, this watchdog
|
/* If a timeout elapses with with write buffer activity, this watchdog
|
||||||
* handler function will be evoked on the thread of execution of the
|
* handler function will be evoked on the thread of execution of the
|
||||||
* worker thread.
|
* worker thread.
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -86,7 +86,7 @@
|
|||||||
* Private Type Definitions
|
* Private Type Definitions
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
/* This structure describes the state of the upper half drivere */
|
/* This structure describes the state of the upper half driver */
|
||||||
|
|
||||||
struct qe_upperhalf_s
|
struct qe_upperhalf_s
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1467,6 +1467,7 @@ static int cdcacm_setup(FAR struct usbdevclass_driver_s *driver,
|
|||||||
{
|
{
|
||||||
memcpy(&priv->linecoding, dataout, SIZEOF_CDC_LINECODING);
|
memcpy(&priv->linecoding, dataout, SIZEOF_CDC_LINECODING);
|
||||||
}
|
}
|
||||||
|
|
||||||
ret = 0;
|
ret = 0;
|
||||||
|
|
||||||
/* If there is a registered callback to receive line status info, then
|
/* If there is a registered callback to receive line status info, then
|
||||||
@@ -1579,6 +1580,7 @@ static int cdcacm_setup(FAR struct usbdevclass_driver_s *driver,
|
|||||||
cdcacm_ep0incomplete(dev->ep0, ctrlreq);
|
cdcacm_ep0incomplete(dev->ep0, ctrlreq);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+3
-3
@@ -222,7 +222,7 @@ errout:
|
|||||||
* Name: wdog_read
|
* Name: wdog_read
|
||||||
*
|
*
|
||||||
* Description:
|
* Description:
|
||||||
* A dummy read method. This is provided only to satsify the VFS layer.
|
* A dummy read method. This is provided only to satisfy the VFS layer.
|
||||||
*
|
*
|
||||||
************************************************************************************/
|
************************************************************************************/
|
||||||
|
|
||||||
@@ -237,7 +237,7 @@ static ssize_t wdog_read(FAR struct file *filep, FAR char *buffer, size_t buflen
|
|||||||
* Name: wdog_write
|
* Name: wdog_write
|
||||||
*
|
*
|
||||||
* Description:
|
* Description:
|
||||||
* A dummy write method. This is provided only to satsify the VFS layer.
|
* A dummy write method. This is provided only to satisfy the VFS layer.
|
||||||
*
|
*
|
||||||
************************************************************************************/
|
************************************************************************************/
|
||||||
|
|
||||||
@@ -306,7 +306,7 @@ static int wdog_ioctl(FAR struct file *filep, int cmd, unsigned long arg)
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
/* cmd: WDIOC_GETSTATUS
|
/* cmd: WDIOC_GETSTATUS
|
||||||
* Description: et the status of the watchdog timer.
|
* Description: Get the status of the watchdog timer.
|
||||||
* Argument: A writeable pointer to struct watchdog_status_s.
|
* Argument: A writeable pointer to struct watchdog_status_s.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user