From 49f8c3835331434f3ce5566f4b5d37f8c237f251 Mon Sep 17 00:00:00 2001 From: Nanosonde <2073569+nanosonde@users.noreply.github.com> Date: Mon, 2 Nov 2020 14:52:44 +0100 Subject: [PATCH] Only compile CC1310 source code if #define DeviceFamily_CC13X0 --- src/cc1310_platform.cpp | 4 ++++ src/cc1310_platform.h | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/src/cc1310_platform.cpp b/src/cc1310_platform.cpp index d7328b8..8419706 100644 --- a/src/cc1310_platform.cpp +++ b/src/cc1310_platform.cpp @@ -1,3 +1,5 @@ +#ifdef DeviceFamily_CC13X0 + #include #include #include @@ -567,3 +569,5 @@ void attachInterrupt(uint32_t pin, IsrFuncPtr callback, uint32_t mode) IntMasterEnable(); #endif } + +#endif // DeviceFamily_CC13X0 \ No newline at end of file diff --git a/src/cc1310_platform.h b/src/cc1310_platform.h index d31f3a7..73a085b 100644 --- a/src/cc1310_platform.h +++ b/src/cc1310_platform.h @@ -1,5 +1,7 @@ #pragma once +#ifdef DeviceFamily_CC13X0 + #include #include #include @@ -41,3 +43,5 @@ class CC1310Platform : public Platform UART_Handle uart; NVS_Handle nvsHandle; }; + +#endif //DeviceFamily_CC13X0