Skip to content

Commit

Permalink
Merge pull request #190 from MikroElektronika/new-feature/boards/62
Browse files Browse the repository at this point in the history
Merge branch new-feature/boards/62 into master
  • Loading branch information
IvanRuzavin authored Dec 26, 2024
2 parents 95164ac + f7e99b0 commit 7748313
Show file tree
Hide file tree
Showing 7 changed files with 192 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
if(${_MSDK_BOARD_NAME_} STREQUAL "DSPICDEM_MC1_MOTOR_CONTROL_DEVELOPMENT_BOARD")
set(BOARD_PATH "include/boards/board_dspicdem_mc1_motor_control_development")
set(MCU_CARD FALSE)
set(SHIELD FALSE)
endif()
Original file line number Diff line number Diff line change
@@ -0,0 +1,121 @@
/****************************************************************************
**
** 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 "dsPICDEM MC1 Motor Control Development Board"

#include "hal_target.h"

// Mapping
#define HEADER_CONNECTOR_CN1_D1 GPIO_PB10
#define HEADER_CONNECTOR_CN1_D2 GPIO_PB1
#define HEADER_CONNECTOR_CN1_D3 GPIO_PB8
#define HEADER_CONNECTOR_CN1_D4 // Pin not routed
#define HEADER_CONNECTOR_CN1_D5 GPIO_PB13
#define HEADER_CONNECTOR_CN1_D6 GPIO_PD10
#define HEADER_CONNECTOR_CN1_D7 GPIO_PE7
#define HEADER_CONNECTOR_CN1_D8 GPIO_PB9
#define HEADER_CONNECTOR_CN1_D9 // Pin not routed
#define HEADER_CONNECTOR_CN1_D10 GPIO_PD5
#define HEADER_CONNECTOR_CN1_D11 GPIO_PE5
#define HEADER_CONNECTOR_CN1_D12 GPIO_PE3
#define HEADER_CONNECTOR_CN1_D13 GPIO_PE1
#define HEADER_CONNECTOR_CN1_D14 GPIO_PF6
#define HEADER_CONNECTOR_CN1_D15 GPIO_PB15
#define HEADER_CONNECTOR_CN1_D16 GPIO_PB1
#define HEADER_CONNECTOR_CN1_D17 GPIO_PB6
#define HEADER_CONNECTOR_CN1_D18 // Pin not routed
#define HEADER_CONNECTOR_CN1_D19 // Pin not routed
#define HEADER_CONNECTOR_CN1_D20 GPIO_PB2
#define HEADER_CONNECTOR_CN1_D21 GPIO_PB0
#define HEADER_CONNECTOR_CN1_D22 GPIO_PB14
#define HEADER_CONNECTOR_CN1_D23 GPIO_PB14
#define HEADER_CONNECTOR_CN1_D24 GPIO_PB12
#define HEADER_CONNECTOR_CN1_D25 GPIO_PE6
#define HEADER_CONNECTOR_CN1_D26 GPIO_PB11
#define HEADER_CONNECTOR_CN1_D27 // Pin not routed
#define HEADER_CONNECTOR_CN1_D28 GPIO_PD4
#define HEADER_CONNECTOR_CN1_D29 GPIO_PE4
#define HEADER_CONNECTOR_CN1_D30 GPIO_PE2
#define HEADER_CONNECTOR_CN1_D31 GPIO_PE0
#define HEADER_CONNECTOR_CN1_D32 GPIO_PF7
#define HEADER_CONNECTOR_CN1_D33 GPIO_PE9
#define HEADER_CONNECTOR_CN1_D34 GPIO_PB2
#define HEADER_CONNECTOR_CN1_D35 GPIO_PB0
#define HEADER_CONNECTOR_CN1_D36 // Pin not routed
#define HEADER_CONNECTOR_CN1_D37 // Pin not routed

// LCD
#define LCD_EN GPIO_PD13
#define LCD_DB0 GPIO_PD0
#define LCD_DB1 GPIO_PD1
#define LCD_DB2 GPIO_PD2
#define LCD_DB3 GPIO_PD3
#define LCD_R_W GPIO_PC1
#define LCD_D_C GPIO_PC3

// LEDS
#define LED1 GPIO_PA9
#define LED2 GPIO_PA10
#define LED3 GPIO_PA14
#define LED4 GPIO_PA15

// BUTTONS
#define BUTTON1 GPIO_PG6
#define BUTTON2 GPIO_PG7
#define BUTTON3 GPIO_PG8
#define BUTTON4 GPIO_PG9

#ifdef __cplusplus
}
#endif

#endif // _BOARD_H_
// ------------------------------------------------------------------------- END
1 change: 1 addition & 0 deletions changelog/v2.13.0/changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,7 @@ Support added for following hardware:

+ **[2024-12-24](./new_hw/2024-12-24.md)**
+ **[2024-12-25](./new_hw/2024-12-25.md)**
+ **[2024-12-26](./new_hw/2024-12-26.md)**

---

Expand Down
29 changes: 29 additions & 0 deletions changelog/v2.13.0/new_hw/2024-12-26.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
<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-26

## Changes

- [2024-12-26](#2024-12-26)
- [Changes](#changes)
- [NEW HARDWARE](#new-hardware)

### NEW HARDWARE

Support added for following hardware:

+ [dsPICDEM MC1 Motor Control Development Board](https://mplab-discover.microchip.com/v2/item/com.microchip.portal.evalboard/com.microchip.subcategories.modules-and-peripherals.communication.can.Others/mcu08.dm300020/1.0.0?view=about)

---

**[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.
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"uid": "DSPICDEM_MC1_MOTOR_CONTROL_DEVELOPMENT_BOARD",
"name": "dsPICDEM MC1 Motor Control Development Board",
"icon": "images/boards/board-dspicdem-mc1-motor-control-development.png",
"default_device": "",
"soldered_device": "DSPIC30F6010",
"category": "Development Systems",
"mikrobus_count": 0,
"sort_order": 6,
"min_pin_count": 0,
"display_socket": "NO_DISPLAY",
"sdk_config": "{\"_MSDK_BOARD_NAME_\":\"DSPICDEM_MC1_MOTOR_CONTROL_DEVELOPMENT_BOARD\"}",
"necto_config": "",
"display": "NO_DISPLAY",
"package_uid": "64/TQFP"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"board_uid": "DSPICDEM_MC1_MOTOR_CONTROL_DEVELOPMENT_BOARD",
"tables": [
{
"BoardToDevice": {
"device_uid": "DSPIC30F6010"
}
},
{
"BoardToSocket": {
"socket_uid": ["NONE"]
}
},
{
"SDKToBoard": {
"sdk_uid": "2.11.2+"
}
}
]
}

0 comments on commit 7748313

Please sign in to comment.