上一页 1 2 3 4 5 6 7 8 9 ··· 16 下一页
摘要: 0 linux常用命令 du -h u-boot.bin 查看文件大小 1 解析命令行输入指令 /* parse command line arguments */ argv += 2; while (*argv) { if (strcmp(*argv, "-d") == 0) { argv++; 阅读全文
posted @ 2022-09-19 10:11 小城熊儿 阅读(175) 评论(0) 推荐(0) 编辑
摘要: linux音频控制在驱动中一般是一个主设备号,一堆次设备号,我的开发板上对应的音频接口如下 查看声卡驱动 ls -l /dev/snd/* /dev/snd/controlC0 /dev/snd/pcmC1D0c /dev/snd/pcmC2D0p/dev/snd/controlC1 /dev/sn 阅读全文
posted @ 2022-09-13 09:51 小城熊儿 阅读(376) 评论(0) 推荐(0) 编辑
摘要: // 阅读全文
posted @ 2022-08-26 19:12 小城熊儿 阅读(4) 评论(0) 推荐(0) 编辑
摘要: 从网上找到hashmap截取大部分代码后运行发现一堆小问题,自己整理相关内容,进行测试显示,具体如下 此处根据实际情况会自行扩展内存,原理和java的hashmap很相似 #ifndef __PRIVATE_HASH_MAP_H__ #define __PRIVATE_HASH_MAP_H__ #i 阅读全文
posted @ 2022-08-18 15:04 小城熊儿 阅读(43) 评论(0) 推荐(0) 编辑
摘要: 查看ip ip address 设置apt 源 (129条消息) linux下 apt的添加下载源_爱吃曲奇的曲奇的博客-CSDN博客_linux添加apt源 gedit /etc/apt/sources.list 中科大源deb https://mirrors.ustc.edu.cn/ubuntu 阅读全文
posted @ 2022-08-18 13:56 小城熊儿 阅读(109) 评论(0) 推荐(0) 编辑
摘要: linux 多进程通讯 clpsz/linux-ipcs: Linux进程间通信(Inter-Process Communication)方式汇总 (github.com) 无名管道 pipe #include <stdio.h> #include <stdlib.h> #include <unis 阅读全文
posted @ 2022-08-12 15:54 小城熊儿 阅读(886) 评论(0) 推荐(0) 编辑
摘要: 参考 (128条消息) linux下串口的阻塞和非阻塞操作_wuhengwudi的博客-CSDN博客_linux 阻塞 非阻塞 稍作修改 阻塞 非阻塞 #include <stdlib.h> #include <stdio.h> #include <errno.h> #include <string 阅读全文
posted @ 2022-08-09 16:55 小城熊儿 阅读(570) 评论(0) 推荐(0) 编辑
摘要: T507 UBOOT 打印 tick_printf("func:%s \t line:%d\n", __func__,__LINE__); tick_printf("func:%s \t line:%d \tval:%d\n", __func__,__LINE__,val); #include <s 阅读全文
posted @ 2022-08-09 09:21 小城熊儿 阅读(84) 评论(0) 推荐(0) 编辑
摘要: /*t01_testthread.cpp*/ #include<stdlib.h> #include<stdio.h> #include<unistd.h> #include<pthread.h> /* 看到这里可能会有点疑问,为何除了条件变量还需要一个互斥对象呢?等待时为什么需要条件变量和互斥对象 阅读全文
posted @ 2022-08-08 13:37 小城熊儿 阅读(165) 评论(0) 推荐(0) 编辑
摘要: // 阅读全文
posted @ 2022-08-04 11:36 小城熊儿 阅读(236) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 9 ··· 16 下一页