摘要: 驱动代码 1 #include <linux/module.h> 2 #include <linux/kernel.h> 3 #include <linux/fs.h> 4 #include <linux/init.h> 5 #include <linux/delay.h> 6 #include < 阅读全文
posted @ 2020-08-08 15:48 季风的杜萨 阅读(113) 评论(0) 推荐(0) 编辑
摘要: 驱动程序 1 #include <linux/module.h> 2 #include <linux/kernel.h> 3 #include <linux/fs.h> 4 #include <linux/init.h> 5 #include <linux/delay.h> 6 #include < 阅读全文
posted @ 2020-08-08 14:57 季风的杜萨 阅读(133) 评论(0) 推荐(0) 编辑
摘要: 1、把linux-2.6.22.6.tar.bz2 和 linux-2.6.22.6_jz2440_v2v3.patch 上传到 /work/system 目录下 2、解压 linux-2.6.22.6.tar.bz2 使用 tar xjf linux-2.6.22.6.tar.bz2 解压 3.、 阅读全文
posted @ 2020-08-08 14:45 季风的杜萨 阅读(297) 评论(0) 推荐(0) 编辑
摘要: 本文只是记录在视频中的操作步骤。 本文中使用的是linux环境是韦老师光盘中提供的Ubuntu16.04。 1、把u-boot-1.1.6.tar.bz2和 补丁u-boot-1.1.6_jz2440.patch上传到linux系统上的 /work/system 目录下 2、解压u-boot-1.1 阅读全文
posted @ 2020-08-08 12:50 季风的杜萨 阅读(297) 评论(0) 推荐(0) 编辑
摘要: 驱动代码 1 #include <linux/module.h> 2 #include <linux/kernel.h> 3 #include <linux/fs.h> 4 #include <linux/init.h> 5 #include <linux/delay.h> 6 #include < 阅读全文
posted @ 2020-08-03 22:14 季风的杜萨 阅读(155) 评论(0) 推荐(0) 编辑
摘要: 驱动代码 1 #include <linux/module.h> 2 #include <linux/kernel.h> 3 #include <linux/fs.h> 4 #include <linux/init.h> 5 #include <linux/delay.h> 6 #include < 阅读全文
posted @ 2020-08-01 16:47 季风的杜萨 阅读(104) 评论(0) 推荐(0) 编辑
摘要: 驱动代码 1 /* 2 led驱动 同时开关所有的LED 3 GPF4、5、6控制LED 4 5 寄存器 地址 R/W 描述 复位值 6 GPFCON 0x56000050 R/W 配置端口 F 的引脚 0x0 7 GPFDAT 0x56000054 R/W 端口 F 的数据寄存器 – 8 GPFU 阅读全文
posted @ 2020-08-01 16:31 季风的杜萨 阅读(110) 评论(0) 推荐(0) 编辑
摘要: 1 #include <stdio.h> 2 #include <stdlib.h> 3 #include "math.h" 4 5 typedef struct demo 6 { 7 int* base; 8 int* top; 9 int stacksize; 10 }sqstack; 11 1 阅读全文
posted @ 2020-05-23 21:42 季风的杜萨 阅读(141) 评论(0) 推荐(0) 编辑
摘要: 1 #include "stdio.h" 2 #include "stdlib.h" 3 4 #define MAXSIZE 100 5 typedef struct 6 { 7 int* sqelem; 8 int length; 9 int listsize; 10 }sqlist; 11 12 阅读全文
posted @ 2020-05-17 22:34 季风的杜萨 阅读(255) 评论(0) 推荐(0) 编辑
摘要: 1 #include <stdio.h> 2 #include <stdlib.h> 3 #include "string.h" 4 5 #define MAXSIZE 100 //定义顺序表最多存储多少元素 6 //定义一个静态顺序表结构体 7 typedef struct 8 { 9 int s 阅读全文
posted @ 2020-05-16 21:59 季风的杜萨 阅读(184) 评论(0) 推荐(0) 编辑