mirror of
https://github.com/dalathegreat/Battery-Emulator.git
synced 2025-10-03 09:49:32 +02:00
Add working unit tests
This commit is contained in:
parent
f609d54a14
commit
995cc7784c
106 changed files with 589 additions and 582 deletions
18
test/emul/Arduino.h
Normal file
18
test/emul/Arduino.h
Normal file
|
@ -0,0 +1,18 @@
|
|||
#ifndef ARDUINO_H
|
||||
#define ARDUINO_H
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
#include "esp-hal-gpio.h"
|
||||
|
||||
void pinMode(uint8_t pin, uint8_t mode);
|
||||
void digitalWrite(uint8_t pin, uint8_t val);
|
||||
int digitalRead(uint8_t pin);
|
||||
|
||||
// Can be previously declared as a macro in stupid eModbus
|
||||
#undef millis
|
||||
unsigned long millis();
|
||||
|
||||
#define max(a, b) std::max(a, b)
|
||||
|
||||
#endif
|
Loading…
Add table
Add a link
Reference in a new issue