diff --git a/bsp/board/include/boards/board_eval_pic32mz_mxc_data_capture/board.cmake b/bsp/board/include/boards/board_eval_pic32mz_mxc_data_capture/board.cmake new file mode 100644 index 000000000..efd3556fc --- /dev/null +++ b/bsp/board/include/boards/board_eval_pic32mz_mxc_data_capture/board.cmake @@ -0,0 +1,5 @@ +if(${_MSDK_BOARD_NAME_} STREQUAL "PIC32MZ_MXS_DATA_CAPTURE_BOARD") + set(BOARD_PATH "include/boards/board_eval_pic32mz_mxc_data_capture") + set(MCU_CARD FALSE) + set(SHIELD FALSE) +endif() diff --git a/bsp/board/include/boards/board_eval_pic32mz_mxc_data_capture/board.h b/bsp/board/include/boards/board_eval_pic32mz_mxc_data_capture/board.h new file mode 100644 index 000000000..6020c61b5 --- /dev/null +++ b/bsp/board/include/boards/board_eval_pic32mz_mxc_data_capture/board.h @@ -0,0 +1,104 @@ +/**************************************************************************** +** +** Copyright (C) ${COPYRIGHT_YEAR} MikroElektronika d.o.o. +** Contact: https://www.mikroe.com/contact +** +** This file is part of the mikroSDK package +** +** Commercial License Usage +** +** Licensees holding valid commercial NECTO compilers AI licenses may use this +** file in accordance with the commercial license agreement provided with the +** Software or, alternatively, in accordance with the terms contained in +** a written agreement between you and The MikroElektronika Company. +** For licensing terms and conditions see +** https://www.mikroe.com/legal/software-license-agreement. +** For further information use the contact form at +** https://www.mikroe.com/contact. +** +** +** GNU Lesser General Public License Usage +** +** Alternatively, this file may be used for +** non-commercial projects under the terms of the GNU Lesser +** General Public License version 3 as published by the Free Software +** Foundation: https://www.gnu.org/licenses/lgpl-3.0.html. +** +** The above copyright notice and this permission notice shall be +** included in all copies or substantial portions of the Software. +** +** THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +** OF MERCHANTABILITY, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED +** TO THE WARRANTIES FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. +** IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, +** DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT +** OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE +** OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +** +****************************************************************************/ +/*! + * @file board.h + * @brief Main board pin mapping. + */ + +#ifndef _BOARD_H_ +#define _BOARD_H_ + +#ifdef __cplusplus +extern "C" +{ +#endif + +#define BOARD_NAME "PIC32MZ MXS Data Capture Board" + +#include "mikrobus.h" + +// Mapping +#define MIKROBUS_1 1 +#define MIKROBUS_1_AN PB9 +#define MIKROBUS_1_RST PD11 +#define MIKROBUS_1_CS PB15 +#define MIKROBUS_1_SCK PB14 +#define MIKROBUS_1_MISO PB10 +#define MIKROBUS_1_MOSI PF0 +#define MIKROBUS_1_PWM PD2 +#define MIKROBUS_1_INT PD0 +#define MIKROBUS_1_RX PC14 +#define MIKROBUS_1_TX PC13 +#define MIKROBUS_1_SCL PD10 +#define MIKROBUS_1_SDA PD9 + +#define MIKROBUS_2 2 +#define MIKROBUS_2_AN PB8 +#define MIKROBUS_2_RST PB4 +#define MIKROBUS_2_CS PB2 +#define MIKROBUS_2_SCK PG6 +#define MIKROBUS_2_MISO PB3 +#define MIKROBUS_2_MOSI PB5 +#define MIKROBUS_2_PWM PE5 +#define MIKROBUS_2_INT PG9 +#define MIKROBUS_2_RX PB7 +#define MIKROBUS_2_TX PB6 +#define MIKROBUS_2_SCL PG8 +#define MIKROBUS_2_SDA PG7 + +// QSPI +#define QSPI_AN16 PE6 +#define QSPI_CS1 PD5 +#define QSPI_CS0 PD4 +#define QSPI_D2 PE2 +#define QSPI_D3 PE3 +#define QSPI_D1 PE1 +#define QSPI_D0 PE0 +#define QSPI_CLK PF1 + +// PAC1944 +#define PAC1944_SCL PF5 +#define PAC1944_SDA PF6 + +#ifdef __cplusplus +} +#endif + +#endif // _BOARD_H_ +// ------------------------------------------------------------------------- END diff --git a/changelog/v2.12.0/changelog.md b/changelog/v2.12.0/changelog.md index e2e4b8d72..a7493e998 100644 --- a/changelog/v2.12.0/changelog.md +++ b/changelog/v2.12.0/changelog.md @@ -49,6 +49,7 @@ Support added for following hardware: + **[2024-11-14](./new_hw/2024-11-14.md)** + **[2024-11-15](./new_hw/2024-11-15.md)** + **[2024-11-18](./new_hw/2024-11-18.md)** ++ **[2024-11-19](./new_hw/2024-11-19.md)** --- diff --git a/changelog/v2.12.0/new_hw/2024-11-19.md b/changelog/v2.12.0/new_hw/2024-11-19.md new file mode 100644 index 000000000..fef0e5e10 --- /dev/null +++ b/changelog/v2.12.0/new_hw/2024-11-19.md @@ -0,0 +1,29 @@ +
+ +
+ +--- + +**[BACK TO PREVIOUS FILE](../changelog.md)** + +--- + +# 2024-11-19 + +## Changes + +- [2024-11-19](#2024-11-19) + - [Changes](#changes) + - [NEW HARDWARE](#new-hardware) + +### NEW HARDWARE + +Support added for following hardware: + ++ [PIC32MZ MXS Data Capture Board](https://www.microchip.com/en-us/development-tool/EV64F02A) + +--- + +**[BACK TO PREVIOUS FILE](../changelog.md)** + +--- diff --git a/resources/images/boards/board-eval-pic32mz-mxc-data-capture.png b/resources/images/boards/board-eval-pic32mz-mxc-data-capture.png new file mode 100644 index 000000000..27b12ec92 Binary files /dev/null and b/resources/images/boards/board-eval-pic32mz-mxc-data-capture.png differ diff --git a/resources/queries/boards/board_eval_pic32mz_mxc_data_capture/Boards.json b/resources/queries/boards/board_eval_pic32mz_mxc_data_capture/Boards.json new file mode 100644 index 000000000..9d9254af0 --- /dev/null +++ b/resources/queries/boards/board_eval_pic32mz_mxc_data_capture/Boards.json @@ -0,0 +1,16 @@ +{ + "uid": "PIC32MZ_MXS_DATA_CAPTURE_BOARD", + "name": "PIC32MZ MXS Data Capture Board", + "icon": "images/boards/board-eval-pic32mz-mxc-data-capture.png", + "default_device": "", + "soldered_device": "PIC32MZ2048EFG064", + "category": "Development Systems", + "mikrobus_count": 2, + "sort_order": 6, + "min_pin_count": 0, + "display_socket": "NO_DISPLAY", + "sdk_config": "{\"_MSDK_BOARD_NAME_\":\"PIC32MZ_MXS_DATA_CAPTURE_BOARD\",\"HAS_MIKROBUS\":\"true\"}", + "necto_config": "", + "display": "NO_DISPLAY", + "package_uid": "64/TQFP" +} diff --git a/resources/queries/boards/board_eval_pic32mz_mxc_data_capture/LinkerTables.json b/resources/queries/boards/board_eval_pic32mz_mxc_data_capture/LinkerTables.json new file mode 100644 index 000000000..be5a94d52 --- /dev/null +++ b/resources/queries/boards/board_eval_pic32mz_mxc_data_capture/LinkerTables.json @@ -0,0 +1,20 @@ +{ + "board_uid": "PIC32MZ_MXS_DATA_CAPTURE_BOARD", + "tables": [ + { + "BoardToDevice": { + "device_uid": "PIC32MZ2048EFG064" + } + }, + { + "BoardToSocket": { + "socket_uid": ["NONE"] + } + }, + { + "SDKToBoard": { + "sdk_uid": "2.11.2+" + } + } + ] +}