Skip to content

Commit

Permalink
Fixes to PWM compilation.
Browse files Browse the repository at this point in the history
  • Loading branch information
slav-at-attachix committed Oct 25, 2017
1 parent 23629bd commit e54234c
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion 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..da4c3f1 100644
index 5e7f218..0386a06 100644
--- a/pwm.c
+++ b/pwm.c
@@ -16,6 +16,8 @@
Expand All @@ -11,3 +11,12 @@ index 5e7f218..da4c3f1 100644
/* Set the following three defines to your needs */

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

-static void pwm_intr_handler(void)
+static void 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)) {

0 comments on commit e54234c

Please sign in to comment.