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:
parent
b8efd8425d
commit
ac9d8e603e
@ -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)
|
||||
|
||||
|
@ -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));
|
||||
|
Loading…
Reference in New Issue
Block a user