longlit.c

来自「Small Device C Compiler 面向Inter8051」· C语言 代码 · 共 16 行

C
16
字号
/* Testing arithmetics with long litterals */#include <testfwk.h>#define OSCILLATOR 11059200#define BAUD 19200#define T1_RELOAD_VALUE -(2*OSCILLATOR)/(32*12*BAUD)unsigned char T1=T1_RELOAD_VALUE;void test (void) {  ASSERT(T1==0xfd);}

⌨️ 快捷键说明

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