摘要: 遇到的刷题题目,给定sec秒,将其转换为时分秒输出,规定了函数形式为 char* timeTrans(int sec) 且需要返回修改的字符串首地址 #include <stdio.h> char* timeTrans(int sec, char * time_str); int main(void 阅读全文
posted @ 2023-02-16 11:29 ThePhenomenal 阅读(36) 评论(0) 推荐(0)
摘要: LCD接口 MIPI(Mobile Industry Processor Interface)包含四种液晶规范: DBI (Display Bus Interface) MIPI-DBI定义了三种接口 DBI-A 基于Motorola 6800总线 DBI-B 基于Intel 8080总线 DBI- 阅读全文
posted @ 2023-02-09 17:23 ThePhenomenal 阅读(348) 评论(0) 推荐(0)
摘要: 汇编指令 MRS: Move to Register from Status MSR: Move to Status from Register 指令同MOV,参数前者是目的地,后者是源 用于操作PSR(Program Status Register) ARM寄存器基本结构 r0 r12 13个通用 阅读全文
posted @ 2022-08-21 17:53 ThePhenomenal 阅读(46) 评论(0) 推荐(0)
摘要: ****************************************************************************************** .c 所写c源文件 进行预处理 .i c文件替换宏,头文件包含(头文件中内容放在源文件开头)等后的文件 .ii cpp 阅读全文
posted @ 2022-08-21 17:52 ThePhenomenal 阅读(39) 评论(0) 推荐(0)
摘要: 练习题2-10.指针与加法逆元实现的无需第三变量的两变量交换 整数运算中存在: a + (-a) = 0,a与-a互为加法逆元 利用该性质可实现如下代码: void inpace_swap_integer(int * x, int * y) { *y = (-*x) + *y; *x = *x + 阅读全文
posted @ 2022-06-09 20:13 ThePhenomenal 阅读(29) 评论(0) 推荐(0)