Sergey
5 years ago
3 changed files with 39 additions and 2 deletions
@ -0,0 +1,15 @@ |
|||||
|
#include "mks_wifi.h" |
||||
|
|
||||
|
void mks_wifi_init(void){ |
||||
|
DEBUG("Init MKS WIFI"); |
||||
|
SET_INPUT_PULLUP(MKS_WIFI_IO0); |
||||
|
attachInterrupt(MKS_WIFI_IO0, mks_wifi_io0_irq, FALLING); |
||||
|
} |
||||
|
|
||||
|
|
||||
|
void mks_wifi_io0_irq(void){ |
||||
|
|
||||
|
INFO("IO0 Irq"); |
||||
|
|
||||
|
} |
||||
|
|
@ -0,0 +1,13 @@ |
|||||
|
#ifndef MKS_WIFI_H |
||||
|
#define MKS_WIFI_H |
||||
|
|
||||
|
#include "../../MarlinCore.h" |
||||
|
#include "../../inc/MarlinConfig.h" |
||||
|
#include "../../libs/Segger/log.h" |
||||
|
|
||||
|
void mks_wifi_init(void); |
||||
|
void mks_wifi_io0_irq(void); |
||||
|
|
||||
|
|
||||
|
|
||||
|
#endif |
Loading…
Reference in new issue