* required):
* @par
* - Minimum value is [1us]:
- * - 1us = 0.001 ms =>
- * - 1000000 Hz = 1 MHz
- * - A pulse of 1% of the duty cycle -> 100 MHz (X)
+ * - 50us => 20 kHz
* - System clock is 80MHz.
* @par
* - Maximum value is [2147483647us] (full 32bit signed integer):
* Set period and dutycycle to HBR_PWM pin.
* Period is expected to be in us, duty cycle in percent of the period,
*
- * If period is lower than 1 or duty greater than 100, function returns without having effect.
+ * If period is lower than 50us or duty greater than 100, function returns without having effect.
*
* @param[in] period Period of PWM in us
* @param[in] duty Width of duty in %
return FAILURE;
}
- if(period < 1) {
+ if(period < 50) {
return FAILURE;
}