diff --git a/bsp/board/include/boards/board_pic18_poe_main/board.cmake b/bsp/board/include/boards/board_pic18_poe_main/board.cmake new file mode 100644 index 000000000..fb4787ff8 --- /dev/null +++ b/bsp/board/include/boards/board_pic18_poe_main/board.cmake @@ -0,0 +1,5 @@ +if(${_MSDK_BOARD_NAME_} STREQUAL "PIC18_POE_MAIN_BOARD") + set(BOARD_PATH "include/boards/board_pic18_poe_main") + set(MCU_CARD FALSE) + set(SHIELD FALSE) +endif() diff --git a/bsp/board/include/boards/board_pic18_poe_main/board.h b/bsp/board/include/boards/board_pic18_poe_main/board.h new file mode 100644 index 000000000..a6dfc16eb --- /dev/null +++ b/bsp/board/include/boards/board_pic18_poe_main/board.h @@ -0,0 +1,87 @@ +/**************************************************************************** +** +** 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 "PIC18 POE Main Board" + +#include "mikrobus.h" + +#define MIKROBUS_1 1 +#define MIKROBUS_1_AN GPIO_PA5 +#define MIKROBUS_1_RST GPIO_PD0 +#define MIKROBUS_1_CS GPIO_PD1 +#define MIKROBUS_1_SCK GPIO_PC3 +#define MIKROBUS_1_MISO GPIO_PC4 +#define MIKROBUS_1_MOSI GPIO_PC5 +#define MIKROBUS_1_PWM GPIO_PC2 +#define MIKROBUS_1_INT GPIO_PB2 +#define MIKROBUS_1_RX GPIO_PC7 +#define MIKROBUS_1_TX GPIO_PC6 +#define MIKROBUS_1_SCL GPIO_PF6 +#define MIKROBUS_1_SDA GPIO_PF7 + +// LEDs +#define LED_D3 GPIO_PA0 +#define LED_D4 GPIO_PA1 +#define LED_D10_RED GPIO_PE5 +#define LED_D10_GREEN GPIO_PE4 + +// Buttons +#define BUTTON_1 GPIO_PB0 + +#define USB_UART_TX GPIO_PC6 +#define USB_UART_RX GPIO_PC7 + +#ifdef __cplusplus +} +#endif + +#endif // _BOARD_H_ +// ------------------------------------------------------------------------- END diff --git a/changelog/v2.12.2/changelog.md b/changelog/v2.12.2/changelog.md index 1e114a6f3..8865a6ab6 100644 --- a/changelog/v2.12.2/changelog.md +++ b/changelog/v2.12.2/changelog.md @@ -75,6 +75,7 @@ Support added for following hardware: + **[2024-12-17](./new_hw/2024-12-17.md)** + **[2024-12-18](./new_hw/2024-12-18.md)** + **[2024-12-19](./new_hw/2024-12-19.md)** ++ **[2024-12-20](./new_hw/2024-12-20.md)** --- diff --git a/changelog/v2.12.2/new_hw/2024-12-20.md b/changelog/v2.12.2/new_hw/2024-12-20.md new file mode 100644 index 000000000..0cc8aa155 --- /dev/null +++ b/changelog/v2.12.2/new_hw/2024-12-20.md @@ -0,0 +1,29 @@ +

+ MikroElektronika +

+ +--- + +**[BACK TO PREVIOUS FILE](../changelog.md)** + +--- + +# 2024-12-20 + +## Changes + +- [2024-12-20](#2024-12-20) + - [Changes](#changes) + - [NEW HARDWARE](#new-hardware) + +### NEW HARDWARE + +Support added for following hardware: + ++ [PIC18 POE Main Board](https://mplab-discover.microchip.com/v2/item/com.microchip.portal.evalboard/com.microchip.subcategories.tools.development-boards/mcu08.dm160230/1.0.0?view=about) + +--- + +**[BACK TO PREVIOUS FILE](../changelog.md)** + +--- diff --git a/resources/images/boards/board_pic18_poe_main.png b/resources/images/boards/board_pic18_poe_main.png new file mode 100644 index 000000000..b63852f48 Binary files /dev/null and b/resources/images/boards/board_pic18_poe_main.png differ diff --git a/resources/queries/boards/board_pic18_poe_main/Boards.json b/resources/queries/boards/board_pic18_poe_main/Boards.json new file mode 100644 index 000000000..eeec9647e --- /dev/null +++ b/resources/queries/boards/board_pic18_poe_main/Boards.json @@ -0,0 +1,16 @@ +{ + "uid": "PIC18_POE_MAIN_BOARD", + "name": "PIC18 POE Main Board", + "icon": "images/boards/board_pic18_poe_main.png", + "default_device": "", + "soldered_device": "PIC18F67J60", + "category": "Starter boards", + "mikrobus_count": 1, + "sort_order": 7, + "min_pin_count": 0, + "display_socket": "NO_DISPLAY", + "sdk_config": "{\"_MSDK_BOARD_NAME_\":\"PIC18_POE_MAIN_BOARD\",\"HAS_MIKROBUS\":\"true\"}", + "necto_config": "", + "display": "NO_DISPLAY", + "package_uid": "64/TQFP" +} diff --git a/resources/queries/boards/board_pic18_poe_main/LinkerTables.json b/resources/queries/boards/board_pic18_poe_main/LinkerTables.json new file mode 100644 index 000000000..a7392480a --- /dev/null +++ b/resources/queries/boards/board_pic18_poe_main/LinkerTables.json @@ -0,0 +1,20 @@ +{ + "board_uid": "PIC18_POE_MAIN_BOARD", + "tables": [ + { + "BoardToDevice": { + "device_uid": "PIC18F67J60" + } + }, + { + "BoardToSocket": { + "socket_uid": ["NONE"] + } + }, + { + "SDKToBoard": { + "sdk_uid": "2.11.2+" + } + } + ] +}