Skip to content

Commit 5b6e15c

Browse files
Sadik.OzerSadik.Ozer
authored andcommitted
Add NULL at the end of array
Signed-off-by: Sadik.Ozer <[email protected]>
1 parent fe67287 commit 5b6e15c

File tree

1 file changed

+10
-8
lines changed

1 file changed

+10
-8
lines changed

targets/TARGET_Maxim/TARGET_MAX32660/PeripheralPins.c

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -49,40 +49,42 @@
4949
const PinMap PinMap_I2C_SDA[] = {
5050
{ P0_9, I2C_0, 1 },
5151
{ P0_3, I2C_1, 1 },
52-
{ NC, NC, 0 },
53-
{ NC, NC, 0 }
52+
{ NC, NC, 0 }
5453
};
5554

5655
const PinMap PinMap_I2C_SCL[] = {
5756
{ P0_8, I2C_0, 1 },
5857
{ P0_2, I2C_1, 1 },
59-
{ NC, NC, 0 },
60-
{ NC, NC, 0 }
58+
{ NC, NC, 0 }
6159
};
6260

6361
/************UART***************/
6462
const PinMap PinMap_UART_TX[] = {
6563
{P0_4, UART_0, 2},
6664
{P0_10, UART_1, 2},
6765
{P0_0, UART_1, 3},
68-
{P0_6, UART_1, 3}
66+
{P0_6, UART_1, 3},
67+
{NC, NC, 0}
6968
};
7069

7170
const PinMap PinMap_UART_RX[] = {
7271
{P0_5, UART_0, 2},
7372
{P0_11, UART_1, 2},
7473
{P0_1, UART_1, 3},
75-
{P0_7, UART_1, 3}
74+
{P0_7, UART_1, 3},
75+
{NC, NC, 0}
7676
};
7777

7878
const PinMap PinMap_UART_CTS[] = {
7979
{P0_6, UART_0, 2},
80-
{P0_12, UART_1, 2}
80+
{P0_12, UART_1, 2},
81+
{NC, NC, 0}
8182
};
8283

8384
const PinMap PinMap_UART_RTS[] = {
8485
{P0_7, UART_0, 2},
85-
{P0_13, UART_1, 2}
86+
{P0_13, UART_1, 2},
87+
{NC, NC, 0}
8688
};
8789

8890
/************SPI***************/

0 commit comments

Comments
 (0)