1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

drivers/pca9685: fix typo (oscilator => oscillator)

This commit is contained in:
Alexandre Abadie 2021-01-07 22:20:49 +01:00
parent b8efd8425d
commit ac9d8e603e
No known key found for this signature in database
GPG Key ID: 1C919A403CAE1405
2 changed files with 3 additions and 3 deletions

View File

@ -130,7 +130,7 @@ extern "C"
#define PCA9685_RESOLUTION (1 << 12)
/**
* @brief Internal PCA9685 oscilator frequency is 25 MHz
* @brief Internal PCA9685 oscillator frequency is 25 MHz
*/
#define PCA9685_OSC_FREQ (25000000)

View File

@ -212,14 +212,14 @@ void pca9685_pwm_poweron(pca9685_t *dev)
/* clear the SLEEP bit */
byte &= ~PCA9685_MODE1_SLEEP;
EXEC(_write(dev, PCA9685_REG_MODE1, &byte, 1));
/* allow 500 us for oscilator to stabilize */
/* allow 500 us for oscillator to stabilize */
xtimer_usleep(500);
/* clear the RESTART bit to start all PWM channels*/
EXEC(_update(dev, PCA9685_REG_MODE1, PCA9685_MODE1_RESTART, 1));
}
else {
EXEC(_update(dev, PCA9685_REG_MODE1, PCA9685_MODE1_SLEEP, 0));
/* allow 500 us for oscilator to stabilize */
/* allow 500 us for oscillator to stabilize */
xtimer_usleep(500);
/* clear the RESTART bit to start all PWM channels*/
EXEC(_update(dev, PCA9685_REG_MODE1, PCA9685_MODE1_RESTART, 1));