驱动
文章平均质量分 76
温暖SD
知而不行,是为不知。行而不知,可以致知
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
platform 设备框架
平台上注册devicestruct platform_device button_dev={.name ="mybutton",.resource=button_resource,.num_resources=ARRAY_SIZE(button_resource),.dev={.platform_data=gpio_button,.release=gpio_bu原创 2017-09-20 14:54:58 · 250 阅读 · 0 评论 -
自定义SPI的注册
这两天被spi搞得很混乱网上全是在说spi_board_info 的方式,很不喜欢这种方式。所以一直在搞动态注册struct spi_driver ds3231_driver={.driver ={.name=this_driver_name,.bus= &spi_bus_type,.owner=THIS_MODULE,},.probe =ds3231原创 2017-09-21 10:37:17 · 720 阅读 · 0 评论 -
ds3231
#include <linux/kernel.h>#include <linux/module.h>#include <linux/interrupt.h>#include <linux/i2c.h>#include <linux/rtc.h>#include <linux/bcd.h>#include <l...原创 2018-07-16 21:12:51 · 1884 阅读 · 0 评论 -
hiled
#include "hi_led.h"#include <common.h>static int led_init_flag = 0;static int led_contrl = LED_CONTROL_PWM;#ifdef CONFIG_HI_LEDstatic int PWM_DRV_Disable(unsigned char pwm_num){ if (...原创 2018-07-16 21:13:23 · 275 阅读 · 0 评论 -
led.h
#ifndef __HI_LED_H__#define __HI_LED_H__#define PWMI_ADRESS_BASE 0x12130000#define HI_IO_PWMI_ADDRESS(x) (x)#define PERI_CRG55 0x120100DC /* pwm clock && reset c...原创 2018-07-16 21:14:10 · 2033 阅读 · 0 评论 -
makefile
## (C) Copyright 2000-2006# Wolfgang Denk, DENX Software Engineering, wd@denx.de.## See file CREDITS for list of people who contributed to this# project.## This program is free software; you ca...原创 2018-07-16 21:16:08 · 221 阅读 · 0 评论
分享