aboutsummaryrefslogtreecommitdiff
path: root/main/config.def.h
diff options
context:
space:
mode:
authorLoek Le Blansch <loek@pipeframe.xyz>2024-06-08 19:20:49 +0200
committerLoek Le Blansch <loek@pipeframe.xyz>2024-06-08 19:20:49 +0200
commitfeaa43f37c01cf832fed17572d915e5709231893 (patch)
tree37f63dee764e75ad2dd1485f06c583b5473ff6fc /main/config.def.h
parente4b241c8ec4f12fe6ac479c2153cc540830e6a5d (diff)
WIP raspberry pi pico pbdrv
Diffstat (limited to 'main/config.def.h')
-rw-r--r--main/config.def.h26
1 files changed, 16 insertions, 10 deletions
diff --git a/main/config.def.h b/main/config.def.h
index 11612eb..3d325fe 100644
--- a/main/config.def.h
+++ b/main/config.def.h
@@ -6,15 +6,15 @@
* \name Network (Wi-Fi) configuration
* \{
*/
-#ifndef CFG_NET_DISABLE
-
#ifndef CFG_NET_SSID
//! network name (SSID)
#define CFG_NET_SSID ""
+#ifndef CFG_NET_DISABLE
//! disable network communication
#define CFG_NET_DISABLE
#warning No SSID defined! Disabling network communication!
#endif
+#endif
#ifndef CFG_NET_PASS
//! network password
@@ -31,17 +31,14 @@
#define CFG_NET_CONN_TIMEOUT 10e3
#endif
+#ifdef CFG_NET_DISABLE
+#undef CFG_NET_COUNTRY
+#define CFG_NET_COUNTRY CYW43_COUNTRY_WORLDWIDE
+#endif
#ifndef CFG_NET_COUNTRY
//! radio communications country
#define CFG_NET_COUNTRY CYW43_COUNTRY_NETHERLANDS
#endif
-
-#else // ifndef CFG_NET_DISABLE
-
-#undef CFG_NET_COUNTRY
-#define CFG_NET_COUNTRY CYW43_COUNTRY_WORLDWIDE
-
-#endif // ifndef CFG_NET_DISABLE
/** \} */
/**
@@ -53,7 +50,7 @@
#define CFG_SRV_PORT 9191
#endif
-#ifndef CFG_NET_DISABLE
+#ifdef CFG_NET_DISABLE
//! disable the i2ctcp server
#define CFG_SRV_DISABLE
#endif
@@ -64,3 +61,12 @@
#define CFG_LED_PIN CYW43_WL_GPIO_LED_PIN
#endif
+#ifndef CFG_SDA_PIN
+//! I^2^C SDA pin
+#define CFG_SDA_PIN 16
+#endif
+#ifndef CFG_SCL_PIN
+//! I^2^C SCL pin
+#define CFG_SCL_PIN 17
+#endif
+