⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 master.cfg

📁 基于摩托罗拉(现在飞思卡尔)系列MC68HC908单片机开发车辆ECU系统!
💻 CFG
字号:
#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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -