From e497d9794a7c79bc01b5b150a006cefbbc7a8be1 Mon Sep 17 00:00:00 2001 From: schneefux Date: Sun, 12 Jun 2016 12:21:30 +0200 Subject: add requirements to header; inline needed user_interface.h --- jimmiejammer.ino | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) (limited to 'jimmiejammer.ino') diff --git a/jimmiejammer.ino b/jimmiejammer.ino index a3616fb..ccc21d9 100644 --- a/jimmiejammer.ino +++ b/jimmiejammer.ino @@ -1,10 +1,14 @@ -// Expose Espressif SDK functionality - wrapped in ifdef so that it still -// compiles on other platforms -#ifdef ESP8266 +// based on RandDruid/esp8266-deauth (MIT) https://github.com/RandDruid/esp8266-deauth +// requires SDK v1.3: install esp8266/Arduino from git and checkout commit 1c5751460b7988041fdc80e0f28a31464cdf97a3 + +// Expose Espressif SDK functionality extern "C" { #include "user_interface.h" + typedef void (*freedom_outside_cb_t)(uint8 status); + int wifi_register_send_pkt_freedom_cb(freedom_outside_cb_t cb); + void wifi_unregister_send_pkt_freedom_cb(void); + int wifi_send_pkt_freedom(uint8 *buf, int len, bool sys_seq); } -#endif #include @@ -432,4 +436,3 @@ void loop() { } } } - -- cgit v1.3.1