Only compile CC1310 source code if #define DeviceFamily_CC13X0

This commit is contained in:
Nanosonde 2020-11-02 14:52:44 +01:00
parent 4fa3b24b36
commit 49f8c38353
2 changed files with 8 additions and 0 deletions

View File

@ -1,3 +1,5 @@
#ifdef DeviceFamily_CC13X0
#include <cstdio>
#include <cstdarg>
#include <cstring>
@ -567,3 +569,5 @@ void attachInterrupt(uint32_t pin, IsrFuncPtr callback, uint32_t mode)
IntMasterEnable();
#endif
}
#endif // DeviceFamily_CC13X0

View File

@ -1,5 +1,7 @@
#pragma once
#ifdef DeviceFamily_CC13X0
#include <ti/drivers/NVS.h>
#include <ti/drivers/UART.h>
#include <ti/drivers/dpl/ClockP.h>
@ -41,3 +43,5 @@ class CC1310Platform : public Platform
UART_Handle uart;
NVS_Handle nvsHandle;
};
#endif //DeviceFamily_CC13X0