自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(1)
  • 资源 (4)
  • 问答 (1)
  • 收藏
  • 关注

原创 嵌入式Linux开发第一弹 之 网络配置

博客上有好多人问我,为什么我的电脑、虚拟机以及目标板之间总有那么两个是ping不通的,这给我们的开发带来了很多不必要的麻烦,总体原因还是网络没有配置好……那么今天,我们就来讲讲这个问题的解决方案,作为我公众平台的第一弹;          在我们装好虚拟机、Windows下的开发工具以及目标板系统后,要做的第一件事就是让三者之间可以随时随地的进行通信: 1、  我们要把目标板跟电脑之间的网线连

2016-03-29 11:33:21 1278

SD卡读写代码

/*----------------------------------------------------------------------- / Low level disk interface modlue include file R0.05 (C)ChaN, 2007 /-----------------------------------------------------------------------*/ #ifndef _DISKIO #define _READONLY 0 /* 1: Read-only mode */ #define _USE_IOCTL 1 #include "integer.h" /* Status of Disk Functions */ typedef BYTE DSTATUS; /* Results of Disk Functions */ typedef enum { RES_OK = 0, /* 0: Successful */ RES_ERROR, /* 1: R/W Error */ RES_WRPRT, /* 2: Write Protected */ RES_NOTRDY, /* 3: Not Ready */ RES_PARERR /* 4: Invalid Parameter */ } DRESULT; /*---------------------------------------*/ /* Prototypes for disk control functions */ DSTATUS disk_initialize (BYTE); DSTATUS disk_status (BYTE); DRESULT disk_read (BYTE, BYTE*, DWORD, BYTE); #if _READONLY == 0 DRESULT disk_write (BYTE, const BYTE*, DWORD, BYTE); #endif DRESULT disk_ioctl (BYTE, BYTE, void*); void disk_timerproc (void); /* Disk Status Bits (DSTATUS) */ #define STA_NOINIT 0x01 /* Drive not initialized */ #define STA_NODISK 0x02 /* No medium in the drive */ #define STA_PROTECT 0x04 /* Write protected */ /* Command code for disk_ioctrl() */ /* Generic command */ #define CTRL_SYNC 0 /* Mandatory for write functions */ #define GET_SECTOR_COUNT 1 /* Mandatory for only f_mkfs() */ #define GET_SECTOR_SIZE 2 #define GET_BLOCK_SIZE 3 /* Mandatory for only f_mkfs() */ #define CTRL_POWER 4 #define CTRL_LOCK 5 #define CTRL_EJECT 6 /* MMC/SDC command */ #define MMC_GET_TYPE 10 #define MMC_GET_CSD 11 #define MMC_GET_CID 12 #define MMC_GET_OCR 13 #define MMC_GET_SDSTAT 14 /* ATA/CF command */ #define ATA_GET_REV 20 #define ATA_GET_MODEL 21 #define ATA_GET_SN 22 #define _DISKIO #endif

2013-04-08

两条黑线提取核心算法

for(i=start_lie; i>=10; i--) { ////////////////////////////////////////找左邊界點 for(j=pre_left_point-3;j<=pre_left_point+10;j++) { if((image_data[i][j]|image_data[i][j+1]|image_data[i][j+2]|image_data[i][j+3]==1)&&(image_data[i][j-1]&image_data[i][j-2]&image_data[i][j-3]&image_data[i][j-4]==0)) { Left_point=j; pre_left_point=j; border_line[i][left_border]=j; } }

2013-04-08

ucGUI汉字取模小工具

可直接生成ucGUI识别的字模c文件,很好用,生成后只需在GUI.H中申明外部字体即可使用!

2012-10-20

STC12C5410AD系列单片机中文数据资料手册

STC12C5412, STC12C5412AD STC12C5410, STC12C5410AD STC12C5408, STC12C5408AD STC12C5406, STC12C5406AD STC12C5404, STC12C5404AD STC12C5402, STC12C5402AD STC12C5410AD 系列单片机器件手册 技术支援: 宏晶科技( 深圳) www.MCU-Memory.com [email protected] Update date: 2006-4-15 (请随时注意更新) --- 高速,高可靠 --- 低功耗,超低价 --- 无法解密 --- 强抗静电,强抗干扰 STC12LE5412, STC12LE5412AD STC12LE5410, STC12LE5410AD

2012-10-13

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

TA关注的人

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