This is an automated email from the ASF dual-hosted git repository. jerzy pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/mynewt-core.git
commit 63b47d6150adb231039746dbe7cfe14eba1007c0 Author: Jerzy Kasenberg <[email protected]> AuthorDate: Wed Dec 15 12:15:54 2021 +0100 dialog_da1469x-dk-pro: Add hardware revision selector There are several versions of development kit that differ in pin assignments. This adds revision selector that allows to choose between revision 331-0-B and 331-0-C. --- hw/bsp/dialog_da1469x-dk-pro/include/bsp/bsp.h | 9 +++++++++ hw/bsp/dialog_da1469x-dk-pro/syscfg.yml | 9 +++++++++ 2 files changed, 18 insertions(+) diff --git a/hw/bsp/dialog_da1469x-dk-pro/include/bsp/bsp.h b/hw/bsp/dialog_da1469x-dk-pro/include/bsp/bsp.h index 85ca94d..693084f 100644 --- a/hw/bsp/dialog_da1469x-dk-pro/include/bsp/bsp.h +++ b/hw/bsp/dialog_da1469x-dk-pro/include/bsp/bsp.h @@ -47,12 +47,21 @@ extern uint8_t _ram_start; #define BUTTON_1 (6) /* P0_6 */ /* Arduino pins */ +#if MYNEWT_VAL_CHOICE(DA1469X_DK_PRO_REV, 331_O7_B) #define ARDUINO_PIN_D0 0 #define ARDUINO_PIN_D1 1 #define ARDUINO_PIN_D2 2 #define ARDUINO_PIN_D3 3 #define ARDUINO_PIN_D4 4 #define ARDUINO_PIN_D5 5 +#else +#define ARDUINO_PIN_D0 34 +#define ARDUINO_PIN_D1 35 +#define ARDUINO_PIN_D2 36 +#define ARDUINO_PIN_D3 37 +#define ARDUINO_PIN_D4 39 +#define ARDUINO_PIN_D5 40 +#endif #define ARDUINO_PIN_D6 17 #define ARDUINO_PIN_D7 18 #define ARDUINO_PIN_D8 19 diff --git a/hw/bsp/dialog_da1469x-dk-pro/syscfg.yml b/hw/bsp/dialog_da1469x-dk-pro/syscfg.yml index 90accc0..4ce112f 100644 --- a/hw/bsp/dialog_da1469x-dk-pro/syscfg.yml +++ b/hw/bsp/dialog_da1469x-dk-pro/syscfg.yml @@ -42,6 +42,15 @@ syscfg.defs: description: 'Specifies AES key slot for OTP user data encryption and decryption' value: -1 + DA1469X_DK_PRO_REV: + description: > + Indicates DA14695 Development Kit - Pro hardware revision number. + This is used to setup Arduino and Mikrobus pin settings. + value: 331_O7_C + choices: + - 331_O7_B + - 331_O7_C + syscfg.defs.BUS_DRIVER_PRESENT: BSP_FLASH_SPI_NAME: description: 'SPIFLASH device name'
