?? master.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 + -