#include /* @ start of test send packet with size = 1 @ pass bytes send packet with size = 2 @ pass int send packet with size = 3 @ pass short send packet with size = 4 @ error reading send packet with size = 9 @ test finish send packet with size = 7 send packet with size = 7 send packet with size = 7 */ #define BYTE_SIZE 800 #define SHORT_SIZE BYTE_SIZE/2 #define INT_SIZE BYTE_SIZE/4 void main() { reg_wb_enable =1; // for enable writing to reg_debug_1 and reg_debug_2 reg_debug_1 = 0x0; reg_debug_2 = 0x0; unsigned char dff_bytes[BYTE_SIZE]; unsigned short *dff_shorts=(unsigned short *) dff_bytes; unsigned int *dff_ints=(unsigned int *) dff_bytes; unsigned char magic = 0x79; unsigned int magic_int = 0x79797979; unsigned short magic_short = 0x7979; unsigned char magic1; unsigned int magic1_int; unsigned short magic1_short; int i; magic1 = magic; for ( i=0; i