Tool/software: TI C/C++ Compiler
Paltform is BeagleBone Black under Debian, I have a ARM/PRU project.
I've a struct in shared memory, to communicate with the ARM under Debian. I must force the struct to same byte layout under ARM and under PRU, so I used "#pragma pack"
<codesnippet>
/***** start of shared structs *****/
#pragma pack(4)
typedef struct {
uint32_t addr ; // register 0..7
uint32_t bitmask ; // change only these bits in register
uint32_t val ; // value set/get.
} mailbox_buslatch_t;
</codesnippet>
But clpru says
"../common/mailbox.h", line 28: warning #163-D: unrecognized #pragma
According to manual, #pragma pack(4) is supported.
Full call line:
/home/joerg/retrocmp/dec/pdp11/UniBone/91_3rd_party/pru-c-compile/ti-cgt-pru_2.2.1//bin/clpru --include_path=/home/joerg/retrocmp/dec/pdp11/UniBone/91_3rd_party/pru-c-compile/ti-cgt-pru_2.2.1//include --include_path=/home/joerg/retrocmp/dec/pdp11/UniBone/91_3rd_party/pru-c-compile/pru-software-support-package/include --include_path=/home/joerg/retrocmp/dec/pdp11/UniBone/91_3rd_party/pru-c-compile/pru-software-support-package/include/am335x --include_path=../common -v3 -O3 --auto_inline --display_error_number --endian=little --hardware_mac=on --obj_directory=../bin-bbb --pp_directory=../bin-bbb -ppd -ppa --c_src_interlist --optimizer_interlist --absolute_listing -fe ../bin-bbb/pru1_main.object pru1_main.c
"../common/mailbox.h", line 28: warning #163-D: unrecognized #pragma
Thnaks fpr caring
Joerg Hoppe