Template Method 模板方法模式代碼

#include <iostream>#include <string>#include <vector>using namespace std;class ChannelController{ public:void turnOnAllChannels(){ bool StateOn = true;setChannel1(StateOn);setChannel2(StateOn);}protected:virtual void

DM3730 Camera 介面調試筆記

作者:DriverMonkeyqq:196568501  歡迎交流平台:software    WinCE 6.0hardware  DM3730   應用方向:用Cmera 高速頻寬特性,作高速匯流排用連線描述:VS                   HS                  DATA[0:12]                 WEN寄存器配置:ISP_SYSCONFIG =0x1001ISP_CTRL =0x9c110TCTRL_CTRL

Using the I2C Bus

 Using the I2C Bus Judging from my emails, it is quite clear that the I2C bus can be very confusing for the newcomer. I have lots of examples on using the I2C bus on the website, but many of these are using high level controllers and do not show the

Kconfig 修改執行個體

1.修改上一級目錄 Kconfig 加入如下代碼:   source "drivers/char/fake_driver/Kconfig"   如果你的上一級目錄跟我不一樣需要修改Kconfig 路徑2.修改該你原始碼所在檔案 Kconfig (如果沒有建立一個Kconfig檔案)   例子如下: # fake driver for linux test menu "Fake driver" comment "I am a fake driver list, do noting!"

sysfs介面函數到建立_DEVICE_ATTR

最近在弄Sensor驅動,看過一個某廠家的成品驅動,裡面實現的全都是sysfs介面,hal層利用sysfs產生的介面,對Sensor進行操作。說道sysfs介面,就不得不提到函數宏 DEVICE_ATTR原型是#define DEVICE_ATTR(_name, _mode, _show, _store)\struct device_attribute dev_attr_##_name = __ATTR(_name, _mode, _show,

字元裝置非同步通知

driver:#include <linux/kernel.h> #include <linux/module.h> #include <linux/cdev.h> #include <linux/fs.h> #include <linux/device.h> #include <linux/syscalls.h> #include <linux/uaccess.h> #include

彙編之中斷申請(例子)

;*****************************************************************************; This file is a base code template for assembley code generation on the 8PE53.;*****************************************************************************;* TITLE

++ 前置自加 1 運算子多載樣本

/******************************************************* *author:彭曉林 *copyright: 著作權,翻版不究 *function: ++運算子前置重載 ******************************************************/#include <iostream>#include <string>using namespace std;class

修改核心編譯配置菜單(make menuconfig)

  ----- 彭曉林以下操作均在 linux Ubuntu 10.10 案頭環境下進行。以下我的操作步驟以做記錄:1.在目錄下 ../linux-2.6.32.2/drivers/char/  建立檔案夾 testdriver2.在testdriver 目錄下建立 Kconfig檔案   在Kconfig 檔案中錄入##TEST driver configuration#menu "TEST driver"comment "TEST driverhaha"config CONFIG_TEST 

I2C 調試記錄之——無應答 (ACK) 訊號

Author:DriverMonkey歡迎交流:196568501(QQ)               bookworepeng@Hotmail.com 以下是我的調試日誌,目前無應答訊號的原因未明 I have tried to use MCU to control the active Probes(ZS1000) by writing Regsiter(0x46).When write the I2C register(0x46) , there is no ACK signal

Nand flash 和 Nor flash 的區別

這是我在網上下的文檔.NAND flash和NOR flash的區別NOR和NAND是現在市場上兩種主要的非易失快閃記憶體技術。Intel於1988年首先開發出NOR flash技術,徹底改變了原先由EPROM和EEPROM一統天下的局面。緊接著,1989年,東芝公司發表了NAND flash結構,強調降低每位元的成本,更高的效能,並且象磁碟一樣可以通過介面輕鬆升級。但是經過了十多年之後,仍然有相當多的硬體工程師分不清NOR和NAND快閃記憶體。  相“flash儲存空間”經常可以與相“NOR儲

AM335X BeagleBone 之格式化SD卡

Author:DriverMonkeyMail:booworepeng@Hotmail.comQQ:196568501Phone:13410905075歡迎交流(承接各類嵌入式外包項目,linux,wince,單片機,上位機開發)1. 插上 SD 到電腦2. 找到 BeagleBone SDK 安裝目錄3. 進入此路徑 /ti-sdk-am335x-evm/bin 找到 create-sdcard.sh 指令碼4. 運行指令碼create-sdcard.sh 5.

製作 UBIFS 記錄

mail:bookworepeng@Hotmail.comqq:196568501author:Driver Monkeyphone:134109050751. 修改 U-BOOT 預設啟動參數    "mmc_root=ubi0:rootfs rw ubi.mtd=8,2048\0" \    "nand_root=ubi0:rootfs rw ubi.mtd=8,2048\0" \    "mmc_root_fs_type=ubifs rootwait=1t\0" \2. 製作 UBI

system.map 詳解

有時system.map檔案可以協助我們理解核心編譯,它記錄了所有代碼的運行地址。下面一起看看如何讀懂它system.map內容格式為:線性地址 類型 符號具體內容如下: 00100000 A phys_startup_32c0100000 T startup_32c0100000 A _text                             注:表示核心代碼第一個位元組的地址c01000c6 t checkCPUtypec0100147 t is486c010014e t is386

ubuntu 12.04系統黑屏

ubuntu 12.04系統黑屏,登入介面黑屏   1.硬體環境    Intel Core i5-2400 CPU @ 3.10GHz × 4   2.顯卡     Intel 整合顯卡   3.系統版本   ubuntu12.04.2   4.現象    開機後,可以看到grub 菜單,通過grub 菜單進入 ubuntu 12.04,螢幕變黑,小游標一直在左上方閃動。   5.原因    圖形介面程式損壞,可能是在更新核心或者安裝軟體的時候,把與xorg相關的檔案給清除了。  

Example – void atexit(void)

//author:DriverMonkey//date:1/24/2013//copyright: no copyright//mail:bookworepeng@hotmail.com//enviromen:Ubuntu#include <iostream>#include <stdlib.h>using namespace std;static void first_atexit(void);static void

待用資料成員賦值應該注意的

#include <iostream>#include <string>using namespace std;class Box{public:Box(int h,int w,int l):height(h),width(w),length(l){}int volume( ){return height*width*length;};private:static int height; //靜態資料成員int width;int length;};int main(){

晒晒我的第一個彙編項目(原始碼)

承接:嵌入式外包項目(13410905075);*****************************************************************************; This file is a base code template for assembley code generation on the 8PE53.;********************************************************************

Reading Notes for English Learning

1. The software must be conformed to its new vehicles of opportunity.2. Inference engine technology is developed in an application-independant way, and  then applied to many uses. One can justify much     more effort on the inference engines.Indeed,

QT4 提示錯誤:No rule to make target 解決

——彭曉林    問題出現環境:當你刪除工程裡面的xxx.cpp檔案時候,重新編譯就會出現 “No rule to make targets  xxx”   出現原因:由於檔案刪除了,但是工程檔案認為xxx.cpp檔案還存在,在編譯的時候繼續尋找xxx.cpp檔案,結果可想而知,當然是找不到xxx.cpp檔案,結果就是報告上面的錯誤。    解決方案:找出工程相關記錄xxx.cpp地方刪除。(我找了好一會才找到,起初刪除debug檔案,怎麼都不管用,後來

總頁數: 61357 1 .... 13772 13773 13774 13775 13776 .... 61357 Go to: 前往

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.