Browse Source

Fix references to pwm.h

i18n
Xose Pérez 6 years ago
parent
commit
8eb1390118
3 changed files with 2 additions and 3 deletions
  1. +1
    -1
      code/espurna/libs/pwm.h
  2. +0
    -1
      code/espurna/light.ino
  3. +1
    -1
      code/espurna/pwm.c

+ 1
- 1
code/espurna/libs/pwm.h View File

@ -9,7 +9,7 @@
/*NOTE!! : DO NOT CHANGE THIS FILE*/ /*NOTE!! : DO NOT CHANGE THIS FILE*/
/*SUPPORT UP TO 8 PWM CHANNEL*/ /*SUPPORT UP TO 8 PWM CHANNEL*/
//#define PWM_CHANNEL_NUM_MAX 8
#define PWM_CHANNEL_NUM_MAX 8
struct pwm_param { struct pwm_param {
uint32 period; uint32 period;


+ 0
- 1
code/espurna/light.ino View File

@ -13,7 +13,6 @@ Copyright (C) 2016-2017 by Xose Pérez <xose dot perez at gmail dot com>
#include <vector> #include <vector>
#if LIGHT_PROVIDER == LIGHT_PROVIDER_DIMMER #if LIGHT_PROVIDER == LIGHT_PROVIDER_DIMMER
#define PWM_CHANNEL_NUM_MAX LIGHT_CHANNELS
extern "C" { extern "C" {
#include "libs/pwm.h" #include "libs/pwm.h"
} }


+ 1
- 1
code/espurna/pwm.c View File

@ -43,7 +43,7 @@
#endif #endif
#include <c_types.h> #include <c_types.h>
#include <pwm.h>
#include <libs/pwm.h>
#include <eagle_soc.h> #include <eagle_soc.h>
#include <ets_sys.h> #include <ets_sys.h>


Loading…
Cancel
Save