|
| 1 | +/* |
| 2 | + Copyright (c) 2024 Arduino SA |
| 3 | +
|
| 4 | + This Source Code Form is subject to the terms of the Mozilla Public |
| 5 | + License, v. 2.0. If a copy of the MPL was not distributed with this |
| 6 | + file, You can obtain one at http://mozilla.org/MPL/2.0/. |
| 7 | +*/ |
| 8 | +#pragma once |
| 9 | + |
| 10 | +#define NETWORK_CONFIGURATOR_COMPATIBLE 0 |
| 11 | +#define ZERO_TOUCH_ENABLED 0 |
| 12 | + |
| 13 | +#if defined(ARDUINO_SAMD_MKRWIFI1010) |
| 14 | + #define NETWORK_CONFIGURATOR_COMPATIBLE 1 |
| 15 | + #define PIN_RECONFIGURE 7 |
| 16 | + #define LED_RECONFIGURE LED_BUILTIN |
| 17 | + #define BOARD_HAS_RGB |
| 18 | + #define GREEN_LED 25 |
| 19 | + #define BLUE_LED 27 |
| 20 | + #define RED_LED 26 |
| 21 | + #define BOARD_USE_NINA |
| 22 | + #define LED_ON HIGH |
| 23 | + #define LED_OFF LOW |
| 24 | +#endif |
| 25 | + |
| 26 | +#if defined(ARDUINO_SAMD_NANO_33_IOT) |
| 27 | + #define NETWORK_CONFIGURATOR_COMPATIBLE 1 |
| 28 | + #define PIN_RECONFIGURE 2 |
| 29 | + #define LED_RECONFIGURE LED_BUILTIN |
| 30 | + #define GREEN_LED LED_BUILTIN |
| 31 | + #define LED_ON HIGH |
| 32 | + #define LED_OFF LOW |
| 33 | +#endif |
| 34 | + |
| 35 | +#if defined(ARDUINO_NANO_RP2040_CONNECT) |
| 36 | + #define NETWORK_CONFIGURATOR_COMPATIBLE 1 |
| 37 | + #define PIN_RECONFIGURE 2 |
| 38 | + #define LED_RECONFIGURE LED_BUILTIN |
| 39 | + #define BOARD_HAS_RGB |
| 40 | + #define GREEN_LED 25 |
| 41 | + #define BLUE_LED 26 |
| 42 | + #define RED_LED 27 |
| 43 | + #define BOARD_USE_NINA |
| 44 | + #define LED_ON LOW |
| 45 | + #define LED_OFF HIGH |
| 46 | +#endif |
| 47 | + |
| 48 | +#if defined(ARDUINO_UNOR4_WIFI) |
| 49 | + #define NETWORK_CONFIGURATOR_COMPATIBLE 1 |
| 50 | + #define PIN_RECONFIGURE 2 |
| 51 | + #define LED_RECONFIGURE LED_BUILTIN |
| 52 | + #define GREEN_LED LED_BUILTIN |
| 53 | + #define LED_ON HIGH |
| 54 | + #define LED_OFF LOW |
| 55 | + #define BOARD_HAS_LED_MATRIX |
| 56 | +#endif |
| 57 | + |
| 58 | +#if defined(ARDUINO_PORTENTA_H7_M7) |
| 59 | + #define NETWORK_CONFIGURATOR_COMPATIBLE 1 |
| 60 | + #define ZERO_TOUCH_ENABLED 1 |
| 61 | + #define PIN_RECONFIGURE 2 //TODO update doc and test |
| 62 | + #define LED_RECONFIGURE LED_BUILTIN |
| 63 | + #define BOARD_HAS_RGB |
| 64 | + #define GREEN_LED LEDG |
| 65 | + #define BLUE_LED LEDB |
| 66 | + #define RED_LED LEDR |
| 67 | + #define LED_ON LOW |
| 68 | + #define LED_OFF HIGH |
| 69 | +#endif |
| 70 | + |
| 71 | +#if defined(ARDUINO_OPTA) |
| 72 | + #define NETWORK_CONFIGURATOR_COMPATIBLE 1 |
| 73 | + #define ZERO_TOUCH_ENABLED 1 |
| 74 | + #define PIN_RECONFIGURE BTN_USER |
| 75 | + #define LED_RECONFIGURE LED_USER |
| 76 | + #define BOARD_HAS_RGB |
| 77 | + #define GREEN_LED LED_BUILTIN |
| 78 | + #define BLUE_LED LED_USER |
| 79 | + #define RED_LED LEDR |
| 80 | + #define LED_ON HIGH |
| 81 | + #define LED_OFF LOW |
| 82 | +#endif |
| 83 | + |
| 84 | + |
| 85 | +#if defined(ARDUINO_GIGA) |
| 86 | + #define NETWORK_CONFIGURATOR_COMPATIBLE 1 |
| 87 | + #define PIN_RECONFIGURE 2 |
| 88 | + #define LED_RECONFIGURE LED_BUILTIN |
| 89 | + #define BOARD_HAS_RGB |
| 90 | + #define GREEN_LED LEDG |
| 91 | + #define BLUE_LED LEDB |
| 92 | + #define RED_LED LEDR |
| 93 | + #define LED_ON LOW |
| 94 | + #define LED_OFF HIGH |
| 95 | +#endif |
| 96 | + |
| 97 | +#if defined(ARDUINO_NICLA_VISION) |
| 98 | + #define NETWORK_CONFIGURATOR_COMPATIBLE 1 |
| 99 | + #define PIN_RECONFIGURE 2 |
| 100 | + #define LED_RECONFIGURE LED_BUILTIN |
| 101 | + #define BOARD_HAS_RGB |
| 102 | + #define GREEN_LED LEDG |
| 103 | + #define BLUE_LED LEDB |
| 104 | + #define RED_LED LEDR |
| 105 | + #define LED_ON LOW |
| 106 | + #define LED_OFF HIGH |
| 107 | +#endif |
| 108 | + |
| 109 | +#if defined(ARDUINO_PORTENTA_C33) |
| 110 | + #define NETWORK_CONFIGURATOR_COMPATIBLE 1 |
| 111 | + #define ZERO_TOUCH_ENABLED 1 |
| 112 | + #define PIN_RECONFIGURE 2 |
| 113 | + #define LED_RECONFIGURE LED_BUILTIN |
| 114 | + #define BOARD_HAS_RGB |
| 115 | + #define GREEN_LED LEDG |
| 116 | + #define BLUE_LED LEDB |
| 117 | + #define RED_LED LEDR |
| 118 | + #define LED_ON LOW |
| 119 | + #define LED_OFF HIGH |
| 120 | +#endif |
| 121 | + |
| 122 | +#ifndef RESET_HOLD_TIME |
| 123 | +#define RESET_HOLD_TIME 3000000 |
| 124 | +#endif |
| 125 | + |
| 126 | +#ifndef BCP_DEBUG_PACKET |
| 127 | +#define BCP_DEBUG_PACKET 0 |
| 128 | +#endif |
0 commit comments