Skip to content

Commit

Permalink
sniffer start
Browse files Browse the repository at this point in the history
  • Loading branch information
habazut committed Dec 24, 2024
1 parent 13488e1 commit 690fb5c
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
10 changes: 10 additions & 0 deletions Sniffer.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#ifdef ARDUINO_ARCH_ESP32
#include Sniffer.h
Sniffer::Sniffer(byte snifferpin) {
mcpwm_gpio_init(MCPWM_UNIT_0, MCPWM_CAP_0, snifferpin);
}
#endif
#include <Arduino.h>
#include "driver/mcpwm.h"
#include "soc/mcpwm_struct.h"
#include "soc/mcpwm_reg.h"
12 changes: 12 additions & 0 deletions Sniffer.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#ifdef ARDUINO_ARCH_ESP32
#include <Arduino.h>
#include "driver/mcpwm.h"
#include "soc/mcpwm_struct.h"
#include "soc/mcpwm_reg.h"

class Sniffer {
public:
Sniffer(byte snifferpin);
private:
}
#endif

0 comments on commit 690fb5c

Please sign in to comment.