原创 glRasterPos2i 和 glBitmap繪製位圖
openGL中繪製位圖時,首先要調用glRasterPos2i設置光柵繪圖的起點位置,glBitmap中的xorig和yorig指向光柵的起點 而glBitmap中的xMove和yMove表明下次繪圖時光柵移動的距離。 #if 1
原创 openGL中座標的生成:glLoadIdentity和gluOrtho2D練習
void display() { glEnable(GL_DEPTH_TEST); glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); glMatrixMode
原创 QNX Resource Manager Sample code,QNX驅動程序框架模板
一個簡單的驅動程序模板,在/dev目錄下注冊myDevDrv 。 應用程序使用open函數進行測試。 #include <stdio.h> #include <stdlib.h> #include <stddef.h> #include
原创 QNX Share Memory Sample code
Process A #include <stdio.h> #include <string.h> #include <fcntl.h> #include <errno.h> #include <stdlib.h> #include <u
原创 QNX消息傳遞的例程
QNX 例程,使用MsgReceive和MsgReplay自收自發消息。使用定時器週期發送消息。 #include <stdio.h> #include <stdlib.h> #include <time.h> #include <
原创 perl中顯示環境變量
#print("__FILE__"); @names =keys %ENV; foreach $Item (@names) { print("$Item=$ENV{$Item}\n"); } $ENV{'CCTV'}="****c
原创 PL腳本中'和"的使用
$dir_win='C:\work\PSRC\SRC\*'; # '' keep \ is \ $dir_win2="C:\\work\\PSRC\\SRC\\*"; # "" \\ tran
原创 用perl實現的結構體數組
fff
原创 Intel® (ATOM )Media SDK使用總結
1.Setup Host Machine 參考下面的文章構造主機編譯環境 https://github.com/intel/iotg-yocto-bsp-public/tree/e3900/master https://softwar
原创 open source ethercat
https://github.com/OpenEtherCATsociety/SOEM
原创 x86平臺讀取CMOS中RTC時間例程
#include "vxWorks.h" #include "time.h" #include "stdio.h" #include "memLib.h" #include "sysLib.h" STATUS tim
原创 EtherCAT,PowerLink和Ethernet/IP三種協議的比較
1.Ethernet/IP基於socket,在socket曾上定義應用數據模型,所以發送的數據包都是IP包。 2.PowerLink在MAC層上定義了新的type類型()。PowerLink複用了MAC層的功能同時引入新的硬件定時器(
原创 PCIe總線設備的枚舉
#include <vxWorks.h> #include <stdio.h> #include <string.h> #include <sys/ioctl.h> #include <hwif/vxBus.h> #include <
原创 congaPA5(Apollo Lake,Celeron N3350) 開發板運行VxWorks7的步驟
硬件介紹 conga PA5是德國康佳特公司的一款x64 Apollo Lake平臺評估板,主芯片有Atom E3950/E3940,Pentium N4200和Celeron N3350等3個版本,整個開發板尺寸是Pico ITX規
原创 ROMFS的建立
參考:VxWorks® 7 File Systems Programmer’s Guide