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,7 +1,13 @@
|
|||
#ifndef ARDUINO_H
|
||||
#define ARDUINO_H
|
||||
|
||||
#include <stddef.h>
|
||||
#include <stdint.h>
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
|
||||
#include "HardwareSerial.h"
|
||||
#include "Print.h"
|
||||
|
||||
#include "esp-hal-gpio.h"
|
||||
|
||||
|
@ -9,10 +15,13 @@ void pinMode(uint8_t pin, uint8_t mode);
|
|||
void digitalWrite(uint8_t pin, uint8_t val);
|
||||
int digitalRead(uint8_t pin);
|
||||
|
||||
unsigned long micros();
|
||||
// Can be previously declared as a macro in stupid eModbus
|
||||
#undef millis
|
||||
unsigned long millis();
|
||||
|
||||
void delay(unsigned long ms);
|
||||
void delayMicroseconds(unsigned long us);
|
||||
int max(int a, int b);
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue