• define or another issue
    #define MHI 1; unsigned char xdata TTT _at_ 0xff00; if((TTT&0x01)==MHI) { } Hi,All I have a C51 program show on upper. I found it show error message syntax error after build. Then I tried to...
  • C Library I/O retargeting
    Hello, I'm having an issue with re-targeting the C library. I'm using RL-Flash + RL-TCP + RTX. I have (want) my printf etc (stdin, stdout stderr) erdirected to a UART. While reading the...
  • Retargeting: Return error from _sys_read()
    Dear all, The below implementation of _sys_read() returns an error code (a negative number, e.g. -7) if the underlaying file system functions indicates an error. The caller of _sys_read() (the C...
  • Retargeting printf(), by writing custom fputc()
    Hello! I have been reading on how to retarget printf() so I can direct it to my USART Tx. I have never done retargeting before (not even on other platforms) so this is new to me. Eventually I...
  • Retarget _sys_open and disable file buffering
    I use the FlashFS and therefore, I have a Retarget.c, in which the most _sys_ functions are programmed to wrap the stdio functions to the flash-fs library. I like to create a virtual file, for which...