aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNick Saulnier2018-07-11 18:00:41 -0500
committerNick Saulnier2018-07-24 20:06:33 -0500
commitee6fb33ba1c18b6104a53b035ea6f473d16a0e1e (patch)
tree3b9ddb346f6ea586b175f1cc250b3ae77e7dd29a
parent81b568741b8b98e6f590271a9aea5956d2b2d9ce (diff)
downloadpru-software-support-package-ee6fb33ba1c18b6104a53b035ea6f473d16a0e1e.tar.gz
pru-software-support-package-ee6fb33ba1c18b6104a53b035ea6f473d16a0e1e.tar.xz
pru-software-support-package-ee6fb33ba1c18b6104a53b035ea6f473d16a0e1e.zip
examples: Update RPMsg payload message lengthv5.2.1
The RPMsg payload buffer is 512 bytes. However, it includes a 16 byte header. Thus, the max message length that can be stored in the payload is 496 bytes. The max payload message length was changed from 512 to 496 in PRU example firmware. Signed-off-by: Nick Saulnier <nsaulnier@ti.com>
-rw-r--r--examples/am335x/PRU_RPMsg_Echo_Interrupt0/main.c6
-rw-r--r--examples/am335x/PRU_RPMsg_Echo_Interrupt1/main.c6
-rw-r--r--examples/am437x/PRU_RPMsg_Echo_Interrupt0_0/main.c6
-rw-r--r--examples/am437x/PRU_RPMsg_Echo_Interrupt0_1/main.c6
-rw-r--r--examples/am437x/PRU_RPMsg_Echo_Interrupt1_0/main.c6
-rw-r--r--examples/am437x/PRU_RPMsg_Echo_Interrupt1_1/main.c6
-rw-r--r--examples/am572x/PRU_RPMsg_Echo_Interrupt1_0/main.c6
-rw-r--r--examples/am572x/PRU_RPMsg_Echo_Interrupt1_1/main.c6
-rw-r--r--examples/am572x/PRU_RPMsg_Echo_Interrupt2_0/main.c6
-rw-r--r--examples/am572x/PRU_RPMsg_Echo_Interrupt2_1/main.c6
-rw-r--r--examples/k2g/PRU_RPMsg_Echo_Interrupt0_0/main.c6
-rw-r--r--examples/k2g/PRU_RPMsg_Echo_Interrupt0_1/main.c6
-rw-r--r--examples/k2g/PRU_RPMsg_Echo_Interrupt1_0/main.c6
-rw-r--r--examples/k2g/PRU_RPMsg_Echo_Interrupt1_1/main.c6
14 files changed, 56 insertions, 28 deletions
diff --git a/examples/am335x/PRU_RPMsg_Echo_Interrupt0/main.c b/examples/am335x/PRU_RPMsg_Echo_Interrupt0/main.c
index a76acc3..4b30c9f 100644
--- a/examples/am335x/PRU_RPMsg_Echo_Interrupt0/main.c
+++ b/examples/am335x/PRU_RPMsg_Echo_Interrupt0/main.c
@@ -1,5 +1,5 @@
1/* 1/*
2 * Copyright (C) 2016 Texas Instruments Incorporated - http://www.ti.com/ 2 * Copyright (C) 2018 Texas Instruments Incorporated - http://www.ti.com/
3 * 3 *
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
@@ -65,7 +65,9 @@ volatile register uint32_t __R31;
65 */ 65 */
66#define VIRTIO_CONFIG_S_DRIVER_OK 4 66#define VIRTIO_CONFIG_S_DRIVER_OK 4
67 67
68uint8_t payload[RPMSG_BUF_SIZE]; 68
69#define RPMSG_BUF_HEADER_SIZE 16
70uint8_t payload[RPMSG_BUF_SIZE - RPMSG_BUF_HEADER_SIZE];
69 71
70/* 72/*
71 * main.c 73 * main.c
diff --git a/examples/am335x/PRU_RPMsg_Echo_Interrupt1/main.c b/examples/am335x/PRU_RPMsg_Echo_Interrupt1/main.c
index 187e8e8..9da4a6e 100644
--- a/examples/am335x/PRU_RPMsg_Echo_Interrupt1/main.c
+++ b/examples/am335x/PRU_RPMsg_Echo_Interrupt1/main.c
@@ -1,5 +1,5 @@
1/* 1/*
2 * Copyright (C) 2016 Texas Instruments Incorporated - http://www.ti.com/ 2 * Copyright (C) 2018 Texas Instruments Incorporated - http://www.ti.com/
3 * 3 *
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
@@ -65,7 +65,9 @@ volatile register uint32_t __R31;
65 */ 65 */
66#define VIRTIO_CONFIG_S_DRIVER_OK 4 66#define VIRTIO_CONFIG_S_DRIVER_OK 4
67 67
68uint8_t payload[RPMSG_BUF_SIZE]; 68
69#define RPMSG_BUF_HEADER_SIZE 16
70uint8_t payload[RPMSG_BUF_SIZE - RPMSG_BUF_HEADER_SIZE];
69 71
70/* 72/*
71 * main.c 73 * main.c
diff --git a/examples/am437x/PRU_RPMsg_Echo_Interrupt0_0/main.c b/examples/am437x/PRU_RPMsg_Echo_Interrupt0_0/main.c
index f87912f..30d26c1 100644
--- a/examples/am437x/PRU_RPMsg_Echo_Interrupt0_0/main.c
+++ b/examples/am437x/PRU_RPMsg_Echo_Interrupt0_0/main.c
@@ -1,5 +1,5 @@
1/* 1/*
2 * Copyright (C) 2016 Texas Instruments Incorporated - http://www.ti.com/ 2 * Copyright (C) 2018 Texas Instruments Incorporated - http://www.ti.com/
3 * 3 *
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
@@ -74,7 +74,9 @@ volatile register uint32_t __R31;
74#define PRUSS1_CFG_SYSCFG *(volatile unsigned int *) 0x66004 74#define PRUSS1_CFG_SYSCFG *(volatile unsigned int *) 0x66004
75#define STANDY_INIT_BIT (1 << 4) 75#define STANDY_INIT_BIT (1 << 4)
76 76
77uint8_t payload[RPMSG_BUF_SIZE]; 77
78#define RPMSG_BUF_HEADER_SIZE 16
79uint8_t payload[RPMSG_BUF_SIZE - RPMSG_BUF_HEADER_SIZE];
78 80
79/* 81/*
80 * main.c 82 * main.c
diff --git a/examples/am437x/PRU_RPMsg_Echo_Interrupt0_1/main.c b/examples/am437x/PRU_RPMsg_Echo_Interrupt0_1/main.c
index 30d9d11..59f467f 100644
--- a/examples/am437x/PRU_RPMsg_Echo_Interrupt0_1/main.c
+++ b/examples/am437x/PRU_RPMsg_Echo_Interrupt0_1/main.c
@@ -1,5 +1,5 @@
1/* 1/*
2 * Copyright (C) 2016 Texas Instruments Incorporated - http://www.ti.com/ 2 * Copyright (C) 2018 Texas Instruments Incorporated - http://www.ti.com/
3 * 3 *
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
@@ -74,7 +74,9 @@ volatile register uint32_t __R31;
74#define PRUSS1_CFG_SYSCFG *(volatile unsigned int *) 0x66004 74#define PRUSS1_CFG_SYSCFG *(volatile unsigned int *) 0x66004
75#define STANDY_INIT_BIT (1 << 4) 75#define STANDY_INIT_BIT (1 << 4)
76 76
77uint8_t payload[RPMSG_BUF_SIZE]; 77
78#define RPMSG_BUF_HEADER_SIZE 16
79uint8_t payload[RPMSG_BUF_SIZE - RPMSG_BUF_HEADER_SIZE];
78 80
79/* 81/*
80 * main.c 82 * main.c
diff --git a/examples/am437x/PRU_RPMsg_Echo_Interrupt1_0/main.c b/examples/am437x/PRU_RPMsg_Echo_Interrupt1_0/main.c
index cdc29ab..2fe6016 100644
--- a/examples/am437x/PRU_RPMsg_Echo_Interrupt1_0/main.c
+++ b/examples/am437x/PRU_RPMsg_Echo_Interrupt1_0/main.c
@@ -1,5 +1,5 @@
1/* 1/*
2 * Copyright (C) 2016 Texas Instruments Incorporated - http://www.ti.com/ 2 * Copyright (C) 2018 Texas Instruments Incorporated - http://www.ti.com/
3 * 3 *
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
@@ -65,7 +65,9 @@ volatile register uint32_t __R31;
65 */ 65 */
66#define VIRTIO_CONFIG_S_DRIVER_OK 4 66#define VIRTIO_CONFIG_S_DRIVER_OK 4
67 67
68uint8_t payload[RPMSG_BUF_SIZE]; 68
69#define RPMSG_BUF_HEADER_SIZE 16
70uint8_t payload[RPMSG_BUF_SIZE - RPMSG_BUF_HEADER_SIZE];
69 71
70/* 72/*
71 * main.c 73 * main.c
diff --git a/examples/am437x/PRU_RPMsg_Echo_Interrupt1_1/main.c b/examples/am437x/PRU_RPMsg_Echo_Interrupt1_1/main.c
index b73c999..675f635 100644
--- a/examples/am437x/PRU_RPMsg_Echo_Interrupt1_1/main.c
+++ b/examples/am437x/PRU_RPMsg_Echo_Interrupt1_1/main.c
@@ -1,5 +1,5 @@
1/* 1/*
2 * Copyright (C) 2016 Texas Instruments Incorporated - http://www.ti.com/ 2 * Copyright (C) 2018 Texas Instruments Incorporated - http://www.ti.com/
3 * 3 *
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
@@ -65,7 +65,9 @@ volatile register uint32_t __R31;
65 */ 65 */
66#define VIRTIO_CONFIG_S_DRIVER_OK 4 66#define VIRTIO_CONFIG_S_DRIVER_OK 4
67 67
68uint8_t payload[RPMSG_BUF_SIZE]; 68
69#define RPMSG_BUF_HEADER_SIZE 16
70uint8_t payload[RPMSG_BUF_SIZE - RPMSG_BUF_HEADER_SIZE];
69 71
70/* 72/*
71 * main.c 73 * main.c
diff --git a/examples/am572x/PRU_RPMsg_Echo_Interrupt1_0/main.c b/examples/am572x/PRU_RPMsg_Echo_Interrupt1_0/main.c
index c6bb57d..5121681 100644
--- a/examples/am572x/PRU_RPMsg_Echo_Interrupt1_0/main.c
+++ b/examples/am572x/PRU_RPMsg_Echo_Interrupt1_0/main.c
@@ -1,5 +1,5 @@
1/* 1/*
2 * Copyright (C) 2016 Texas Instruments Incorporated - http://www.ti.com/ 2 * Copyright (C) 2018 Texas Instruments Incorporated - http://www.ti.com/
3 * 3 *
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
@@ -65,7 +65,9 @@ volatile register uint32_t __R31;
65 */ 65 */
66#define VIRTIO_CONFIG_S_DRIVER_OK 4 66#define VIRTIO_CONFIG_S_DRIVER_OK 4
67 67
68uint8_t payload[RPMSG_BUF_SIZE]; 68
69#define RPMSG_BUF_HEADER_SIZE 16
70uint8_t payload[RPMSG_BUF_SIZE - RPMSG_BUF_HEADER_SIZE];
69 71
70/* 72/*
71 * main.c 73 * main.c
diff --git a/examples/am572x/PRU_RPMsg_Echo_Interrupt1_1/main.c b/examples/am572x/PRU_RPMsg_Echo_Interrupt1_1/main.c
index c92b9e6..8224188 100644
--- a/examples/am572x/PRU_RPMsg_Echo_Interrupt1_1/main.c
+++ b/examples/am572x/PRU_RPMsg_Echo_Interrupt1_1/main.c
@@ -1,5 +1,5 @@
1/* 1/*
2 * Copyright (C) 2016 Texas Instruments Incorporated - http://www.ti.com/ 2 * Copyright (C) 2018 Texas Instruments Incorporated - http://www.ti.com/
3 * 3 *
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
@@ -65,7 +65,9 @@ volatile register uint32_t __R31;
65 */ 65 */
66#define VIRTIO_CONFIG_S_DRIVER_OK 4 66#define VIRTIO_CONFIG_S_DRIVER_OK 4
67 67
68uint8_t payload[RPMSG_BUF_SIZE]; 68
69#define RPMSG_BUF_HEADER_SIZE 16
70uint8_t payload[RPMSG_BUF_SIZE - RPMSG_BUF_HEADER_SIZE];
69 71
70/* 72/*
71 * main.c 73 * main.c
diff --git a/examples/am572x/PRU_RPMsg_Echo_Interrupt2_0/main.c b/examples/am572x/PRU_RPMsg_Echo_Interrupt2_0/main.c
index cdc29ab..2fe6016 100644
--- a/examples/am572x/PRU_RPMsg_Echo_Interrupt2_0/main.c
+++ b/examples/am572x/PRU_RPMsg_Echo_Interrupt2_0/main.c
@@ -1,5 +1,5 @@
1/* 1/*
2 * Copyright (C) 2016 Texas Instruments Incorporated - http://www.ti.com/ 2 * Copyright (C) 2018 Texas Instruments Incorporated - http://www.ti.com/
3 * 3 *
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
@@ -65,7 +65,9 @@ volatile register uint32_t __R31;
65 */ 65 */
66#define VIRTIO_CONFIG_S_DRIVER_OK 4 66#define VIRTIO_CONFIG_S_DRIVER_OK 4
67 67
68uint8_t payload[RPMSG_BUF_SIZE]; 68
69#define RPMSG_BUF_HEADER_SIZE 16
70uint8_t payload[RPMSG_BUF_SIZE - RPMSG_BUF_HEADER_SIZE];
69 71
70/* 72/*
71 * main.c 73 * main.c
diff --git a/examples/am572x/PRU_RPMsg_Echo_Interrupt2_1/main.c b/examples/am572x/PRU_RPMsg_Echo_Interrupt2_1/main.c
index b73c999..675f635 100644
--- a/examples/am572x/PRU_RPMsg_Echo_Interrupt2_1/main.c
+++ b/examples/am572x/PRU_RPMsg_Echo_Interrupt2_1/main.c
@@ -1,5 +1,5 @@
1/* 1/*
2 * Copyright (C) 2016 Texas Instruments Incorporated - http://www.ti.com/ 2 * Copyright (C) 2018 Texas Instruments Incorporated - http://www.ti.com/
3 * 3 *
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
@@ -65,7 +65,9 @@ volatile register uint32_t __R31;
65 */ 65 */
66#define VIRTIO_CONFIG_S_DRIVER_OK 4 66#define VIRTIO_CONFIG_S_DRIVER_OK 4
67 67
68uint8_t payload[RPMSG_BUF_SIZE]; 68
69#define RPMSG_BUF_HEADER_SIZE 16
70uint8_t payload[RPMSG_BUF_SIZE - RPMSG_BUF_HEADER_SIZE];
69 71
70/* 72/*
71 * main.c 73 * main.c
diff --git a/examples/k2g/PRU_RPMsg_Echo_Interrupt0_0/main.c b/examples/k2g/PRU_RPMsg_Echo_Interrupt0_0/main.c
index cf846be..b017a96 100644
--- a/examples/k2g/PRU_RPMsg_Echo_Interrupt0_0/main.c
+++ b/examples/k2g/PRU_RPMsg_Echo_Interrupt0_0/main.c
@@ -1,5 +1,5 @@
1/* 1/*
2 * Copyright (C) 2016 Texas Instruments Incorporated - http://www.ti.com/ 2 * Copyright (C) 2018 Texas Instruments Incorporated - http://www.ti.com/
3 * 3 *
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
@@ -64,7 +64,9 @@ volatile register uint32_t __R31;
64 */ 64 */
65#define VIRTIO_CONFIG_S_DRIVER_OK 4 65#define VIRTIO_CONFIG_S_DRIVER_OK 4
66 66
67uint8_t payload[RPMSG_BUF_SIZE]; 67
68#define RPMSG_BUF_HEADER_SIZE 16
69uint8_t payload[RPMSG_BUF_SIZE - RPMSG_BUF_HEADER_SIZE];
68 70
69/* 71/*
70 * main.c 72 * main.c
diff --git a/examples/k2g/PRU_RPMsg_Echo_Interrupt0_1/main.c b/examples/k2g/PRU_RPMsg_Echo_Interrupt0_1/main.c
index 14a8918..8dd7e3d 100644
--- a/examples/k2g/PRU_RPMsg_Echo_Interrupt0_1/main.c
+++ b/examples/k2g/PRU_RPMsg_Echo_Interrupt0_1/main.c
@@ -1,5 +1,5 @@
1/* 1/*
2 * Copyright (C) 2016 Texas Instruments Incorporated - http://www.ti.com/ 2 * Copyright (C) 2018 Texas Instruments Incorporated - http://www.ti.com/
3 * 3 *
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
@@ -64,7 +64,9 @@ volatile register uint32_t __R31;
64 */ 64 */
65#define VIRTIO_CONFIG_S_DRIVER_OK 4 65#define VIRTIO_CONFIG_S_DRIVER_OK 4
66 66
67uint8_t payload[RPMSG_BUF_SIZE]; 67
68#define RPMSG_BUF_HEADER_SIZE 16
69uint8_t payload[RPMSG_BUF_SIZE - RPMSG_BUF_HEADER_SIZE];
68 70
69/* 71/*
70 * main.c 72 * main.c
diff --git a/examples/k2g/PRU_RPMsg_Echo_Interrupt1_0/main.c b/examples/k2g/PRU_RPMsg_Echo_Interrupt1_0/main.c
index 4eecbf2..fae5da8 100644
--- a/examples/k2g/PRU_RPMsg_Echo_Interrupt1_0/main.c
+++ b/examples/k2g/PRU_RPMsg_Echo_Interrupt1_0/main.c
@@ -1,5 +1,5 @@
1/* 1/*
2 * Copyright (C) 2016 Texas Instruments Incorporated - http://www.ti.com/ 2 * Copyright (C) 2018 Texas Instruments Incorporated - http://www.ti.com/
3 * 3 *
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
@@ -64,7 +64,9 @@ volatile register uint32_t __R31;
64 */ 64 */
65#define VIRTIO_CONFIG_S_DRIVER_OK 4 65#define VIRTIO_CONFIG_S_DRIVER_OK 4
66 66
67uint8_t payload[RPMSG_BUF_SIZE]; 67
68#define RPMSG_BUF_HEADER_SIZE 16
69uint8_t payload[RPMSG_BUF_SIZE - RPMSG_BUF_HEADER_SIZE];
68 70
69/* 71/*
70 * main.c 72 * main.c
diff --git a/examples/k2g/PRU_RPMsg_Echo_Interrupt1_1/main.c b/examples/k2g/PRU_RPMsg_Echo_Interrupt1_1/main.c
index 7f7bdbb..510f033 100644
--- a/examples/k2g/PRU_RPMsg_Echo_Interrupt1_1/main.c
+++ b/examples/k2g/PRU_RPMsg_Echo_Interrupt1_1/main.c
@@ -1,5 +1,5 @@
1/* 1/*
2 * Copyright (C) 2016 Texas Instruments Incorporated - http://www.ti.com/ 2 * Copyright (C) 2018 Texas Instruments Incorporated - http://www.ti.com/
3 * 3 *
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
@@ -64,7 +64,9 @@ volatile register uint32_t __R31;
64 */ 64 */
65#define VIRTIO_CONFIG_S_DRIVER_OK 4 65#define VIRTIO_CONFIG_S_DRIVER_OK 4
66 66
67uint8_t payload[RPMSG_BUF_SIZE]; 67
68#define RPMSG_BUF_HEADER_SIZE 16
69uint8_t payload[RPMSG_BUF_SIZE - RPMSG_BUF_HEADER_SIZE];
68 70
69/* 71/*
70 * main.c 72 * main.c