• Compiler Crashed on Specific Macro
    Hi all, I defined a macro as #define min(a,b) (((a) < (b)) ? (a) : (b)) and used it as xfr_cnt = min(to_xfer, secsize - boff); but every time compiler crashed on this C file. It is ok after I expanded...
  • a problem with macro definition
    #define FLASH_BASE 0x080000 #define RECORD_SIZE 32 #define RECORDS_PER_SECTOR (FLASH_SECTOR_SIZE / RECORD_SIZE) #define MAX_RECORD_NUM 30135 #define MAX_RECORD_ADDR (MAX_RECORD_NUM * RECORD_SIZE...
  • Import definitions/macros
    Hello... Currently I am using a header file that contains imported variables/functions/arrays at specific addressing. This is not ideal but it is the only workaround I have for my project. Now I...
  • Use in Macro Definitions
    I need to define macros that contains inline assembly. I have used the solution explained in this link: http://www.keil.com/support/man/docs/c166/c166_le_extmacros.htm however, this doesn't...
  • How to call a C function instead of macro in RTX51 tiny
    Hello, I'm trying to have a C function called when the tick timer 0 is interrupted. in the manual it has this macro where i'm supposed to write the macro but the problem is my code is in C and I...