Add stm32f7

This commit is contained in:
fvanroie 2021-09-17 16:32:29 +02:00
parent 7170e1467e
commit afa3635e55
3 changed files with 13 additions and 1 deletions

View File

@ -109,6 +109,10 @@ class BaseDevice {
{} {}
virtual void get_sensors(JsonDocument& doc) virtual void get_sensors(JsonDocument& doc)
{} {}
virtual long get_uptime()
{
return 0;
}
virtual bool is_system_pin(uint8_t pin) virtual bool is_system_pin(uint8_t pin)
{ {
return false; return false;
@ -137,7 +141,7 @@ class BaseDevice {
// #warning Building for STM32F4xx Devices // #warning Building for STM32F4xx Devices
#include "stm32f4/stm32f4.h" #include "stm32f4/stm32f4.h"
#elif defined(STM32F7) #elif defined(STM32F7)
#warning Building for STM32F7xx Devices //#warning Building for STM32F7xx Devices
#include "stm32f7/stm32f7.h" #include "stm32f7/stm32f7.h"
#elif defined(WINDOWS) #elif defined(WINDOWS)
// #warning Building for Win32 Devices // #warning Building for Win32 Devices

View File

@ -12,6 +12,11 @@
#define BACKLIGHT_CHANNEL 0 #define BACKLIGHT_CHANNEL 0
int _gettimeofday(struct timeval *tv, struct timezone *tz)
{
return 0;
}
namespace dev { namespace dev {
void Stm32f7Device::reboot() void Stm32f7Device::reboot()

View File

@ -8,6 +8,9 @@
#include "dev/device.h" #include "dev/device.h"
#if defined(STM32F7xx) #if defined(STM32F7xx)
extern "C" {
int _gettimeofday(struct timeval *tv, struct timezone *tz);
}
namespace dev { namespace dev {