master.cfg

来自「基于摩托罗拉(现在飞思卡尔)系列MC68HC908单片机开发车辆ECU系统!」· CFG 代码 · 共 46 行

CFG
46
字号
#ifndef LINCFG_H
#define LINCFG_H



/* SCI Baud rate          = 9.6K      */

/*
    This definition configures the LIN bus baud rate.
    This value shall be set according to target MCU 
    SCI register usage.
    HC08GR16: the 8-bit value will be masked by 0x37
    and put into SCBR register.
*/
#define LIN_BAUDRATE            0x02u


/* 
    This definition configures the timer clock rate.
    This value shall be set according to target MCU 
    timer prescaler register usage.
    HC08GR16: the 8-bit value will be masked by 0x07
    and put into T(A)SC register.
*/
#define LIN_TIMERPRESCALER      0u

/*
    This definition set the length of one bit transmission 
    period on the target MCU.
    Due to 16-bit counters on target MCU this value 
    shall not be greater than 0xFFFF.
    For correct timeouts computation this value
    shall have qualificator 'l'.
*/
#define LIN_BITTIME            256ul

/*
    This definition set the number of user-defined time clocks
    (LIN_IdleClock service calls), recognized as "no-bus-activity" 
    condition.
    This number shall not be greater than 0xFFFF.
*/
#define LIN_IDLETIMEOUT         100u

#endif /* !define (LINCFG_H) */

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?