Skip to content

Commit

Permalink
Use initVariant for wifio board
Browse files Browse the repository at this point in the history
  • Loading branch information
igrr committed Jan 17, 2015
1 parent 5e30a0a commit 2f39f82
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
3 changes: 1 addition & 2 deletions cores/esp8266/core_esp8266_wiring_digital.c
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ extern void __detachInterrupt(uint8_t pin)
gpio_pin_intr_state_set(pin, GPIO_PIN_INTR_DISABLE);
}

extern void __initPins()
void initPins()
{
gpio_init();
for (int i = 0; i < PINCOUNT; ++i)
Expand All @@ -207,5 +207,4 @@ extern int digitalRead(uint8_t pin) __attribute__ ((weak, alias("__digitalRead"
extern void analogWrite(uint8_t pin, int val) __attribute__ ((weak, alias("__analogWrite")));
extern void attachInterrupt(uint8_t pin, voidFuncPtr handler, int mode) __attribute__ ((weak, alias("__attachInterrupt")));
extern void detachInterrupt(uint8_t pin) __attribute__ ((weak, alias("__detachInterrupt")));
extern void initPins() __attribute__ ((weak, alias("__initPins")));

9 changes: 3 additions & 6 deletions variants/wifio/WifioWiring.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -119,10 +119,7 @@ extern "C" void analogWrite(uint8_t pin, int value) {
}
}

extern "C" void initPins()
{
__initPins();
// sync here
}

void initVariant()
{

}

0 comments on commit 2f39f82

Please sign in to comment.