sforkowany z mirror/meshtastic-firmware
WIP scaffolding
rodzic
da75ae21ff
commit
a7f9e5ddb4
|
@ -0,0 +1,14 @@
|
|||
[apollo3_base]
|
||||
platform_packages = platform_packages=framework-arduinoapollo3@https://github.com/sparkfun/Arduino_Apollo3#v2.2.0
|
||||
board = RAK11722
|
||||
framework = arduino
|
||||
build_type = debug
|
||||
build_flags =
|
||||
${arduino_base.build_flags}
|
||||
-Isrc/platform/apollo3 -g
|
||||
build_src_filter =
|
||||
${arduino_base.build_src_filter} -<platform/esp32/> -<nimble/> -<mesh/api/> -<mesh/http/> -<modules/esp32> -<mesh/eth/> -<mqtt/> -<graphics> -<input> -<buzz> -<modules/Telemetry> -<platform/nrf52> -<platform/portduino> -<platform/rp2040> -<platform/stm32wl>
|
||||
lib_deps =
|
||||
${env.lib_deps}
|
||||
lib_ignore =
|
||||
mathertel/OneButton@^2.0.3
|
|
@ -0,0 +1,15 @@
|
|||
#pragma once
|
||||
|
||||
#define ARCH_APOLLO3
|
||||
|
||||
//
|
||||
// defaults for ARCH_APOLLO3 architecture
|
||||
//
|
||||
|
||||
//
|
||||
// set HW_VENDOR
|
||||
//
|
||||
|
||||
#ifndef HW_VENDOR
|
||||
#define HW_VENDOR HardwareModel_PRIVATE_HW
|
||||
#endif
|
|
@ -0,0 +1,24 @@
|
|||
#include "RTC.h"
|
||||
#include "configuration.h"
|
||||
|
||||
void setBluetoothEnable(bool on) {}
|
||||
|
||||
void playStartMelody() {}
|
||||
|
||||
void updateBatteryLevel(uint8_t level) {}
|
||||
|
||||
void getMacAddr(uint8_t *dmac)
|
||||
{
|
||||
for (int i = 0; i < 6; i++)
|
||||
dmac[i] = i;
|
||||
}
|
||||
|
||||
void cpuDeepSleep(uint64_t msecToWake) {}
|
||||
|
||||
/* pacify libc_nano */
|
||||
extern "C" {
|
||||
int _gettimeofday(struct timeval *tv, void *tzvp)
|
||||
{
|
||||
return -1;
|
||||
}
|
||||
}
|
Ładowanie…
Reference in New Issue