feat: added PicoW_Sensor code template

Credits to @ext-erich.styger that provided the template
This commit is contained in:
SylvanArnold
2025-04-22 11:30:45 +02:00
committed by Sylvan Arnold
parent b2e9eab44e
commit 6cd510e749
985 changed files with 606823 additions and 0 deletions

View File

@@ -0,0 +1,35 @@
/*
* Copyright (c) 2022, Erich Styger
*
* SPDX-License-Identifier: BSD-3-Clause
*/
#ifndef MODBUS_MCUMODBUS_CONFIG_H_
#define MODBUS_MCUMODBUS_CONFIG_H_
#ifndef McuModbus_CONFIG_IS_ENABLED
#define McuModbus_CONFIG_IS_ENABLED (0)
/*!< 0: disabled; 1: enabled */
#endif
#ifndef McuModbus_CONFIG_RX_TIMEOUT_MS
#define McuModbus_CONFIG_RX_TIMEOUT_MS (500)
/*!< default timeout waiting for an answer from the device */
#endif
#ifndef McuModbus_CONFIG_QUEUE_RX_TIMEOUT_MS
#define McuModbus_CONFIG_QUEUE_RX_TIMEOUT_MS (10)
/*!< default timeout waiting for a queue element from the RX interrupt */
#endif
#ifndef McuModbus_CONFIG_BUS_WAIT_TIME_MS
#define McuModbus_CONFIG_BUS_WAIT_TIME_MS (15)
/*!< forced waiting time after a bus transfer */
#endif
#ifndef McuModbus_CONFIG_USE_MUTEX
#define McuModbus_CONFIG_USE_MUTEX (1)
/*!< 1: use a mutex to access the bus; 0: no mutex used */
#endif
#endif /* MODBUS_MCUMODBUS_CONFIG_H_ */