Skip to content

Commit d7f82eb

Browse files
authored
Merge pull request #267 from MikroElektronika/new-feature/boards/95
Merge branch new-feature/boards/95 into master
2 parents 045c775 + 1242e19 commit d7f82eb

File tree

10 files changed

+545
-0
lines changed

10 files changed

+545
-0
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
if(${_MSDK_BOARD_NAME_} STREQUAL "PICDEM_2_PLUS")
2+
set(BOARD_PATH "include/boards/board_picdem_2_plus")
3+
set(MCU_CARD FALSE)
4+
set(SHIELD FALSE)
5+
set(DIP_SOCKET TRUE)
6+
endif()
Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
/****************************************************************************
2+
**
3+
** Copyright (C) ${COPYRIGHT_YEAR} MikroElektronika d.o.o.
4+
** Contact: https://www.mikroe.com/contact
5+
**
6+
** This file is part of the mikroSDK package
7+
**
8+
** Commercial License Usage
9+
**
10+
** Licensees holding valid commercial NECTO compilers AI licenses may use this
11+
** file in accordance with the commercial license agreement provided with the
12+
** Software or, alternatively, in accordance with the terms contained in
13+
** a written agreement between you and The MikroElektronika Company.
14+
** For licensing terms and conditions see
15+
** https://www.mikroe.com/legal/software-license-agreement.
16+
** For further information use the contact form at
17+
** https://www.mikroe.com/contact.
18+
**
19+
**
20+
** GNU Lesser General Public License Usage
21+
**
22+
** Alternatively, this file may be used for
23+
** non-commercial projects under the terms of the GNU Lesser
24+
** General Public License version 3 as published by the Free Software
25+
** Foundation: https://www.gnu.org/licenses/lgpl-3.0.html.
26+
**
27+
** The above copyright notice and this permission notice shall be
28+
** included in all copies or substantial portions of the Software.
29+
**
30+
** THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
31+
** OF MERCHANTABILITY, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED
32+
** TO THE WARRANTIES FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
33+
** IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
34+
** DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT
35+
** OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE
36+
** OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
37+
**
38+
****************************************************************************/
39+
/*!
40+
* @file board.h
41+
* @brief Main board pin mapping.
42+
*/
43+
44+
#ifndef _BOARD_H_
45+
#define _BOARD_H_
46+
47+
#ifdef __cplusplus
48+
extern "C"
49+
{
50+
#endif
51+
52+
#define BOARD_NAME "PICDEM 2 Plus"
53+
54+
#include "dip_socket.h"
55+
56+
// Mapping
57+
#ifdef GPIO_PB0
58+
#define LED_2 GPIO_PB0
59+
#endif
60+
#ifdef GPIO_PB1
61+
#define LED_3 GPIO_PB1
62+
#endif
63+
#ifdef GPIO_PB2
64+
#define LED_4 GPIO_PB2
65+
#endif
66+
#ifdef GPIO_PB3
67+
#define LED_5 GPIO_PB3
68+
#endif
69+
70+
#ifdef __cplusplus
71+
}
72+
#endif
73+
74+
#endif // _BOARD_H_
75+
// ------------------------------------------------------------------------- END
Lines changed: 88 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,88 @@
1+
/****************************************************************************
2+
**
3+
** Copyright (C) 2025 MikroElektronika d.o.o.
4+
** Contact: https://www.mikroe.com/contact
5+
**
6+
** This file is part of the mikroSDK package
7+
**
8+
** Commercial License Usage
9+
**
10+
** Licensees holding valid commercial NECTO compilers AI licenses may use this
11+
** file in accordance with the commercial license agreement provided with the
12+
** Software or, alternatively, in accordance with the terms contained in
13+
** a written agreement between you and The MikroElektronika Company.
14+
** For licensing terms and conditions see
15+
** https://www.mikroe.com/legal/software-license-agreement.
16+
** For further information use the contact form at
17+
** https://www.mikroe.com/contact.
18+
**
19+
**
20+
** GNU Lesser General Public License Usage
21+
**
22+
** Alternatively, this file may be used for
23+
** non-commercial projects under the terms of the GNU Lesser
24+
** General Public License version 3 as published by the Free Software
25+
** Foundation: https://www.gnu.org/licenses/lgpl-3.0.html.
26+
**
27+
** The above copyright notice and this permission notice shall be
28+
** included in all copies or substantial portions of the Software.
29+
**
30+
** THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
31+
** OF MERCHANTABILITY, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED
32+
** TO THE WARRANTIES FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
33+
** IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
34+
** DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT
35+
** OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE
36+
** OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
37+
**
38+
****************************************************************************/
39+
/*!
40+
* @file dip_socket.h
41+
* @brief Dip socket mikrobus pin mapping.
42+
*/
43+
44+
#ifndef _DIP_SOCKET_H_
45+
#define _DIP_SOCKET_H_
46+
47+
#ifdef __cplusplus
48+
extern "C"{
49+
#endif
50+
51+
#include "hal_target.h"
52+
53+
// Mapping
54+
#define HEADER_CONNECTOR_J3_D1 // Pin not routed
55+
#define HEADER_CONNECTOR_J3_D2 // Pin not routed
56+
#define HEADER_CONNECTOR_J3_D3 // Pin not routed
57+
#define HEADER_CONNECTOR_J3_D4 GPIO_PA4
58+
#define HEADER_CONNECTOR_J3_D5 // Pin not routed
59+
#define HEADER_CONNECTOR_J3_D6 GPIO_PA3
60+
#define HEADER_CONNECTOR_J3_D7 // Pin not routed
61+
#define HEADER_CONNECTOR_J3_D8 // Pin not routed
62+
#define HEADER_CONNECTOR_J3_D9 // Pin not routed
63+
#define HEADER_CONNECTOR_J3_D10 // Pin not routed
64+
#define HEADER_CONNECTOR_J3_D11 // Pin not routed
65+
#define HEADER_CONNECTOR_J3_D12 // Pin not routed
66+
#define HEADER_CONNECTOR_J3_D13 GPIO_PB7
67+
#define HEADER_CONNECTOR_J3_D14 GPIO_PA0
68+
#define HEADER_CONNECTOR_J3_D15 GPIO_PB6
69+
#define HEADER_CONNECTOR_J3_D16 GPIO_PA1
70+
#define HEADER_CONNECTOR_J3_D17 GPIO_PB5
71+
#define HEADER_CONNECTOR_J3_D18 GPIO_PA2
72+
#define HEADER_CONNECTOR_J3_D19 GPIO_PB4
73+
#define HEADER_CONNECTOR_J3_D20 // Pin not routed
74+
#define HEADER_CONNECTOR_J3_D21 GPIO_PB3
75+
#define HEADER_CONNECTOR_J3_D22 // Pin not routed
76+
#define HEADER_CONNECTOR_J3_D23 GPIO_PB2
77+
#define HEADER_CONNECTOR_J3_D24 // Pin not routed
78+
#define HEADER_CONNECTOR_J3_D25 GPIO_PB1
79+
#define HEADER_CONNECTOR_J3_D26 // Pin not routed
80+
#define HEADER_CONNECTOR_J3_D27 GPIO_PB0
81+
#define HEADER_CONNECTOR_J3_D28 // Pin not routed
82+
83+
#ifdef __cplusplus
84+
}
85+
#endif
86+
87+
#endif // _DIP_SOCKET_H_
88+
// ------------------------------------------------------------------------- END
Lines changed: 88 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,88 @@
1+
/****************************************************************************
2+
**
3+
** Copyright (C) 2025 MikroElektronika d.o.o.
4+
** Contact: https://www.mikroe.com/contact
5+
**
6+
** This file is part of the mikroSDK package
7+
**
8+
** Commercial License Usage
9+
**
10+
** Licensees holding valid commercial NECTO compilers AI licenses may use this
11+
** file in accordance with the commercial license agreement provided with the
12+
** Software or, alternatively, in accordance with the terms contained in
13+
** a written agreement between you and The MikroElektronika Company.
14+
** For licensing terms and conditions see
15+
** https://www.mikroe.com/legal/software-license-agreement.
16+
** For further information use the contact form at
17+
** https://www.mikroe.com/contact.
18+
**
19+
**
20+
** GNU Lesser General Public License Usage
21+
**
22+
** Alternatively, this file may be used for
23+
** non-commercial projects under the terms of the GNU Lesser
24+
** General Public License version 3 as published by the Free Software
25+
** Foundation: https://www.gnu.org/licenses/lgpl-3.0.html.
26+
**
27+
** The above copyright notice and this permission notice shall be
28+
** included in all copies or substantial portions of the Software.
29+
**
30+
** THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
31+
** OF MERCHANTABILITY, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED
32+
** TO THE WARRANTIES FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
33+
** IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
34+
** DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT
35+
** OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE
36+
** OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
37+
**
38+
****************************************************************************/
39+
/*!
40+
* @file dip_socket.h
41+
* @brief Dip socket mikrobus pin mapping.
42+
*/
43+
44+
#ifndef _DIP_SOCKET_H_
45+
#define _DIP_SOCKET_H_
46+
47+
#ifdef __cplusplus
48+
extern "C"{
49+
#endif
50+
51+
#include "hal_target.h"
52+
53+
// Mapping
54+
#define HEADER_CONNECTOR_J3_D1 // Pin not routed
55+
#define HEADER_CONNECTOR_J3_D2 GPIO_PA5
56+
#define HEADER_CONNECTOR_J3_D3 // Pin not routed
57+
#define HEADER_CONNECTOR_J3_D4 GPIO_PA4
58+
#define HEADER_CONNECTOR_J3_D5 // Pin not routed
59+
#define HEADER_CONNECTOR_J3_D6 GPIO_PA3
60+
#define HEADER_CONNECTOR_J3_D7 // Pin not routed
61+
#define HEADER_CONNECTOR_J3_D8 GPIO_PC5
62+
#define HEADER_CONNECTOR_J3_D9 GPIO_PC7
63+
#define HEADER_CONNECTOR_J3_D10 GPIO_PC4
64+
#define HEADER_CONNECTOR_J3_D11 GPIO_PC6
65+
#define HEADER_CONNECTOR_J3_D12 GPIO_PC3
66+
#define HEADER_CONNECTOR_J3_D13 GPIO_PB7
67+
#define HEADER_CONNECTOR_J3_D14 GPIO_PA0
68+
#define HEADER_CONNECTOR_J3_D15 GPIO_PB6
69+
#define HEADER_CONNECTOR_J3_D16 GPIO_PA1
70+
#define HEADER_CONNECTOR_J3_D17 GPIO_PB5
71+
#define HEADER_CONNECTOR_J3_D18 GPIO_PA2
72+
#define HEADER_CONNECTOR_J3_D19 GPIO_PB4
73+
#define HEADER_CONNECTOR_J3_D20 GPIO_PC0
74+
#define HEADER_CONNECTOR_J3_D21 GPIO_PB3
75+
#define HEADER_CONNECTOR_J3_D22 GPIO_PC1
76+
#define HEADER_CONNECTOR_J3_D23 GPIO_PB2
77+
#define HEADER_CONNECTOR_J3_D24 GPIO_PC2
78+
#define HEADER_CONNECTOR_J3_D25 GPIO_PB1
79+
#define HEADER_CONNECTOR_J3_D26 // Pin not routed
80+
#define HEADER_CONNECTOR_J3_D27 GPIO_PB0
81+
#define HEADER_CONNECTOR_J3_D28 // Pin not routed
82+
83+
#ifdef __cplusplus
84+
}
85+
#endif
86+
87+
#endif // _DIP_SOCKET_H_
88+
// ------------------------------------------------------------------------- END
Lines changed: 102 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,102 @@
1+
/****************************************************************************
2+
**
3+
** Copyright (C) 2025 MikroElektronika d.o.o.
4+
** Contact: https://www.mikroe.com/contact
5+
**
6+
** This file is part of the mikroSDK package
7+
**
8+
** Commercial License Usage
9+
**
10+
** Licensees holding valid commercial NECTO compilers AI licenses may use this
11+
** file in accordance with the commercial license agreement provided with the
12+
** Software or, alternatively, in accordance with the terms contained in
13+
** a written agreement between you and The MikroElektronika Company.
14+
** For licensing terms and conditions see
15+
** https://www.mikroe.com/legal/software-license-agreement.
16+
** For further information use the contact form at
17+
** https://www.mikroe.com/contact.
18+
**
19+
**
20+
** GNU Lesser General Public License Usage
21+
**
22+
** Alternatively, this file may be used for
23+
** non-commercial projects under the terms of the GNU Lesser
24+
** General Public License version 3 as published by the Free Software
25+
** Foundation: https://www.gnu.org/licenses/lgpl-3.0.html.
26+
**
27+
** The above copyright notice and this permission notice shall be
28+
** included in all copies or substantial portions of the Software.
29+
**
30+
** THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
31+
** OF MERCHANTABILITY, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED
32+
** TO THE WARRANTIES FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
33+
** IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
34+
** DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT
35+
** OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE
36+
** OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
37+
**
38+
****************************************************************************/
39+
/*!
40+
* @file dip_socket.h
41+
* @brief Dip socket mikrobus pin mapping.
42+
*/
43+
44+
#ifndef _DIP_SOCKET_H_
45+
#define _DIP_SOCKET_H_
46+
47+
#ifdef __cplusplus
48+
extern "C"{
49+
#endif
50+
51+
#include "hal_target.h"
52+
53+
// Mapping
54+
#define HEADER_CONNECTOR_J3_D1 GPIO_PE2
55+
#define HEADER_CONNECTOR_J3_D2 GPIO_PA5
56+
#define HEADER_CONNECTOR_J3_D3 GPIO_PE3
57+
#define HEADER_CONNECTOR_J3_D4 GPIO_PA4
58+
#define HEADER_CONNECTOR_J3_D5 GPIO_PA7
59+
#define HEADER_CONNECTOR_J3_D6 GPIO_PA3
60+
#define HEADER_CONNECTOR_J3_D7 GPIO_PA6
61+
#define HEADER_CONNECTOR_J3_D8 GPIO_PC5
62+
#define HEADER_CONNECTOR_J3_D9 GPIO_PC7
63+
#define HEADER_CONNECTOR_J3_D10 GPIO_PC4
64+
#define HEADER_CONNECTOR_J3_D11 GPIO_PC6
65+
#define HEADER_CONNECTOR_J3_D12 GPIO_PC3
66+
#define HEADER_CONNECTOR_J3_D13 GPIO_PB7
67+
#define HEADER_CONNECTOR_J3_D14 GPIO_PA0
68+
#define HEADER_CONNECTOR_J3_D15 GPIO_PB6
69+
#define HEADER_CONNECTOR_J3_D16 GPIO_PA1
70+
#define HEADER_CONNECTOR_J3_D17 GPIO_PB5
71+
#define HEADER_CONNECTOR_J3_D18 GPIO_PA2
72+
#define HEADER_CONNECTOR_J3_D19 GPIO_PB4
73+
#define HEADER_CONNECTOR_J3_D20 GPIO_PC0
74+
#define HEADER_CONNECTOR_J3_D21 GPIO_PB3
75+
#define HEADER_CONNECTOR_J3_D22 GPIO_PC1
76+
#define HEADER_CONNECTOR_J3_D23 GPIO_PB2
77+
#define HEADER_CONNECTOR_J3_D24 GPIO_PC2
78+
#define HEADER_CONNECTOR_J3_D25 GPIO_PB1
79+
#define HEADER_CONNECTOR_J3_D26 // Pin not routed
80+
#define HEADER_CONNECTOR_J3_D27 GPIO_PB0
81+
#define HEADER_CONNECTOR_J3_D28 // Pin not routed
82+
83+
#define HEADER_CONNECTOR_J4_D1 GPIO_PD1
84+
#define HEADER_CONNECTOR_J4_D2 GPIO_PD0
85+
#define HEADER_CONNECTOR_J4_D3 GPIO_PD3
86+
#define HEADER_CONNECTOR_J4_D4 GPIO_PD2
87+
#define HEADER_CONNECTOR_J4_D5 GPIO_PD5
88+
#define HEADER_CONNECTOR_J4_D6 GPIO_PD4
89+
#define HEADER_CONNECTOR_J4_D7 GPIO_PD7
90+
#define HEADER_CONNECTOR_J4_D8 GPIO_PD6
91+
#define HEADER_CONNECTOR_J4_D9 GPIO_PE1
92+
#define HEADER_CONNECTOR_J4_D10 GPIO_PE0
93+
94+
#define BUTTON_2 GPIO_PA4
95+
#define BUTTON_3 GPIO_PB0
96+
97+
#ifdef __cplusplus
98+
}
99+
#endif
100+
101+
#endif // _DIP_SOCKET_H_
102+
// ------------------------------------------------------------------------- END

changelog/v2.13.1/changelog.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ Support added for following hardware:
7373
+ **[2025-02-21](./new_hw/2025-02-21.md)**
7474
+ **[2025-02-24](./new_hw/2025-02-24.md)**
7575
+ **[2025-02-25](./new_hw/2025-02-25.md)**
76+
+ **[2025-02-26](./new_hw/2025-02-26.md)**
7677

7778
---
7879

0 commit comments

Comments
 (0)