![](https://img-blog.csdnimg.cn/20201014180756918.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
c语言
buildroot
我跑得不够快,所以只能不停的跑了。
展开
-
STM32MP157学习--通过stm32idecube用按键点亮灯和蜂鸣器
1、新建工程,和之前一样2、选择芯片的型号,这是选择的是STM32mp157daax,点击next3、给工程定一个名称,不要用中文4、选择NO5、按如图所示的方式配置引脚,前面的文章有配置的过程6、在工程管理处勾选生成.c/.h文件7、在M4内核的文件夹下新建文件夹BSP(其他名称也可以,不要用中文)8、在BSP文件夹下新建名为Include和src的文件夹,做好文件分层,并在这两个文件夹下新建3个.c的文件以及它们的头文件9、右键...原创 2021-12-17 14:20:32 · 1152 阅读 · 0 评论 -
简单的代码分析,C++中的引用和指针交换子函数中的值
这里只做备份,后续有时间再完整分析//引用和取地址的区别#include<iostream>using namespace std;void swap_1(int &a,int &b);void swap_2(int *kk,int *dd);void swap_3(int ds,int dds);enum tt{ x0=11, x1, x2, x3, x4, x5};int main(){ int原创 2021-09-28 11:35:55 · 131 阅读 · 0 评论 -
c primer plus链表例子films2.c段错误 (核心已转储)
贴上原版代码/* films2.c -- 使用结构链表 */#include <stdio.h>#include <stdlib.h> /* 提供malloc()原型 */#include <string.h> /* 提供strcpy()原型 */#define TSIZE 45 /* 储存片名的数组大小 */struct film { char title[TSIZE]; int rating; struct原创 2021-09-24 17:09:29 · 465 阅读 · 0 评论