|
204 | 204 | * @{
|
205 | 205 | */
|
206 | 206 |
|
| 207 | +/** |
| 208 | + * @defgroup PJONSettingGrpPub PJON |
| 209 | + * @ingroup RadioSettingGrpPub |
| 210 | + * @brief These options are specific to the PJON wired transport. |
| 211 | + * @{ |
| 212 | + */ |
| 213 | + |
| 214 | +/** |
| 215 | + * @def MY_PJON |
| 216 | + * @brief Define this to use the PJON wired transport for sensor network communication. |
| 217 | + */ |
| 218 | +//#define MY_PJON |
| 219 | + |
| 220 | +/** |
| 221 | + * @def MY_PJON_PIN |
| 222 | + * @brief Define this to change pin for PJON communication |
| 223 | + */ |
| 224 | +#ifndef MY_PJON_PIN |
| 225 | +#define MY_PJON_PIN (12u) |
| 226 | +#endif |
| 227 | + |
| 228 | +/** |
| 229 | + * @def MY_DEBUG_VERBOSE_PJON |
| 230 | + * @brief Define this for verbose debug prints related to the %PJON driver. |
| 231 | + */ |
| 232 | +//#define MY_DEBUG_VERBOSE_PJON |
| 233 | + |
| 234 | +/** |
| 235 | + * @def MY_PJON_MAX_RETRIES |
| 236 | + * @brief Define this to change max send retry in PJON communication |
| 237 | + */ |
| 238 | +#ifndef MY_PJON_MAX_RETRIES |
| 239 | +#define MY_PJON_MAX_RETRIES (5u) |
| 240 | +#endif |
| 241 | + |
| 242 | +#ifdef MY_PJON |
| 243 | + |
| 244 | +#ifndef PJON_STRATEGY_ALL |
| 245 | +#define PJON_STRATEGY_BITBANG |
| 246 | +#endif |
| 247 | + |
| 248 | +#define PJON_NOT_ASSIGNED (253u) |
| 249 | +#define PJON_BROADCAST (255u) |
| 250 | + |
| 251 | +#define SWBB_MAX_ATTEMPTS (50u) |
| 252 | +#define PJON_INCLUDE_SWBB |
| 253 | +#endif |
| 254 | + |
| 255 | +/** @}*/ // End of PJONSettingGrpPub group |
207 | 256 |
|
208 | 257 | /**
|
209 | 258 | * @defgroup RS485SettingGrpPub RS485
|
|
2226 | 2275 | #endif
|
2227 | 2276 |
|
2228 | 2277 | // Enable sensor network "feature" if one of the transport types was enabled
|
2229 |
| -#if defined(MY_RADIO_RF24) || defined(MY_RADIO_NRF5_ESB) || defined(MY_RADIO_RFM69) || defined(MY_RADIO_RFM95) || defined(MY_RS485) |
| 2278 | +#if defined(MY_RADIO_RF24) || defined(MY_RADIO_NRF5_ESB) || defined(MY_RADIO_RFM69) || defined(MY_RADIO_RFM95) || defined(MY_RS485) || defined(MY_PJON) |
2230 | 2279 | #define MY_SENSOR_NETWORK
|
2231 | 2280 | #endif
|
2232 | 2281 |
|
|
2391 | 2440 | #define MY_RS485_DE_PIN
|
2392 | 2441 | #define MY_RS485_DE_INVERSE
|
2393 | 2442 | #define MY_RS485_HWSERIAL
|
| 2443 | +// PJON |
| 2444 | +#define MY_PJON |
| 2445 | +#define MY_DEBUG_VERBOSE_PJON |
2394 | 2446 | // RF24
|
2395 | 2447 | #define MY_RADIO_RF24
|
2396 | 2448 | #define MY_RADIO_NRF24 //deprecated
|
|
0 commit comments