|
| 1 | +/* |
| 2 | + * The MIT License (MIT) |
| 3 | + * |
| 4 | + * Copyright (c) 2021 Pierre Constantineau |
| 5 | + * |
| 6 | + * Permission is hereby granted, free of charge, to any person obtaining a copy |
| 7 | + * of this software and associated documentation files (the "Software"), to deal |
| 8 | + * in the Software without restriction, including without limitation the rights |
| 9 | + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell |
| 10 | + * copies of the Software, and to permit persons to whom the Software is |
| 11 | + * furnished to do so, subject to the following conditions: |
| 12 | + * |
| 13 | + * The above copyright notice and this permission notice shall be included in |
| 14 | + * all copies or substantial portions of the Software. |
| 15 | + * |
| 16 | + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR |
| 17 | + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
| 18 | + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE |
| 19 | + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER |
| 20 | + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, |
| 21 | + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN |
| 22 | + * THE SOFTWARE. |
| 23 | + */ |
| 24 | + |
| 25 | +#ifndef _EBYTE_E104_BT5032A_H |
| 26 | +#define _EBYTE_E104_BT5032A_H |
| 27 | + |
| 28 | +/*------------------------------------------------------------------*/ |
| 29 | +/* LED |
| 30 | + *------------------------------------------------------------------*/ |
| 31 | +#define LEDS_NUMBER 2 |
| 32 | +#define LED_PRIMARY_PIN 31 // Red - named "Data" |
| 33 | +#define LED_SECONDARY_PIN 30 // Blue - named "Link" (also a red one on the Test Board) |
| 34 | +#define LED_STATE_ON 1 |
| 35 | + |
| 36 | +/*------------------------------------------------------------------*/ |
| 37 | +/* BUTTON |
| 38 | + *------------------------------------------------------------------*/ |
| 39 | +#define BUTTONS_NUMBER 2 |
| 40 | +#define BUTTON_1 29 // DISC Button on E104-BT5032A-TB Test Board |
| 41 | + // BUTTON_1 is DFU. The module does not have reset circuitry. |
| 42 | + // The Test Board from Ebyte (E104-BT5032A-TB) also does not have reset circuitry |
| 43 | + // To be able to upload using the Arduino IDE, (To enter DFU mode) |
| 44 | + // Press "DISC", press and release "RST", then release "DISC" |
| 45 | +#define BUTTON_2 28 // No button - WKP pin |
| 46 | +#define BUTTON_PULL NRF_GPIO_PIN_PULLUP |
| 47 | + |
| 48 | +/*------------------------------------------------------------------*/ |
| 49 | +/* UART (only used by nRF52832) |
| 50 | + *------------------------------------------------------------------*/ |
| 51 | +#define RX_PIN_NUMBER 14 |
| 52 | +#define TX_PIN_NUMBER 18 |
| 53 | +#define CTS_PIN_NUMBER 20 |
| 54 | +#define RTS_PIN_NUMBER 19 |
| 55 | +#define HWFC false // leaving it false to make GPIO available |
| 56 | + |
| 57 | +//--------------------------------------------------------------------+ |
| 58 | +// BLE OTA |
| 59 | +//--------------------------------------------------------------------+ |
| 60 | +#define BLEDIS_MANUFACTURER "CDEBYTE" |
| 61 | +#define BLEDIS_MODEL "E104-BT5032A" |
| 62 | + |
| 63 | +#define UF2_PRODUCT_NAME "Ebyte E104-BT5032A nRF52832" |
| 64 | +#define UF2_INDEX_URL "https://www.ebyte.com/en/product-view-news.html?id=756" |
| 65 | + |
| 66 | +#endif // _EBYTE_E104_BT5032A_H |
0 commit comments