diff --git a/platformio/osdp_config.h b/platformio/osdp_config.h new file mode 100644 index 0000000..a7dc861 --- /dev/null +++ b/platformio/osdp_config.h @@ -0,0 +1,42 @@ +/* + * Copyright (c) 2024 Siddharth Chandrasekaran + * + * SPDX-License-Identifier: Apache-2.0 + */ + +#ifndef _OSDP_CONFIG_H_ +#define _OSDP_CONFIG_H_ + +/** + * @brief The following macros are defined defined from the variable in cmake + * files. All @XXX@ are replaced by the value of XXX as resolved by cmake. + */ +#define PROJECT_VERSION "3.0.6" +#define PROJECT_NAME "libosdp" +#define GIT_BRANCH "platformio" +#define GIT_REV "" +#define GIT_TAG "" +#define GIT_DIFF "" +#define REPO_ROOT "" + +/** + * @brief Other OSDP constants + */ +#define OSDP_PD_SC_RETRY_MS (600 * 1000) +#define OSDP_PD_POLL_TIMEOUT_MS (50) +#define OSDP_PD_SC_TIMEOUT_MS (8 * 1000) +#define OSDP_PD_ONLINE_TOUT_MS (8 * 1000) +#define OSDP_RESP_TOUT_MS (200) +#define OSDP_CMD_MAX_RETRIES (8) +#define OSDP_ONLINE_RETRY_WAIT_MAX_MS (300 * 1000) +#define OSDP_CMD_RETRY_WAIT_MS (800) +#define OSDP_PACKET_BUF_SIZE (256) +#define OSDP_RX_RB_SIZE (512) +#define OSDP_CP_CMD_POOL_SIZE (4) +#define OSDP_FILE_ERROR_RETRY_MAX (10) +#define OSDP_PD_MAX (126) +#define OSDP_CMD_ID_OFFSET (5) +#define OSDP_PCAP_LINK_TYPE (162) +#define OSDP_PD_NAME_MAXLEN (16) + +#endif /* _OSDP_CONFIG_H_ */ diff --git a/platformio/osdp_export.h b/platformio/osdp_export.h new file mode 100644 index 0000000..423e970 --- /dev/null +++ b/platformio/osdp_export.h @@ -0,0 +1,14 @@ +/* + * Copyright (c) 2024 Siddharth Chandrasekaran + * + * SPDX-License-Identifier: Apache-2.0 + */ + +#ifndef OSDP_EXPORT_H_ +#define OSDP_EXPORT_H_ + +#define OSDP_EXPORT +#define OSDP_NO_EXPORT +#define OSDP_DEPRECATED_EXPORT + +#endif /* OSDP_EXPORT_H_ */