aboutsummaryrefslogtreecommitdiffstats
path: root/src/pru/internal.h
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2017-06-30 17:04:30 -0400
committerKevin O'Connor <kevin@koconnor.net>2017-06-30 19:54:40 -0400
commitc8dca0a56cc9be84c43b6e16266411196f51656c (patch)
tree26701569ade224c4de5680bdf43a0349a09ebe33 /src/pru/internal.h
parentda3569c49044e23f7dee0ce0226f350fd9f039f9 (diff)
downloadkutter-c8dca0a56cc9be84c43b6e16266411196f51656c.tar.gz
kutter-c8dca0a56cc9be84c43b6e16266411196f51656c.tar.xz
kutter-c8dca0a56cc9be84c43b6e16266411196f51656c.zip
pru: Use a pointer when working with send_data array items
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'src/pru/internal.h')
-rw-r--r--src/pru/internal.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/pru/internal.h b/src/pru/internal.h
index 1a2983d2..980c1d61 100644
--- a/src/pru/internal.h
+++ b/src/pru/internal.h
@@ -22,15 +22,16 @@
#define ALT_PRU_PTR(ptr) ((typeof(ptr))((uint32_t)(ptr) ^ 0x2000))
// Layout of shared memory
+struct shared_response_buffer {
+ uint32_t count;
+ char data[64];
+};
struct shared_mem {
uint32_t signal;
const struct command_parser *next_command;
uint32_t next_command_args[16];
uint32_t send_push_pos, send_pop_pos;
- struct {
- uint32_t count;
- char data[64];
- } send_data[4];
+ struct shared_response_buffer send_data[4];
const struct command_parser *command_index;
uint32_t command_index_size;
const struct command_parser *shutdown_handler;