mirror of
https://github.com/thelsing/knx.git
synced 2024-12-18 19:08:18 +01:00
afd07d10cb
* bugfix, print not allowed in constructor * Update tpuart_data_link_layer.cpp - start confirm timout only after last byte was sent - increase BYTE_TIMEOUT * -bugfix, change debug Uart not possible * Update esp32_platform.cpp * Update esp_platform.cpp * Update knx-bme680.ino * Update knx-demo.ino * Update knx-hdc1008.ino * Update knx-sonoffS20.ino
39 lines
632 B
C++
39 lines
632 B
C++
#include "samd_platform.h"
|
|
|
|
#ifdef ARDUINO_ARCH_SAMD
|
|
#include <knx/bits.h>
|
|
|
|
#include <Arduino.h>
|
|
#include <FlashAsEEPROM.h>
|
|
|
|
SamdPlatform::SamdPlatform() : ArduinoPlatform(&Serial1)
|
|
{
|
|
}
|
|
|
|
SamdPlatform::SamdPlatform( HardwareSerial* s) : ArduinoPlatform(s)
|
|
{
|
|
}
|
|
|
|
void SamdPlatform::restart()
|
|
{
|
|
println("restart");
|
|
NVIC_SystemReset();
|
|
}
|
|
|
|
uint8_t * SamdPlatform::getEepromBuffer(uint16_t size)
|
|
{
|
|
//EEPROM.begin(size);
|
|
if(size > EEPROM_EMULATION_SIZE)
|
|
fatalError();
|
|
|
|
return EEPROM.getDataPtr();
|
|
}
|
|
|
|
void SamdPlatform::commitToEeprom()
|
|
{
|
|
EEPROM.commit();
|
|
}
|
|
#endif
|
|
|
|
|