-
比较倾向于后一种方案
-
COSMIC STM8的中文手册在哪?
答案:
没有
-
还是比较喜欢用ucos II
-
void Buffer_preview_info_update()
{
// U32 Y_size;
int temp;
unsigned int buffer_rgb;
temp = (s2440CAM->CIPRSTATUS>>26)&3;
temp = (temp + 2) % 4;
RETAILMSG(MSG_EN_2,(_T("preview index = %d, size %d\r\n"), temp, image_size));
switch (temp)
{
case 0:
buffer_rgb = s2440CAM->CIPRCLRSA1;
break;
case 1:
buffer_rgb = s2440CAM->CIPRCLRSA2;
break;
case 2:
buffer_rgb = s2440CAM->CIPRCLRSA3;
break;
case 3:
buffer_rgb = s2440CAM->CIPRCLRSA4;
break;
default :
buffer_rgb = s2440CAM->CIPRCLRSA1;
break;
}
RETAILMSG(MSG_EN_1,(_T("buffer_rgb[PHY] = 0x%x\r\n"), buffer_rgb));
buffer_rgb += VIRTUAL_ADDR_OFFSET;
#if 1
RETAILMSG(MSG_EN_1,(_T("buffer_rgb = 0x%x\r\n"), buffer_rgb));
#endif
if( rgb_flag ) RETAILMSG(MSG_EN_1,(_T("Prev Buffer is not read\r\n")));
rgb_flag = 1;
rgb_address = buffer_rgb;
}
buffer_rgb = s2440CAM->CIPRCLRSA1中的s2440CAM->CIPRCLRSA1和
void CamInit(U32 CoDstWidth, U32 CoDstHeight, U32 PrDstWidth, U32 PrDstHeight,
U32 WinHorOffset, U32 WinVerOffset, U32 CoFrameBuffer, U32 PrFrameBuffer)
{
U32 WinOfsEn;
U32 divisor, multiplier;
U32 MainBurstSizeY, RemainedBurstSizeY, MainBurstSizeC, RemainedBurstSizeC, MainBurstSizeRGB, RemainedBurstSizeRGB;
U32 H_Shift, V_Shift, PreHorRatio, PreVerRatio, MainHorRatio, MainVerRatio;
U32 SrcWidth, SrcHeight;
U32 ScaleUp_H_Co, ScaleUp_V_Co, ScaleUp_H_Pr, ScaleUp_V_Pr;
//constant for calculating codec dma address
if(CAM_CODEC_OUTPUT) //=0
divisor=2; //CCIR-422
else
divisor=4; //CCIR-420
//constant for calculating preview dma address
if(CAM_PVIEW_OUTPUT) //=1
multiplier=4;
else
multiplier=2;
if(WinHorOffset==0 && WinVerOffset==0)
WinOfsEn=0;
else
WinOfsEn=1;
SrcWidth=CAM_SRC_HSIZE-WinHorOffset*2;
SrcHeight=CAM_SRC_VSIZE-WinVerOffset*2;
if(SrcWidth>=CoDstWidth) ScaleUp_H_Co=0; //down
else ScaleUp_H_Co=1; //up
if(SrcHeight>=CoDstHeight) ScaleUp_V_Co=0;
else ScaleUp_V_Co=1;
if(SrcWidth>=PrDstWidth) ScaleUp_H_Pr=0; //down
else ScaleUp_H_Pr=1; //up
if(SrcHeight>=PrDstHeight) ScaleUp_V_Pr=0;
else ScaleUp_V_Pr=1;
////////////////// common control setting
s2440CAM->CIGCTRL |= (1CICOCBSA4+CoDstWidth*CoDstHeight/divisor;
s2440CAM->CICOTRGFMT=(CAM_CODEC_IN_422
-
以前还真遇到一次这样的问题
-
引用 4 楼 philip1106 的回复:
help...
首先,CS,CE这类线有效时会增加功耗,至于寿命。。我不知道,你可以找个FLASH的FAE问问。
其次,有些设计里,只有需要控制一片芯片,会有人直接把CE拉到GND上,但是如果多片,你就肯定需要去控制CE了。
-
周立功的书都是介绍上层应用程序的开发的,开发底层的东西很少,建议看一下何宗键的书,否则就相当于学习VC++开发
-
while(1)
{
DelayNS2(10);
key = ZLG7290_GetKey();
if(key != 0x00)
{
key =key -1;
key = key&0x000F;
ZLG7290_SendCmd(0x60 +0, KEYCODE[key]);
ZLG7290_SendCmd(0x60 +1, 31);
ZLG7290_SendCmd(0x60 +2, 31);
ZLG7290_SendCmd(0x60 +3, 31);
ZLG7290_SendCmd(0x60 +4, 31);
ZLG7290_SendCmd(0x60 +5, 31);
ZLG7290_SendCmd(0x60 +6, 31);
ZLG7290_SendCmd(0x60 +7, 31);
}
}
这个是按44键盘输入,在第八位显示的程序
我想问下怎么样检测片选、存储和移位的
各位大虾救救命
-
不一定
-
是呀,删除了后,下次有个遇到同样问题的人又来继续问,过两天解决了不必把如何解决贴出来,然后又再次删贴.然后再下次...
-
你接收是扫描还中断,
你接收的通道是命令还是数据的
-
我也遇到同样的问题,交流一下吧,我qq号727418719。
-
我顶
-
wince 下也有zlib,,挺好用的
-
华为的那些一般都是VxWorks吧
-
最具性价比的可能是RTL8201,出货量很大.......
-
相当有用,谢谢版主。。。
-
[HKEY_LOCAL_MACHINE\System\StorageManager\Profiles\NandFlash\FATFS]
是不是应该把nandflash改成FlashDisk?
加上下面这项
[HKEY_LOCAL_MACHINE\System\StorageManager\AutoLoad\FlashDisk]
"DriverPath"="Drivers\\BuiltIn\\NandFlash"
"LoadFlags"=dword:1
"Order"=dword:0
"BootPhase"=dword:1
"Flags"=dword:1000
组件我加了
compression
database
bitbased
ram and rom file system
hive-based registry
binary rom image file system
fat file system
partition driver
system password
-
帮顶
-
要我们做什么呢?已经有了代码.