![]() |
RainbowBS Manual
v0.1.0
Written by QWQ([email protected])
|
Table of Contents
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_INFOdefine a string for describing the application.
RBS_CFG_TICK_RATEtimer 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_SIZEdefinition of CPU word size 8bits/16bits/32bits.
RBS_CFG_CPU_BYTE_ORDER_LCPU byte order.1 means little-endia and 0 means big-endia.
RBS_CFG_CPU_STACK_DOWNstack growth direction.1 means growing to low address and 0 means growing to high address.
Application model
RBS_CFG_APP_MODELone of three application models should be chosen.
RBS_APP_NONEtraditional event-driven model.RBS_APP_PTPprotothread event-driven model.RBS_APP_OSmultitask model.OS kernel needed.
HMUTEXtype of mutex defined by OS used.This has effect only when
RBS_CFG_APP_MODELis configured toRBS_APP_OS.Head file name
head file offered by OS used.This has effect only when
RBS_CFG_APP_MODELis configured toRBS_APP_OS.RBS_CFG_PTP_NO_PROCESS_NAMEprocess name.1 means disabled,0 means enabled.This has effect only when
RBS_CFG_APP_MODELis configured toRBS_APP_PTP.RBS_CFG_PTP_PROCESS_STATSused to statistics for events used.1 means enabled,0 means disabled.This has effect only when
RBS_CFG_APP_MODELis configured toRBS_APP_PTP.RBS_CFG_PTP_NUMEVENTSevent count.This has effect only when
RBS_CFG_APP_MODELis configured toRBS_APP_PTP.
DMM
RBS_CFG_DMM_ALIGNdefine 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_LEVELdebug output level.one of four should be chosen.
RBS_DEBUG_LEVEL_NOCHECKdisable debug output.no running time checks are performed.RBS_DEBUG_LEVEL_ERRORSerrors are recorded.RBS_DEBUG_LEVEL_WARNINGSerrors and warnings are recorded.RBS_DEBUG_LEVEL_LOGerrors,warnings and logs are recorded.
RBS_CFG_DEBUG_BUFSIZEoutput buffer length.This has effect only when
RBS_CFG_DEBUG_LEVELis not configured toRBS_DEBUG_LEVEL_NOCHECK.
Using RAutoConfig
RAutoConfig is in "RainbowBS\RBSTools".
Generated by
1.8.9.1
