RainbowBS Manual: Chapter6 Configration

RainbowBS

RainbowBS Manual  v0.1.0
Written by QWQ([email protected])
Chapter6 Configration

RBS configuration is defined by file RainbowBSConf.h.You can write or modify this file or use PC tool RAutoConfig.exe to generate this file.

Configuration class

System and CPU

  • RBS_CFG_SYS_INFO

    define a string for describing the application.

  • RBS_CFG_TICK_RATE

    timer tick per second. The valid value should be in rang of 1 to 1000 and 1000 should be divided with no remainder by it.

  • RBS_CFG_CPU_WORD_SIZE

    definition of CPU word size 8bits/16bits/32bits.

  • RBS_CFG_CPU_BYTE_ORDER_L

    CPU byte order.1 means little-endia and 0 means big-endia.

  • RBS_CFG_CPU_STACK_DOWN

    stack growth direction.1 means growing to low address and 0 means growing to high address.

Application model

  • RBS_CFG_APP_MODEL

    one of three application models should be chosen.

    • RBS_APP_NONE traditional event-driven model.
    • RBS_APP_PTP protothread event-driven model.
    • RBS_APP_OS multitask model.OS kernel needed.
  • HMUTEX

    type of mutex defined by OS used.This has effect only when RBS_CFG_APP_MODEL is configured to RBS_APP_OS.

  • Head file name

    head file offered by OS used.This has effect only when RBS_CFG_APP_MODEL is configured to RBS_APP_OS.

  • RBS_CFG_PTP_NO_PROCESS_NAME

    process name.1 means disabled,0 means enabled.This has effect only when RBS_CFG_APP_MODEL is configured to RBS_APP_PTP.

  • RBS_CFG_PTP_PROCESS_STATS

    used to statistics for events used.1 means enabled,0 means disabled.This has effect only when RBS_CFG_APP_MODEL is configured to RBS_APP_PTP.

  • RBS_CFG_PTP_NUMEVENTS

    event count.This has effect only when RBS_CFG_APP_MODEL is configured to RBS_APP_PTP.

DMM

  • RBS_CFG_DMM_ALIGN

    define the alignment bytes for memory address and size.3 means 8 bytes,2 means 4 bytes,1 means 2 bytes,0 means 1 byte.

Debug

  • RBS_CFG_DEBUG_LEVEL

    debug output level.one of four should be chosen.

    • RBS_DEBUG_LEVEL_NOCHECK disable debug output.no running time checks are performed.
    • RBS_DEBUG_LEVEL_ERRORS errors are recorded.
    • RBS_DEBUG_LEVEL_WARNINGS errors and warnings are recorded.
    • RBS_DEBUG_LEVEL_LOG errors,warnings and logs are recorded.
  • RBS_CFG_DEBUG_BUFSIZE

    output buffer length.This has effect only when RBS_CFG_DEBUG_LEVEL is not configured to RBS_DEBUG_LEVEL_NOCHECK.


Using RAutoConfig

RAutoConfig is in "RainbowBS\RBSTools".

RAutoConfig.png
Rainbow AutoConfig
Generated by   doxygen 1.8.9.1