EmbLogic's Blog

Author Archives: Shubham Gupta

.FEX file Description

A FEX file defines various aspects of how the SoC works. It configures the GPIO pins and sets up DRAM, Display, etc parameters. It is Allwinners predecessor for the devicetree. Each line consists of a key = value pair combination … Continue reading

Posted in Uncategorized | Leave a comment

C program to swap two numbers using bitwise operator

/** * C program to swap two numbers using bitwise operator */ #include int main() { int num1, num2; //Reads two numbers from user printf(“Enter any two numbers: “); scanf(“%d%d”, &num1, &num2); printf(“Original value of num1 = %d\n”, num1); printf(“Original … Continue reading

Posted in Uncategorized | Leave a comment

Serial Interfaces

Serial is an umbrella word for all that is “Time Division Multiplexed”, to use an expensive term. It means that the data is sent spread over time, most often one single bit after another. All the protocols you’re naming are … Continue reading

Posted in Uncategorized | Leave a comment

ARM and Thumb instruction set overview

All ARM instructions are 32 bits long. Instructions are stored word-aligned, so the least significant two bits of instruction addresses are always zero in ARM state. Thumb instructions are either 16 or 32 bits long. Instructions are stored half-word aligned. … Continue reading

Posted in Uncategorized | Leave a comment

Cortex-A series processors

ARM documentation set for the ARM Cortex-A family of processors, including the ARM Cortex-A15 MPCore, ARM Cortex-A9 MPCore, ARM Cortex-A9 single core, ARM Cortex-A8, ARM Cortex-A7 MPCore, and ARM Cortex-A5 processors. The ARM Cortex-A Series is a family of applications … Continue reading

Posted in Uncategorized | Leave a comment

Multiline macros in C (macro as function)

Multiline macros in C In this article, we will discuss how to write a multi-line macro. We can write multi-line macro same like function, but each statement ends with “\”. Let us see with example. Below is simple macro, which … Continue reading

Posted in Uncategorized | Leave a comment

Differences between threads and processes

The major differences between threads and processes are: Threads share the address space of the process that created it; processes have their own address space. Threads have direct access to the data segment of its process; processes have their own … Continue reading

Posted in Uncategorized | Leave a comment

what is volatile key word in c

The proper use of C’s volatile keyword is poorly understood by many programmers. This is not surprising, as most C texts dismiss it in a sentence or two. This article will teach you the proper way to do it. Have … Continue reading

Posted in Uncategorized | Leave a comment

How to use GDB with BT(Backtrace)

GDB is an essential tool for programmers to debug their code. Breakpoints are the way to tell GDB to stop or pause the program execution at certain line, or function, or address. Once the program is stopped you can examine … Continue reading

Posted in Uncategorized | Leave a comment

c++ QNA

The copy constructor is a constructor which creates an object by initializing it with an object of the same class, which has been created previously. The copy constructor is used to: Initialize one object from another of the same type. … Continue reading

Posted in Uncategorized | Leave a comment

Introduction to IPC on Linux

Introduction to IPC on Linux Inter-Process-Communication (or IPC for short) are mechanisms provided by the kernel to allow processes to communicate with each other. On modern systems, IPCs form the web that bind together each process within a large scale … Continue reading

Posted in Uncategorized | Leave a comment

Difference Between Inline and Macro

Inline An inline function is just like any other function in C++ and is also called in the regular way. The function it performs is that it creates a copy of the compiled function definition. That is, it creates a … Continue reading

Posted in Uncategorized | Leave a comment