Common types used across HAL modules.
hal_status_t
Return type for HAL functions.
Definition: hal_types.h:17
void hal_pwm_enable(bool enable)
enable or disable the pwm signal. If disabled, nothing will show up on pins.
Definition: stm32f4_pwm.c:150
void hal_pwm_set_duty_cycle(uint8_t percent)
Sets the duty cycle 0% - 100% for the PWM signal.
Definition: stm32f4_pwm.c:168
hal_status_t hal_pwm_init(uint32_t pwm_frequency_hz)
Initializes all the hardware (GPIO, TIMER, and CHANNEL) to deliver a PWM signal.
Definition: stm32f4_pwm.c:111
void hal_pwm_set_frequency(uint32_t pwm_frequency_hz)
Sets the PWM signal frequency to a new value after the driver has already been initialized.
Definition: stm32f4_pwm.c:216