mirror of
https://github.com/dalathegreat/Battery-Emulator.git
synced 2025-10-03 09:49:32 +02:00
Add more Arduino/FreeRTOS test stubs so that eModbus builds in ESP32 mode.
This commit is contained in:
parent
9eac0a90b5
commit
55d8a24f55
12 changed files with 86 additions and 11 deletions
|
@ -1,5 +1,16 @@
|
|||
#include "Arduino.h"
|
||||
|
||||
void delay(unsigned long ms) {}
|
||||
void delayMicroseconds(unsigned long us) {}
|
||||
int digitalRead(uint8_t pin) {
|
||||
return 0;
|
||||
}
|
||||
void digitalWrite(uint8_t pin, uint8_t val) {}
|
||||
unsigned long micros() {
|
||||
return 0;
|
||||
}
|
||||
void pinMode(uint8_t pin, uint8_t mode) {}
|
||||
|
||||
int max(int a, int b) {
|
||||
return (a > b) ? a : b;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue