摘要: 1 #include "i2s.h" 2 #include "usart.h" 3 ////////////////////////////////////////////////////////////////////////////////// 4 //本程序只供学习使用,未经作者许可,不得用于 阅读全文
posted @ 2021-05-05 19:27 昆山皮皮虾 阅读(823) 评论(0) 推荐(0)
摘要: 运行结果如下: 可以得出,强制转换表现为数据的“截断”。 阅读全文
posted @ 2021-04-25 14:27 昆山皮皮虾 阅读(47) 评论(0) 推荐(0)
摘要: 1 #include "stdio.h" 2 struct China_city 3 { 4 char city1[100]; 5 char city2[100]; 6 struct Suzhou_town 7 { 8 char town1[100]; 9 char town2[100]; 10 } 阅读全文
posted @ 2021-04-25 10:48 昆山皮皮虾 阅读(345) 评论(0) 推荐(0)
摘要: 若在读时钟周期内,每x周期内可以有y个数据读出FIFO,则FIFO深度计算公式如下: 阅读全文
posted @ 2021-04-24 23:08 昆山皮皮虾 阅读(248) 评论(0) 推荐(0)
摘要: 1 /* Copyright (c) Microsoft Corporation. All rights reserved. 2 * The C Standard Library <stdbool.h> header.*/ 3 #ifndef _STDBOOL 4 #define _STDBOOL 阅读全文
posted @ 2021-04-14 14:02 昆山皮皮虾 阅读(267) 评论(0) 推荐(0)
摘要: 1.插件 目前我用的插件如下: 2.launch.json { "version": "0.2.0", "configurations": [ { "name": "gcc.exe - launch", "type": "cppdbg", "request": "launch", "program" 阅读全文
posted @ 2021-04-02 17:36 昆山皮皮虾 阅读(337) 评论(0) 推荐(0)
摘要: code #include <stdio.h> int main(void) { int a[2][3][4]={ 5, 10, 15, 20, 25, 30, 35, 40, 45, 50, 55, 60, 65, 70, 75, 80, 85, 90, 95,105, 110,115,120,1 阅读全文
posted @ 2021-04-02 03:00 昆山皮皮虾 阅读(199) 评论(0) 推荐(0)
摘要: code 1 #include <stdio.h> 2 int main(void) 3 { 4 int a[3][4]={ 5, 10, 15, 20, 5 25, 30, 35, 40, 6 45, 50, 55, 60}; 7 8 printf(" a=%08x\n", a); 9 print 阅读全文
posted @ 2021-04-02 02:15 昆山皮皮虾 阅读(272) 评论(0) 推荐(0)
摘要: 1.code 2.运行结果 证明可以进行这些数组操作:&a+1 *a+1 *(a+1),但是这种操作却提示错误:&(a+1),错误提示信息如下: 另外一点需要注意的是: *a+1 实质为 a[0]+1 *(a+1) 实质为 a[1] 这种区别在《C和指针》的143页也有提到。 阅读全文
posted @ 2021-04-01 21:57 昆山皮皮虾 阅读(128) 评论(0) 推荐(0)
摘要: 网址:http://www.ibiblio.org/gferg/ldp/GCC-Inline-Assembly-HOWTO.html#ss1.1 阅读全文
posted @ 2021-03-28 18:39 昆山皮皮虾 阅读(32) 评论(0) 推荐(0)