-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #162 from MikroElektronika/new-feature/boards_card…
…s/13 Merge branch new-feature/boards_cards/13 into master
- Loading branch information
Showing
9 changed files
with
255 additions
and
0 deletions.
There are no files selected for viewing
5 changes: 5 additions & 0 deletions
5
bsp/board/include/boards/board_curiosity_pic32_mz_ef_20/board.cmake
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
if(${_MSDK_BOARD_NAME_} STREQUAL "BOARD_CURIOSITY_PIC32MZ_EF_20") | ||
set(BOARD_PATH "include/boards/board_curiosity_pic32_mz_ef_20") | ||
set(MCU_CARD FALSE) | ||
set(SHIELD FALSE) | ||
endif() |
126 changes: 126 additions & 0 deletions
126
bsp/board/include/boards/board_curiosity_pic32_mz_ef_20/board.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,126 @@ | ||
/**************************************************************************** | ||
** | ||
** 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 "Curiosity PIC32MZ EF 2.0 Development Board" | ||
|
||
#include "mikrobus.h" | ||
|
||
// Mapping | ||
#define MIKROBUS_1 1 | ||
#define MIKROBUS_1_AN PB10 | ||
#define MIKROBUS_1_RST PJ12 | ||
#define MIKROBUS_1_CS PD9 | ||
#define MIKROBUS_1_SCK PD1 | ||
#define MIKROBUS_1_MISO PD14 | ||
#define MIKROBUS_1_MOSI PD7 | ||
#define MIKROBUS_1_PWM PD15 | ||
#define MIKROBUS_1_INT PF12 | ||
#define MIKROBUS_1_RX PC4 | ||
#define MIKROBUS_1_TX PC1 | ||
#define MIKROBUS_1_SCL PA2 | ||
#define MIKROBUS_1_SDA PA3 | ||
|
||
#define MIKROBUS_2 2 | ||
#define MIKROBUS_2_AN PB11 | ||
#define MIKROBUS_2_RST PJ10 | ||
#define MIKROBUS_2_CS PC2 | ||
#define MIKROBUS_2_SCK PG6 | ||
#define MIKROBUS_2_MISO PG7 | ||
#define MIKROBUS_2_MOSI PG8 | ||
#define MIKROBUS_2_PWM PD15 | ||
#define MIKROBUS_2_INT PD10 | ||
#define MIKROBUS_2_RX PE9 | ||
#define MIKROBUS_2_TX PG9 | ||
#define MIKROBUS_2_SCL PA2 | ||
#define MIKROBUS_2_SDA PA3 | ||
|
||
// LEDs | ||
#define LED_1 PJ7 | ||
#define LED_2 PK7 | ||
#define LED_3 PJ3 | ||
#define LED_4_RED PB0 | ||
#define LED_4_GREEN PB1 | ||
#define LED_4_BLUE PB5 | ||
|
||
// Buttons | ||
#define BUTTON_1 PJ4 | ||
#define BUTTON_2 PJ5 | ||
#define BUTTON_3 PJ6 | ||
#define BUTTON_4 PC15 | ||
|
||
// CAN | ||
#define CAN_RX PF5 | ||
#define CAN_TX PD5 | ||
|
||
// Ethernet | ||
#define ETH_RXD0 PH8 | ||
#define ETH_RXD1 PH5 | ||
#define ETH_TXD0 PJ8 | ||
#define ETH_TXD1 PJ9 | ||
#define ETH_TXEN PD6 | ||
#define ETH_CRS_DV PH13 | ||
#define ETH_RXER PH4 | ||
#define ETH_MDIO PJ11 | ||
#define ETH_MDC PD11 | ||
#define ETH_NINT PJ2 | ||
#define ETH_CLK PB14 | ||
#define ETH_RST PJ0 | ||
|
||
// UART | ||
#define USB_UART_TX PF4 | ||
#define USB_UART_RX PD15 | ||
|
||
#ifdef __cplusplus | ||
} | ||
#endif | ||
|
||
#endif // _BOARD_H_ | ||
// ------------------------------------------------------------------------- END |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
<p align="center"> | ||
<img src="http://www.mikroe.com/img/designs/beta/logo_small.png?raw=true" alt="MikroElektronika"/> | ||
</p> | ||
|
||
--- | ||
|
||
**[BACK TO PREVIOUS FILE](../changelog.md)** | ||
|
||
--- | ||
|
||
# 2024-12-06 | ||
|
||
## Changes | ||
|
||
- [2024-12-06](#2024-12-06) | ||
- [Changes](#changes) | ||
- [NEW HARDWARE](#new-hardware) | ||
|
||
### NEW HARDWARE | ||
|
||
Support added for following hardware: | ||
|
||
+ [Curiosity PIC32MZ EF 2.0 Development Board](https://mplab-discover.microchip.com/v2/item/com.microchip.portal.evalboard/com.microchip.subcategories.modules-and-peripherals.communication.can.Others/mcu32.dm320209/1.0.0?view=about) | ||
+ [MCU CARD 5 for Kinetis MKV44F64VLH16](https://www.mikroe.com/mcu-card-5-for-kinetis-mkv44f64vlh16) | ||
|
||
--- | ||
|
||
**[BACK TO PREVIOUS FILE](../changelog.md)** | ||
|
||
--- |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
16 changes: 16 additions & 0 deletions
16
resources/queries/boards/board_curiosity_pic32_mz_ef_20/Boards.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
{ | ||
"uid": "PIC32MZ_EF_20_CURIOSITY_DEVELOPMENT_BOARD", | ||
"name": "Curiosity PIC32MZ EF 2.0 Development Board", | ||
"icon": "images/boards/board-curiosity-pic32mz-ef-20.png", | ||
"default_device": "", | ||
"soldered_device": "PIC32MZ2048EFM144", | ||
"category": "Development Systems", | ||
"mikrobus_count": 2, | ||
"sort_order": 6, | ||
"min_pin_count": 0, | ||
"display_socket": "NO_DISPLAY", | ||
"sdk_config": "{\"_MSDK_BOARD_NAME_\":\"BOARD_CURIOSITY_PIC32MZ_EF_20\",\"HAS_MIKROBUS\":\"true\"}", | ||
"necto_config": "", | ||
"display": "NO_DISPLAY", | ||
"package_uid": "144/LQFP" | ||
} |
20 changes: 20 additions & 0 deletions
20
resources/queries/boards/board_curiosity_pic32_mz_ef_20/LinkerTables.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
{ | ||
"board_uid": "PIC32MZ_EF_20_CURIOSITY_DEVELOPMENT_BOARD", | ||
"tables": [ | ||
{ | ||
"BoardToDevice": { | ||
"device_uid": "PIC32MZ2048EFM144" | ||
} | ||
}, | ||
{ | ||
"BoardToSocket": { | ||
"socket_uid": ["NONE"] | ||
} | ||
}, | ||
{ | ||
"SDKToBoard": { | ||
"sdk_uid": "2.11.2+" | ||
} | ||
} | ||
] | ||
} |
18 changes: 18 additions & 0 deletions
18
resources/queries/cards/mcu_card_5_for_kinetis_mkv44f64vlh16/Devices.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
{ | ||
"def_file":"MKV44F64VLH16.json", | ||
"family_uid":"KINETIS_V_SERIES", | ||
"flash":"64", | ||
"icon":"images/mcu_cards/mcu-card-5-for-kinetis.png", | ||
"max_speed":"160.000", | ||
"name":"MCU CARD 5 for Kinetis MKV44F64VLH16", | ||
"ram":"16384", | ||
"sdk_config":"{\"MCU_NAME\":\"MKV44F64VLH16\",\"CORE_NAME\":\"M4EF\",\"_MSDK_HAL_LOW_LEVEL_TARGET_\":\"mikroe\",\"_MSDK_ETH_PHY_CHIP_\":\"NULL\",\"_MSDK_MCU_CARD_NAME_\":\"MCU_CARD_5_FOR_KINETIS\"}", | ||
"necto_config":"", | ||
"uid":"MCU_CARD_5_FOR_KINETIS_MKV44F64VLH16", | ||
"vendor":"NXP", | ||
"compiler_flags":"", | ||
"linker_flags":"", | ||
"tft_socket":"1", | ||
"sdk_support":"1", | ||
"installer_package":"{\"package\":\"mcu_card_5_for_kinetis_mkv44f64vlh16\"}" | ||
} |
39 changes: 39 additions & 0 deletions
39
resources/queries/cards/mcu_card_5_for_kinetis_mkv44f64vlh16/LinkerTables.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
{ | ||
"device_uid": "MCU_CARD_5_FOR_KINETIS_MKV44F64VLH16", | ||
"tables": [ | ||
{ | ||
"BoardToDevice": { | ||
"board_uid": [ | ||
"FUSION_FOR_ARM_V8", | ||
"FUSION_FOR_KINETIS_V8", | ||
"UNI_CLICKER", | ||
"UNI_DS_V8" | ||
] | ||
} | ||
}, | ||
{ | ||
"CompilerToDevice": { | ||
"compiler_uid": [ | ||
"clang-llvm", | ||
"gcc_arm_none_eabi", | ||
"mikrocarm" | ||
] | ||
} | ||
}, | ||
{ | ||
"DeviceToPackage": { | ||
"package_uid": ["64/LQFP"] | ||
} | ||
}, | ||
{ | ||
"DeviceToSocket": { | ||
"socket_uid": ["SIBRAIN_SOCKET"] | ||
} | ||
}, | ||
{ | ||
"SDKToDevice": { | ||
"sdk_uid": "2.11.2+" | ||
} | ||
} | ||
] | ||
} |