Node.js Config Files

Sometimes we need to create and use configuration files. One of the ways to create and use configurations is by using a config module. The first step is to install it using the following command: npm install config When we do this we have to create a directory with a name "config"(directory name/path can be

2020-03-29T15:39:40+03:00By |Categories: How To|0 Comments

RTOS: Mutex and Semaphore Basics

Designing an embedded system that employs a real-time operating system (RTOS) with multitasking behavior means that there will be resources that must be shared between the tasks. These shared resources (e.g peripheral modules, data structures, communication interfaces, etc.) by their nature do not support multiple concurrent accesses. Accessing them without any rules in place may

2020-03-16T06:18:21+02:00By |Categories: Embedded Systems|Tags: , , |0 Comments

Exception Context Switching on ARM Cortex-M

This article is a natural extension on the topics we covered in Function Calls on ARM Cortex-M Microprocessors. Due to the hardware specifics of the Cortex-M architecture, there is actually a lot of common in how function calls and exceptions are handled. The good thing for us as developers is that all exception handlers can

2020-02-24T07:20:40+02:00By |Categories: Embedded Systems|Tags: , |0 Comments

STM32 Bootloader Design – Part 3

Here is the bootloader code, let's go through it and explain it step by step: /* Includes ------------------------------------------------------------------*/ #include "main.h" #include "flash.h" #include "srecord.h" #define USER_APPLICATION_BASE_ADDRESS 0x8004000U uint8_t srec_data[16]; void __svc(1) EnablePrivilegedMode(void ); void __SVC_1 (void){ __disable_irq(); __set_CONTROL((__get_CONTROL( ))& 0xFFFFFFFE); // enter priv mode __enable_irq(); } static void BootJump(uint32_t *Address) { /* 1. Make sure,

2020-02-17T18:37:00+02:00By |Categories: Embedded Systems|Tags: , |0 Comments

Installing Laravel with Composer

The first thing required for installing Laravel with Composer is to have Composer installed on your machine. After that, you have to download the installation package for Laravel in Composer. You can do this using the following command: composer global require laravel/installer If the command is completed successfully you will see an output similar to

2020-02-02T20:49:07+02:00By |Categories: How To|0 Comments

Create a Custom Block for Gutenberg in WordPress

Instead of having one big chunk of content, as it was until Gutenberg had been introduced in Wordpress 5.0, the web page is now segmented into smaller parts, called blocks. The editor provides a wide variety of blocks that you can use across your pages and posts, but since this is WordPress, there’s always room

2020-01-28T08:15:13+02:00By |Categories: WordPress|0 Comments

Customize Product Tabs in WooCommerce

In this article, I will show you how to customize WooCommerce tabs. I will start by adding the tab because it contains almost everything we need to know. add_filter( 'woocommerce_product_tabs', 'woo_new_product_tab' ); function woo_new_product_tab( $tabs ) { $tabs['description_tab'] = array( 'title' => __( 'Description Tab', 'woocommerce' ), 'priority' => 50, 'callback' => 'woo_description_tab_content' ); return

2020-01-08T21:21:22+02:00By |Categories: WordPress|0 Comments