Skip to content

Commit 61f9a1c

Browse files
author
Filip Jagodzinski
committed
KW41Z: Add a GPIO pinmap for testing
1 parent 1a9b635 commit 61f9a1c

File tree

2 files changed

+43
-0
lines changed

2 files changed

+43
-0
lines changed

targets/TARGET_Freescale/TARGET_MCUXpresso_MCUS/TARGET_KW41Z/TARGET_FRDM/PeripheralNames.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,10 @@
2222
extern "C" {
2323
#endif
2424

25+
typedef enum {
26+
GPIO_X = 0, // dummy peripheral used instead of GPIO_A..GPIO_C
27+
} GPIOName;
28+
2529
typedef enum {
2630
OSC32KCLK = 0
2731
} RTCName;

targets/TARGET_Freescale/TARGET_MCUXpresso_MCUS/TARGET_KW41Z/TARGET_FRDM/PeripheralPins.c

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,45 @@
1616

1717
#include "PeripheralPins.h"
1818

19+
/************GPIO***************/
20+
const PinMap PinMap_GPIO[] = {
21+
{PTA0, GPIO_X, 1},
22+
{PTA1, GPIO_X, 1},
23+
{PTA2, GPIO_X, 1},
24+
{PTA16, GPIO_X, 1},
25+
{PTA17, GPIO_X, 1},
26+
{PTA18, GPIO_X, 1},
27+
{PTA19, GPIO_X, 1},
28+
29+
{PTB0, GPIO_X, 1},
30+
{PTB1, GPIO_X, 1},
31+
{PTB2, GPIO_X, 1},
32+
{PTB3, GPIO_X, 1},
33+
{PTB16, GPIO_X, 1},
34+
{PTB17, GPIO_X, 1},
35+
{PTB18, GPIO_X, 1},
36+
37+
// {PTC0, GPIO_X, 1}, // PTC0 is not available on the 48-pin Laminate QFN package.
38+
{PTC1, GPIO_X, 1},
39+
{PTC2, GPIO_X, 1},
40+
{PTC3, GPIO_X, 1},
41+
{PTC4, GPIO_X, 1},
42+
{PTC5, GPIO_X, 1},
43+
{PTC6, GPIO_X, 1},
44+
{PTC7, GPIO_X, 1},
45+
{PTC16, GPIO_X, 1},
46+
{PTC17, GPIO_X, 1},
47+
{PTC18, GPIO_X, 1},
48+
{PTC19, GPIO_X, 1},
49+
50+
{NC , NC , 0}
51+
};
52+
53+
const PinMap *gpio_pinmap()
54+
{
55+
return PinMap_GPIO;
56+
}
57+
1958
/************RTC***************/
2059
const PinMap PinMap_RTC[] = {
2160
{NC, OSC32KCLK, 0},

0 commit comments

Comments
 (0)