
嵌入式实战笔记
快速解决问题 早点下班 早日升职加薪
弱鸡在进步
弱鸡在进步
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
第一回软硬环境可操作之stm8s软硬件环境准备(上)
硬件:(1) stm8s使用烧录器(2) stm8s使用开发板原创 2022-03-14 16:04:22 · 6567 阅读 · 0 评论 -
ddr系统检验
内存子系统原创 2022-08-05 19:23:05 · 548 阅读 · 0 评论 -
uboot中board_init bi_arch_number在哪
uboot原创 2022-08-04 11:19:35 · 201 阅读 · 0 评论 -
uboot command line interface
information commands: bdinfo: //打印board Info structure coninfo: //打印console devices和informations flinfo: //打印 flash memory information iminfo: // 打印 app image的header information memory commands: base: 打印or设置address offset crc32: cmp原创 2022-05-09 14:41:13 · 260 阅读 · 0 评论 -
kzalloc和kfree函数api使用
// kzalloc函数,基于slab分配的物理上所连续的实际的内存,kzalloc函数分配,内存中//内容都初始化为0 #define MEM_KZALLOC_SIZE (200*1024)static char* mem_spvm;int kzalloc_init(void){ mem_spvm = (char*)kzalloc(MEM_KZALLOC_SIZE,GFP_KERNEL); if( mem_spvm == NULL) printk("kzalloc failed\n")原创 2022-03-02 17:52:50 · 2664 阅读 · 0 评论 -
spin_lock_irqsave使用
(1)现在基本都是多核 cpu,很容易出现竞争问题,使用很常见(2)共享资源软硬件里面不要使用休眠函数,直线执行,越快越好. 里面使用错误的函数,会出现coredump问题原创 2022-02-08 17:45:38 · 1025 阅读 · 0 评论 -
/sys/kernel/hdmi实现与调试
// SPDX-License-Identifier: GPL-2.0/* * Sample kobject implementation * * Copyright (C) 2004-2007 Greg Kroah-Hartman <[email protected]> * Copyright (C) 2007 Novell Inc. */#include <linux/kobject.h>#include <linux/string.h>#include原创 2022-01-17 10:49:43 · 697 阅读 · 0 评论 -
壳_cdev_add向内核注册字符对象设备驱动
#include <linux/module.h>#include <linux/gpio.h>#include <asm/uaccess.h>#include <linux/errno.h>#include <linux/fcntl.h>#include <linux/miscdevice.h>#include <linux/init.h>#include <asm/uaccess.h>#inc原创 2022-01-14 20:56:08 · 144 阅读 · 0 评论 -
c语言打印输出宏
#define CMD_xx_SETUP 0x1#define put_cmd(cmd) printf(“xx_cmd: “#cmd” (0x%x)\n”, cmd)put_cmd(CMD_xx_SETUP);原创 2022-01-04 15:29:43 · 1120 阅读 · 0 评论 -
git实用操作
// git clone xxx.git // git push origin xxx 显示没有权限git config --global user.name “xxx”git config --global user.email “[email protected]”ssh-keygen -t rsa -C “[email protected]” // 回车 回车// 将id_rsa.pub 发给git 管理者查看本地分支:git branch查看远程仓库分支git branch原创 2021-12-29 15:33:34 · 292 阅读 · 0 评论 -
c语言fopen fread fwrite文件读写
#include <stdio.h>#define xxxx_NUM_FILE “/xxxx/xxx.txt”FILE* fp = fopen(xxxx_xxx_FILE,“w+”);if(!fp){printf(“the file not exit is %s\n”,xxxx_NUM_FILE);return 0;}sprintf(szCmd,“xxxx_xxx_FILE = %d”,ret);fwrite(szCmd,1,strlen(“xxxx_N原创 2021-12-01 13:53:00 · 289 阅读 · 0 评论 -
控制线程运转之信号灯
#include <unistd.h>#include <stdio.h>#include <stdlib.h>#include <string.h>#include <ctype.h>#include <fcntl.h>#include <errno.h>#include <getopt.h>#include <sched.h>#include <basetypes.h>原创 2021-09-23 11:09:40 · 145 阅读 · 0 评论