![](https://img-blog.csdnimg.cn/20201014180756738.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
驱动
文章平均质量分 76
温暖SD
知而不行,是为不知。行而不知,可以致知
展开
-
platform 设备框架
平台上注册device struct 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 · 192 阅读 · 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 · 656 阅读 · 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 · 1771 阅读 · 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_LED static int PWM_DRV_Disable(unsigned char pwm_num) { if (...原创 2018-07-16 21:13:23 · 224 阅读 · 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 · 1957 阅读 · 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 · 164 阅读 · 0 评论