
WARNING:HDLCompiler:751 Re-declaration of ANSI port x is not allowed The outputs of a primitive, inteally can be of type netor reg, exteally the outputs MUST be coected to a variable of type net. برای اتصال خروجی (Net) بیرونی یک زیرماژول به ورودی (Net / Reg) بیرونی زیرماژول دیگر و خروجی (Net / Reg) د...
ادامه مطلب
... u08 ad5664Init(void) { // initialize spi interface spiInit(); // switch to f/4 bitrate cbi(SPCR, SPR0); cbi(SPCR, SPR1); // setup chip select sbi(AD5664_CS_PORT, AD5664_CS_PIN); sbi(AD5664_CS_DDR, AD5664_CS_PIN); ad5664cmd = AD5664_CMD_IREF; ad5664d...
ادامه مطلب
... u08 ad7927Init(void) { // initialize spi interface spiInit(); // switch to f/4 bitrate cbi(SPCR, SPR0); cbi(SPCR, SPR1); // setup chip select sbi(AD7927_CS_PORT, AD7927_CS_PIN); sbi(AD7927_CS_DDR, AD7927_CS_PIN); // Set write bit, power mode normal, range ...
ادامه مطلب
... u08 ads7809Init(void) { // initialize spi interface spiInit(); /* Exteal DATACLK = 100kHz ~ 10MHz */ // switch to f/4 bitrate cbi(SPCR, SPR0); cbi(SPCR, SPR1); // SPI Clock Rate: 2MHz // sbi(SPSR, SPI2X); // setup clock /* If EXT/INT is HIGH, data will be output synchronized to the ...
ادامه مطلب
برد لیچی پای زیرو یکی از ارزان ترین کامپیوترهای تک برده مبتنی بر سیستم عامل لینوکس است که متشکل از برد زیرو و ماژول وایفای است. برد که در ابعاد کوچکی کمی بیشتر از اندازه یک کارت SD طراحی و عرضه شده است. برد اصلی از پردازنده آلوینر V3s با معماری کرتکس A7 با رم داخلی 64 مگابایتی بهره می برد. این برد از یک السیدی 5 اینچی پشتیبانی می کند که مستقیما از طریق کانکت...
ادامه مطلب
#include "cmsis_os2.h" // CMSIS RTOS header file /*---------------------------------------------------------------------------- * Message Queue creation & usage *---------------------------------------------------------------------------*/ void Thread_MsgQueue1 (void *argument); // thread functi...
ادامه مطلب
The lwIP provides two APIs for use by applications: RAW API: The raw API is customized for high performance and lower memory overhead. The limitation of raw API is that it is callback-based, and consequently does not provide portability to other TCP stacks. Best Performance & Code Size Complex For Application Development Socket API: The socket API provides a BSD socket-style interface and is very portable; however, this mode is not as efficient as raw API mode in performance and memory requirements. BSD Socket-style API → (Open-Read-Write-Close) Very Portable...
ادامه مطلب
$ gcc -Wall calc.c /usr/lib/libm.a -o calc Correct Order $ gcc -Wall calc.c -lm -o calc Error! Incorrect Order $ gcc -Wall -lm calc.c -o calc In general, the compiler option ‘-lNAME’ will attempt to link object files with a library file ‘libNAME.a’ in the standard library directories. On systems supporting both 64 and 32-bit executables, the 64-bit versions of the libraries will often be stored in ‘/usr/lib64’ and ‘/lib64’, with the 32-bit versions in ‘/usr/lib’ and ‘/lib’....
ادامه مطلب
پروژه Yocto : مجموعه ابزارهای منبع آزاد برای ساختن سیستمهای سفارشی توکار YOCTO is just another way to build uBoot, Linux Keel & Filesystem. Difference from the standard direct compilation is, that Freescale now officially adds all their support through YOCTO. The Yocto project provides a reference build system for embedded Linux, called Poky, which has the BitBake and OpenEmbedded-Core (OE-Core) projects at its base. The purpose of Poky is to build the components needed for an embedded Linux product, namely: - A bootloader image - A Linux keel image - A root filesystem image - Toolchains and software development kits (SDKs) for application development ادامه مطلب...
ادامه مطلب
$ sudo apt-get install g++ build-essential $ g++ –version // hello.c #include <stdio.h> int main (void) { printf ("Hello, world!n"); retu 0; } $ gcc -Wall hello.c -o hello $ ./hello Hello, world! // hello.cc #include <iostream> int main() { std::cout << "Hello World!" << std::endl; retu 0; } $ g++ -Wall hello.cc -o hello $ ./hello Hello, world! ...
ادامه مطلب