mirror of
https://github.com/HASwitchPlate/openHASP.git
synced 2025-07-26 20:56:37 +00:00
Add stm32f7
This commit is contained in:
parent
7170e1467e
commit
afa3635e55
@ -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
|
||||||
|
@ -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()
|
||||||
|
@ -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 {
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user