URL
https://opencores.org/ocsvn/neorv32/neorv32/trunk
[/] [neorv32/] [trunk/] [sw/] [lib/] [source/] [neorv32_pwm.c] - Diff between revs 60 and 61
Go to most recent revision |
Show entire file |
Details |
Blame |
View Log
Rev 60 |
Rev 61 |
Line 88... |
Line 88... |
PWM_CT &= ~((uint32_t)(1 << PWM_CT_EN));
|
PWM_CT &= ~((uint32_t)(1 << PWM_CT_EN));
|
}
|
}
|
|
|
|
|
/**********************************************************************//**
|
/**********************************************************************//**
|
|
* Enable pulse width modulation controller.
|
|
**************************************************************************/
|
|
void neorv32_pwm_enable(void) {
|
|
|
|
PWM_CT |= ((uint32_t)(1 << PWM_CT_EN));
|
|
}
|
|
|
|
|
|
/**********************************************************************//**
|
* Get number of implemented channels.
|
* Get number of implemented channels.
|
* @warning This function will override all duty cycle configuration registers.
|
* @warning This function will override all duty cycle configuration registers.
|
*
|
*
|
* @return Number of implemented channels.
|
* @return Number of implemented channels.
|
**************************************************************************/
|
**************************************************************************/
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.