// SYSTICK is the counter that counts up and that we use as the real-time clock // The smaller this is, the longer we spend in interrupts, but also the more we can sleep! #define SYSTICK_RANGE 0x1000000 // the Maximum (it is a 24 bit counter) - on Olimexino this is about 0.6 sec #define SYSTICKS_BEFORE_USB_DISCONNECT 2 #define DEFAULT_BUSY_PIN_INDICATOR (Pin)-1 // no indicator #define DEFAULT_SLEEP_PIN_INDICATOR (Pin)-1 // no indicator // When to send the message that the IO buffer is getting full #define IOBUFFER_XOFF ((TXBUFFERMASK)*6/8) // When to send the message that we can start receiving again #define IOBUFFER_XON ((TXBUFFERMASK)*3/8) """) util_timer = pinutils.get_device_util_timer(board) if util_timer != False: codeOut(util_timer['defines']) codeOut("") # ------------------------------------------------------------------------------------- Chip Specifics codeOut("#define RAM_TOTAL (" + str(board.chip['ram']) + "*1024)") codeOut("#define FLASH_TOTAL (" + str(board.chip['flash']) + "*1024)") codeOut("") if LINUX: codeOut( '#define RESIZABLE_JSVARS // Allocate variables in blocks using malloc' ) #codeOut("#define JSVAR_CACHE_SIZE "+str(200)+" // Number of JavaScript variables in RAM") else: codeOut("#define JSVAR_CACHE_SIZE " + str(variables) +
// SYSTICK is the counter that counts up and that we use as the real-time clock // The smaller this is, the longer we spend in interrupts, but also the more we can sleep! #define SYSTICK_RANGE 0x1000000 // the Maximum (it is a 24 bit counter) - on Olimexino this is about 0.6 sec #define SYSTICKS_BEFORE_USB_DISCONNECT 2 #define DEFAULT_BUSY_PIN_INDICATOR (Pin)-1 // no indicator #define DEFAULT_SLEEP_PIN_INDICATOR (Pin)-1 // no indicator // When to send the message that the IO buffer is getting full #define IOBUFFER_XOFF ((TXBUFFERMASK)*6/8) // When to send the message that we can start receiving again #define IOBUFFER_XON ((TXBUFFERMASK)*3/8) """); util_timer = pinutils.get_device_util_timer(board) if util_timer!=False: codeOut(util_timer['defines']); codeOut(""); # ------------------------------------------------------------------------------------- Chip Specifics codeOut("#define RAM_TOTAL ("+str(board.chip['ram'])+"*1024)") codeOut("#define FLASH_TOTAL ("+str(board.chip['flash'])+"*1024)") codeOut(""); if variables==0: codeOut('#define RESIZABLE_JSVARS // Allocate variables in blocks using malloc - slow, and linux-only') else: codeOut("#define JSVAR_CACHE_SIZE "+str(variables)+" // Number of JavaScript variables in RAM") if LINUX: