自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(41)
  • 收藏
  • 关注

原创 (三)I2C驱动

前言I2C总线驱动compatible = "ti,omap4-i2c";对应i2c-omap.c,针对TI该OMAP系列的I2C总线i2c-omap.c/* * TI OMAP I2C master mode driver * * Copyright (C) 2003 MontaVista Software, Inc. * Copyright (C) 2005 Nokia Corporation * Copyright (C) 2004 - 2007 Texas Instrument

2022-04-11 15:09:30 1459

原创 OpenCL模型

前言以下图源来自广州创龙电子科技公司OpenCL视频教程。平台模型执行模型内存模型编程模型

2022-03-16 11:09:05 162

原创 (二)GPIO驱动

前言设备树文件的gpio分支compatible = "ti,omap4-gpio"对应gpio-omap.c文件个人感觉每个驱动都有对应的platform驱动去进行初始化,代码有很多应该是直接采用platform驱动的默认值。尚未验证,仅推测。gpio-omap.c/* * Support functions for OMAP GPIO * * Copyright (C) 2003-2005 Nokia Corporation * Written by Juha Yrjölä &lt

2022-01-25 10:26:32 1930

原创 (一)LED驱动

前言设备树LED部分中显示compatible = "gpio-leds";与/drivers/leds/leds-gpio.c的compatible字样一致,且SDK也指出采用该驱动文件。leds-gpio.c/* * LEDs driver for GPIOs * * Copyright (C) 2007 8D Technologies inc. * Raphael Assenat <raph@8d.com> * Copyright (C) 2008 Freescale

2021-12-14 12:33:36 1360

原创 TMDSEVM572X的设备树文件

板子DTB转化成DTS/dts-v1/;/ { #address-cells = <0x2>; #size-cells = <0x2>; compatible = "ti,am5728-evm", "ti,am572x-beagle-x15", "ti,am5728", "ti,dra742", "ti,dra74", "ti,dra7"; interrupt-parent = <0x1>; model = "TI AM5728 EVM"; fixed

2021-12-14 11:04:45 1168

原创 《Linux Device Drivers Development》——Chap 22 Network Interface Card Drivers

Driver data structuresThe socket buffer structureSocket buffer allocationNetwork interface structureThe device methodsOpening and closingPacket handlingPacket receptionPacket transmissionDriver exampleStatus

2021-12-11 14:19:10 758

原创 《Linux Device Drivers Development》——Chap 21 Framebuffer Drivers

Driver data structuresDevice methodsDriver methodsDetailed fb_opsChecking informationSet controller’s parametersScreen blankingAccelerated methodsPutting it all togetherFramebuffer from user space

2021-12-10 11:11:08 726

原创 《Linux Device Drivers Development》——Chap 20 Regulator Framework

PMIC/producer driver interfaceDriver data structuresDescription structureConstraints structureinit data structureFeeding init data into the DTConfiguration structureDevice operation structureDriver methodsProbe functionRemove.

2021-12-10 10:09:16 876

原创 《Linux Device Drivers Development》——Chap 19 PWM Drivers

PWM controller driverDriver examplePWM controller bindingPWM consumer interfacePWM clients bindingUsing PWMs with the sysfs interface

2021-12-08 11:13:19 583

原创 《Linux Device Drivers Development》——Chap 18 RTC Drivers

2021-12-06 11:45:08 611

原创 《Linux Device Drivers Development》——Chap 17 Input Devices Drivers

Allocating and registering an input devicePolled input device sub-classGenerating and reporting an input event

2021-12-05 14:29:35 942

原创 《Linux Device Drivers Development》——Chap 16 Advanced IRQ Management

2021-12-04 11:28:35 683

原创 《Linux Device Drivers Development》——Chap 15 GPIO Controller Drivers – gpio_chip

2021-12-02 09:53:49 659

原创 《Linux Device Drivers Development》——Chap 14 Pin Control and GPIO Subsystem

Pin control subsystemPinctrl and the device treeThe GPIO subsystemThe descriptor-based GPIO interfaceGPIO descriptor mapping - the device treeAllocating and using GPIOPutting it all togetherThe GPIO interface and the de

2021-11-30 11:01:43 154

原创 《Linux Device Drivers Development》——Chap 13 Linux Device Model

LDM data structuresThe busBus registrationDevice driverDevice driver registrationDeviceDevice registrationDeep inside LDMkobject structurekobj_typeksetsAttributeAttributes groupDevice model and sysfsSys

2021-11-27 11:55:50 521

原创 《Linux Device Drivers Development》——Chap 12 DMA – Direct Memory Access

DMA mappingsCoherent mappingStreaming DMA mappingSingle buffer mappingScatter/gather mapping

2021-11-26 23:02:56 671

原创 《Linux Device Drivers Development》——Chap 11 Kernel Memory Management

System memory layout - kernel space and user spaceKernel addresses – concept of low and high memoryLow memoryHigh memoryUser space addressesVirtual Memory Area (VMA)Address translation and MMUPage look up and TLBHow do

2021-11-24 22:13:54 146

原创 《Linux Device Drivers Development》——Chap 10 IIO Framework

IIO data structuresiio_dev structureiio_info structureIIO channelsChannel attribute naming conventionsDistinguishing channelsPutting it all together

2021-11-22 21:02:34 607

原创 《Linux Device Drivers Development》——Chap 9 Regmap API – A Register Map Abstraction

regmap_config structure一红线处应为"cacheable_table"regmap initializationSPI initializationI2C initializationDevice access functionsregmap_update_bits function要对哪一位修改,“mask"中对应位要设为"1”,"val"中对应位修改值。...

2021-11-17 21:20:54 96

原创 《Linux Device Drivers Development》——Chap 8 SPI Device Driver

The driver architectureThe device structureSPI driver structureThe probe function

2021-11-15 21:37:59 523

原创 《Linux Device Drivers Development》——Chap 7 I2C Client Driver

The driver architectureThe i2c_driver structureThe probe() functionThe remove() functionDriver initialization and registrationDriver and device provisioningAccessing the clientPlain I2C communication

2021-11-09 20:00:38 543

原创 《Linux Device Drivers Development》——Chap 6 The Concept of Device Tree

目录Device tree mechanismNaming conventionAliases, labels, and phandleRepresenting and addressing devicesDevice tree mechanismNaming conventionAliases, labels, and phandleRepresenting and addressing devices

2021-11-02 15:08:51 92

原创 《Linux Device Drivers Development》——Chap 5 Platform Device Drivers

目录Platform Driver二级目录三级目录Platform Driver二级目录三级目录

2021-10-19 12:26:30 153

原创 《Linux Device Drivers Development》——Chap 4 Character Device Drivers

hhjhj

2021-10-14 21:47:22 148

原创 《Linux Device Drivers Development》——Chap 3 Kernel Facilities and Helper Functions

目录container_of()Linked Lists创建和初始化Linked List创建一个list节点添加删除一个list节点遍历Linked Listcontainer_of()用于获取某指针所属的结构体。Linked ListsLinked List是基于双向链表的。后续内容基于下列数据结构。创建和初始化Linked List仅介绍动态方法。创建一个list节点添加stack式Linked ListQueue式Linked List删除一个list节点

2021-10-12 22:21:45 275

原创 《Linux Device Drivers Development》——Chap 2 Device Driver Basis

目录module_init()和module_exit()EXPORT_SYMBOL()module_param()和MODULE_PARM_DESC()module_init()和module_exit()static ini __init function_init(void) //__init 必须要有{ //初始化代码}module_init(function_init); //注册函数static __exit function_exit(void) //__exit 必须要有{

2021-09-27 13:40:36 204

原创 OpenCL(dspheap)

目录例程介绍例程源码Host端源码OpenCL设备源码例程介绍介绍如何在OpenCL设备端进行heap相关操作。例程源码Host端源码#define __CL_ENABLE_EXCEPTIONS#include <CL/cl.hpp>#include <iostream>#include <cstdlib>#include "ocl_util.h"#include "kernels.dsp_h"using namespace cl;using n

2021-09-15 15:33:38 237

原创 OpenCL(edmamgr)

目录例程介绍例程源码Host端源码OpenCL设备源码例程介绍介绍如何利用edmamgr的api在OpenCL kernel上实现数据在DSP内存中的转移。例程源码Host端源码#define __CL_ENABLE_EXCEPTIONS#include <CL/cl.hpp>#include <iostream>#include <cstdio>#include <cstdlib>#include "ocl_util.h"#includ

2021-09-14 22:34:01 130

原创 OpenCL(sgemm)

目录例程介绍例程源码Host端源码OpenCL设备端源码头文件其他源文件例程介绍在OpenCL设备端进行单精度矩阵乘法运算,并与利用CBLAS库的运算结果进行比较。例程源码Host端源码//main.cpp#include <iostream>#include <cstdlib>#include <iomanip>#include <stdio.h>#include <stdlib.h>#include <unistd.

2021-09-14 13:42:48 264

原创 OpenCL(dsplib_fft)

目录例程介绍例程源码Host端源码OpenCL设备源码例程介绍利用OpenCL调用dsplib进行FFT运算,同时也展示如何通过EDMA把数据从DDR转移到L2缓存等措施提高计算性能。例程源码Host端源码/* Example: FFT batch processing multiple channels of samples * - Number of channels: FFTCHS * - Size of each channel: FFTSZ samples * - Data typ

2021-09-11 13:35:05 702

原创 OpenCL(vecadd_subdevice)

目录例程介绍例程源码Host端源码OpenCL设备源码例程介绍使用OpenCL的subdevice进行向量加法运算。一个DSP为Compute Device,一个DSP内包含1个以上的Compute Unit,subdevice就是Compute Units。例程源码Host端源码#include <CL/cl.hpp>#include <iostream>#include <cstdlib>#include <cassert>#includ

2021-09-08 15:19:24 366

原创 OpenCL(matmpy)

目录例程介绍例程源码Host端源码OpenCL设备端源码例程介绍分别用OpenCL设备和ARM的OpenMP计算1K x 1K的矩阵乘法运算。例程源码Host端源码//main.cpp#define __CL_ENABLE_EXCEPTIONS#include <CL/cl.hpp>#include <iostream>#include <cstdio>#include <fstream>#include <cstdlib>

2021-09-07 17:58:51 182

原创 OpenCL(ccode)

目录例程介绍例程源码Host端代码OpenCL设备端代码例程介绍C代码方式调用OpenCL。例程源码Host端代码//main.cpp#define __CL_ENABLE_EXCEPTIONS#include <CL/cl.hpp>#include <iostream>#include <fstream>#include <signal.h>#include <cassert>#include <cstdlib&gt

2021-09-05 16:20:58 337

原创 OpenCL(Hello World)

目录例程介绍例程源码Host端OpenCL设备端例程介绍OpenCL的Hello Wolrd,简单演示如何dispatch一个kelnel到DSP,并读回数据。例程源码Host端#define __CL_ENABLE_EXCEPTIONS#include <CL/cl.hpp>#include <iostream>#include <fstream>#include <cstdlib>#include <cassert>#in

2021-09-05 10:54:31 394

原创 OpenCL(platforms)

目录例程介绍例程源码例程介绍介绍获取支持OpenCL的platform和device的API。例程源码#define __CL_ENABLE_EXCEPTIONS#include <CL/cl.hpp>#include <iostream>#include <iomanip>#include <signal.h>#include <cstdlib>#include "ocl_util.h"#ifdef _TI_RTOS#i

2021-09-03 21:30:36 253

原创 OpenVX官方学习资源

以下为OpenVX官方学习资源github:tutorial_sample_codewiki:embedded_vision_2016

2021-06-27 18:03:50 520

原创 基于ubuntu 18无root权限的caffe-jacinto环境搭建(附ubuntu16用户参考内容)

目录引言参考链接(一定先看看)准备工作安装依赖包protobuf和libprotobuf问题OpenCV 3.1.0OpenBLASlibturbojpeg配置文件修改和补充编译引言针对无法通过sudo apt-get install安装依赖包的搭建caffe-jacinto方法参考链接(一定先看看)#注意页面下的Useful Note,对ubuntu 16用户有帮助https://git.ti.com/cgit/jacinto-ai/caffe-jacinto/about/#官方安装指引 先

2021-06-17 16:28:55 245

原创 《OpenCL异构计算》学习笔记

目录并行编程入门二级目录三级目录并行编程入门二级目录三级目录

2021-06-10 16:42:14 670

原创 基于OMAPL138LCDK的IPC应用

目录前言二级目录三级目录前言官方Linux_SDK的Developer Guide中介绍的运行方法需要有调试器的情况下才能运行DSP端的程序,这里介绍如何不用调试器进行OMAPL138中ARM二级目录三级目录

2021-03-15 22:32:16 264

原创 移植OpenCV 3.1.0+FFMPEG到OMAPL138LCDK(交叉编译)

目录前言环境与相关准备工作编译FFMPEG编译OpenCV准备工作cmake-gui配置cmake-gui配置项编译测试CMakeLists.txt图片处理读取视频前言这是我第一篇公开的文章,也是我第一次尝试交叉编译的成果,可能过程有不足,文章也可能写得不全面,请多见谅。不足请指出,我每天都会看的。希望大家多多交流学习。环境与相关准备工作主机平台:Ubuntu 16.04(64 bit)硬件平台:TI公司的OMAPL138LCDK交叉编译工具链:arm-linux-gnueabi-gcc-5(及

2021-03-10 10:57:38 336

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除