Skip to content

Commit

Permalink
Fix setWatch on F3Discovery (fix #183)
Browse files Browse the repository at this point in the history
  • Loading branch information
gfwilliams committed Jan 22, 2015
1 parent ee69a6d commit 430f7ff
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions ChangeLog
Expand Up @@ -47,6 +47,7 @@
Added E.toString and E.toUint8Array
Made I2C.readFrom return a Uint8Array (fix #479)
Allow multiple byte OneWire reads and writes
Fix setWatch on F3Discovery (fix #183)

1v71 : Allowed WIZnet + CC3000 to be instantiated on any pins
Fix break inside loop inside case inside function (fix 428)
Expand Down
4 changes: 4 additions & 0 deletions targets/stm32/jshardware.c
Expand Up @@ -163,7 +163,11 @@ static ALWAYS_INLINE uint16_t stmPin(Pin ipin) {
}
static ALWAYS_INLINE uint32_t stmExtI(Pin ipin) {
JsvPinInfoPin pin = pinInfo[ipin].pin;
#ifdef STM32F3
return (uint32_t)(pin-JSH_PIN0); // STM32F3 is different - thanks @Frida!
#else
return (uint32_t)(1 << (pin-JSH_PIN0));
#endif
/* if (pin==JSH_PIN0 ) return EXTI_Line0;
if (pin==JSH_PIN1 ) return EXTI_Line1;
if (pin==JSH_PIN2 ) return EXTI_Line2;
Expand Down

0 comments on commit 430f7ff

Please sign in to comment.