platform_config.h 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. // Automatically generated header file for LINUX
  2. // Generated by scripts/build_platform_config.py
  3. #ifndef _PLATFORM_CONFIG_H
  4. #define _PLATFORM_CONFIG_H
  5. #include <rtthread.h>
  6. #define PC_BOARD_ID "LINUX"
  7. #define PC_BOARD_CHIP "LINUX"
  8. #define PC_BOARD_CHIP_FAMILY "LINUX"
  9. // SYSTICK is the counter that counts up and that we use as the real-time clock
  10. // The smaller this is, the longer we spend in interrupts, but also the more we can sleep!
  11. #define SYSTICK_RANGE 0x1000000 // the Maximum (it is a 24 bit counter) - on Olimexino this is about 0.6 sec
  12. #define SYSTICKS_BEFORE_USB_DISCONNECT 2
  13. #define DEFAULT_BUSY_PIN_INDICATOR (Pin)-1 // no indicator
  14. #define DEFAULT_SLEEP_PIN_INDICATOR (Pin)-1 // no indicator
  15. // When to send the message that the IO buffer is getting full
  16. #define IOBUFFER_XOFF ((TXBUFFERMASK)*6/8)
  17. // When to send the message that we can start receiving again
  18. #define IOBUFFER_XON ((TXBUFFERMASK)*3/8)
  19. #define RAM_TOTAL (-1*1024)
  20. #define FLASH_TOTAL (-1*1024)
  21. #define RESIZABLE_JSVARS // Allocate variables in blocks using malloc
  22. #define USARTS 0
  23. #define SPIS 1
  24. #define I2CS 0
  25. #define ADCS 0
  26. #define DACS 0
  27. #define DEFAULT_CONSOLE_DEVICE EV_USBSERIAL
  28. #define IOBUFFERMASK 31 // (max 255) amount of items in event buffer - events take ~9 bytes each
  29. #define TXBUFFERMASK 31 // (max 255)
  30. // definition to avoid compilation when Pin/platform config is not defined
  31. #define IS_PIN_USED_INTERNALLY(PIN) ((false))
  32. #define IS_PIN_A_LED(PIN) ((false))
  33. #define IS_PIN_A_BUTTON(PIN) ((false))
  34. #endif // _PLATFORM_CONFIG_H