STM8L052R8大小端测试

int checkSystem2(void)
{
	APP_INT32U i = 0x12345678;
	APP_INT32U *c = &i;
	return ((c[0] == 0x78) && (c[1] == 0x56) && (c[2] == 0x34) && (c[3] == 0x12));
}

if(checkSystem2())
    printf("little endian\n");
else
	printf("big endian\n");

测试后发现STM8L为大端