Skip to content

Commit

Permalink
Updated PWM to its latest version. (#1360)
Browse files Browse the repository at this point in the history
  • Loading branch information
slaff authored Apr 12, 2018
1 parent ed0ca30 commit 78da89e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
12 changes: 7 additions & 5 deletions Sming/third-party/.patches/pwm.patch
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
diff --git a/pwm.c b/pwm.c
index 5e7f218..0386a06 100644
index 6df21ac..d039908 100644
--- a/pwm.c
+++ b/pwm.c
@@ -16,6 +16,8 @@
Expand All @@ -11,12 +11,14 @@ index 5e7f218..0386a06 100644
/* Set the following three defines to your needs */

#ifndef SDK_PWM_PERIOD_COMPAT_MODE
@@ -109,7 +111,7 @@ struct timer_regs {
@@ -109,8 +111,8 @@ struct timer_regs {
};
static struct timer_regs* timer = (void*)(0x60000600);
static struct timer_regs* timer = (struct timer_regs*)(0x60000600);

-static void pwm_intr_handler(void)
+static void pwm_intr_handler(void* param)
-static void ICACHE_RAM_ATTR
-pwm_intr_handler(void)
+static void IRAM_ATTR
+pwm_intr_handler(void* param)
{
if ((pwm_state.current_set[pwm_state.current_phase].off_mask == 0) &&
(pwm_state.current_set[pwm_state.current_phase].on_mask == 0)) {
2 changes: 1 addition & 1 deletion Sming/third-party/pwm
Submodule pwm updated 2 files
+3 −0 README.md
+4 −3 pwm.c

0 comments on commit 78da89e

Please sign in to comment.