• type qualifier on return type is meaningless
    I ported a a firmware from IAR Embedded Workbench to Kiel version 4 I get this warning after building the project in Kiel but not in IAR Warning: #815-D: type qualifier on return type is meaningless...
  • a warning about return type
    Keil uVision 5 const MCANMessage ClientRespondSysCommand(BYTE byCommand, BYTE nLen, BYTE* pData) { MCANMessage NewMessage; InitMessage(&NewMessage); NewMessage.bServerSend = FALSE; NewMessage...
  • array index type of signed int
    Hi list, i'm working with c51v750a. My problem: int array[ 0] _at_ 0x7600; //xdata unsigned char index = 0; //xdata printf("%d", &array[ index]); printf("%d", &array[(unsigned char)(index - 1)...
  • Why IDATA in MAIN
    I am trying to find the best places to save some DATA storage to use it in a more speed sensitive area. Looking at the map, I see the following: TYPE BASE LENGTH RELOCATION SEGMENT NAME -------...
  • why sprintf can't convert int ??
    main() { char szOut[100]; int nYear,nMonth,nDate,nHour,nMinute,nSecond,nOldSec = 0; rtc_init(); set_date_time(2005,6,3,10,58,55); while(1) { get_date_time(&nYear,&nMonth,&nDate,&nHour,&nMinute...