Quantcast
Channel: Forums - Recent Threads
Viewing all articles
Browse latest Browse all 262198

Compiler/DRA712: ENUM Size

$
0
0

Part Number:DRA712

Tool/software: TI C/C++ Compiler

Team

We are using the following SDK Linux Automotive 3.02.00.03 to develop an DRA721, M4-IPU1 application, which one has to an IPC to A15

  • bios_6_52_00_12
  • gcc version 6.3.1 20170215 (release) [ARM/embedded-6-branch revision 245512] (GNU Tools for ARM Embedded Processors 6-2017-q1-update

We define a set of enum for a custom A15-M4 protocol over standard TI IPC methods.

We realize that gcc for A15 set ENUM size to int size, but gcc  for M4 set it to 1byte

typedef enum  sig {NIGHT_MODE=0, PARKING_MODE, SPEED, REVERSE_GEAR} Signal_type;

sizeof(Signal_type); //1 byte

How can we set M4 compiler ENUM size to be compatible with A15 ENUM size?

Regards


Viewing all articles
Browse latest Browse all 262198

Trending Articles