drivers/pca9685: fix typos

This commit is contained in:
Kaspar Schleiser 2019-10-23 21:20:31 +02:00
parent 541596c893
commit a90a192648
2 changed files with 9 additions and 9 deletions

View File

@ -113,10 +113,10 @@ extern "C"
* @{ * @{
*/ */
#define PCA9685_I2C_BASE_ADDR (0x40) /**< I2C slave base address */ #define PCA9685_I2C_BASE_ADDR (0x40) /**< I2C slave base address */
#define PCA9685_I2C_ALLCALLADDR (0x70) /**< Default All Call adress */ #define PCA9685_I2C_ALLCALLADDR (0x70) /**< Default All Call address */
#define PCA9685_I2C_SUBADR1 (0x71) /**< Default Sub Call adress 1 */ #define PCA9685_I2C_SUBADR1 (0x71) /**< Default Sub Call address 1 */
#define PCA9685_I2C_SUBADR2 (0x72) /**< Default Sub Call adress 2 */ #define PCA9685_I2C_SUBADR2 (0x72) /**< Default Sub Call address 2 */
#define PCA9685_I2C_SUBADR3 (0x73) /**< Default Sub Call adress 3 */ #define PCA9685_I2C_SUBADR3 (0x73) /**< Default Sub Call address 3 */
/** @} */ /** @} */
/** /**
@ -153,7 +153,7 @@ typedef enum {
* The output driver mode defines how the outputs are configured. * The output driver mode defines how the outputs are configured.
*/ */
typedef enum { typedef enum {
PCA9685_OPEN_DRAIN = 0, /**< Open-drain structure ouptut */ PCA9685_OPEN_DRAIN = 0, /**< Open-drain structure output */
PCA9685_TOTEM_POLE = 1, /**< Totem pole structure output */ PCA9685_TOTEM_POLE = 1, /**< Totem pole structure output */
} pca9685_out_drv_t; } pca9685_out_drv_t;
@ -237,14 +237,14 @@ int pca9685_init(pca9685_t *dev, const pca9685_params_t *params);
* @brief Initialize the PCA9685 PWM device * @brief Initialize the PCA9685 PWM device
* *
* The function initializes the PWM device with the given parameters that are * The function initializes the PWM device with the given parameters that are
* used for all channels. After calling this funcion, the PWM device is * used for all channels. After calling this function, the PWM device is
* operational (powered on). That is, all outputs are active with the given * operational (powered on). That is, all outputs are active with the given
* parameters and the same duty cycle value as before the call. * parameters and the same duty cycle value as before the call.
* *
* @note * @note
* - PCA9685 works with internally with a resolution of 12 bit = 4096. * - PCA9685 works with internally with a resolution of 12 bit = 4096.
* Using a resolution that is not a power of two, will cause inaccuracy due * Using a resolution that is not a power of two, will cause inaccuracy due
* to aligment errors when scaling down the internal resolution to the * to alignment errors when scaling down the internal resolution to the
* configured resolution. * configured resolution.
* - Frequencies from 24 Hz to 1526 Hz can be used with PCF9865. * - Frequencies from 24 Hz to 1526 Hz can be used with PCF9865.
* *

View File

@ -300,7 +300,7 @@ static int _read(const pca9685_t *dev, uint8_t reg, uint8_t *data, uint32_t len)
/* acquire the I2C device */ /* acquire the I2C device */
if (i2c_acquire(dev->params.i2c_dev)) { if (i2c_acquire(dev->params.i2c_dev)) {
DEBUG_DEV("could not aquire I2C bus", dev); DEBUG_DEV("could not acquire I2C bus", dev);
return -PCA9685_ERROR_I2C; return -PCA9685_ERROR_I2C;
} }
@ -321,7 +321,7 @@ static int _write(const pca9685_t *dev, uint8_t reg, const uint8_t *data, uint32
DEBUG_DEV("reg=%02x data=%p len=%"PRIu32"", dev, reg, data, len); DEBUG_DEV("reg=%02x data=%p len=%"PRIu32"", dev, reg, data, len);
if (i2c_acquire(dev->params.i2c_dev)) { if (i2c_acquire(dev->params.i2c_dev)) {
DEBUG_DEV("could not aquire I2C bus", dev); DEBUG_DEV("could not acquire I2C bus", dev);
return -PCA9685_ERROR_I2C; return -PCA9685_ERROR_I2C;
} }