1
0
Fork 0
mirror of https://github.com/lumapu/ahoy.git synced 2025-06-14 16:41:38 +02:00

- Improve config system allowing a user customizable config_override.h file to ensure git pulls don't require merges

- Move DTU_RADIO_ID to config.h to allow for easy customization for multiple DTUs with non conflicting radio IDs
This commit is contained in:
Oliver Fueckert 2022-08-30 08:52:47 +02:00
parent 348ad4bd07
commit 7fc57ffc8c
6 changed files with 45 additions and 4 deletions

View file

@ -0,0 +1,30 @@
//-----------------------------------------------------------------------------
// 2022 Ahoy, https://www.mikrocontroller.net/topic/525778
// Creative Commons - http://creativecommons.org/licenses/by-nc-sa/3.0/de/
//-----------------------------------------------------------------------------
#ifndef __CONFIG_OVERRIDE_H__
#define __CONFIG_OVERRIDE_H__
// override fallback WiFi info
// each ovveride must be preceeded with an #undef statement
#undef FB_WIFI_SSID
#define FB_WIFI_SSID "MY_SSID"
// each ovveride must be preceeded with an #undef statement
#undef FB_WIFI_PWD
#define FB_WIFI_PWD "MY_WIFI_KEY"
// ESP32 default pinout
#undef DEF_RF24_CS_PIN
#define DEF_RF24_CS_PIN 5
#undef DEF_RF24_CE_PIN
#define DEF_RF24_CE_PIN 4
#undef DEF_RF24_IRQ_PIN
#define DEF_RF24_IRQ_PIN 16
#undef DTU_RADIO_ID
#define DTU_RADIO_ID ((uint64_t)0x1234567802ULL)
#endif /*__CONFIG_OVERRIDE_H__*/