1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-12-25 22:43:50 +01:00

boards: fixed some PWM definitions

This commit is contained in:
Hauke Petersen 2015-10-21 13:33:56 +02:00 committed by Joakim Nohlgård
parent fecf74970e
commit 9988f00d7b
3 changed files with 5 additions and 5 deletions

View File

@ -44,7 +44,7 @@ extern "C" {
/**
* @brief PWM device and pinout configuration
*/
#define PWM_NUMOF (1)
#define PWM_NUMOF (1U)
#define PWM_0_EN (1)
/* PWM_0 device configuration */

View File

@ -120,7 +120,6 @@ static const uart_conf_t uart_config[] = {
* @name PWM configuration
* @{
*/
#define PWM_NUMOF (PWM_0_EN + PWM_1_EN)
#define PWM_0_EN 1
#define PWM_1_EN 1
#define PWM_MAX_CHANNELS 2
@ -129,7 +128,6 @@ static const uart_conf_t uart_config[] = {
#define PWM_1_CHANNELS PWM_MAX_CHANNELS
/* PWM device configuration */
#if PWM_NUMOF
static const pwm_conf_t pwm_config[] = {
#if PWM_0_EN
{TCC1, {
@ -146,7 +144,9 @@ static const pwm_conf_t pwm_config[] = {
}},
#endif
};
#endif
/* number of devices that are actually defined */
#define PWM_NUMOF (2U)
/** @} */
/**

View File

@ -110,7 +110,7 @@ extern "C" {
* @brief PWM configuration
* @{
*/
#define PWM_NUMOF (1U)
#define PWM_NUMOF (2U)
#define PWM_0_EN 1
#define PWM_1_EN 1