In this post we will see how the drv_flash module can be loaded and how it is working. This tutorial is a part of the STM32 Devcoons Framework, so I suggest to first check this article. As with all the modules, we have to import it using the method explained here. And afterwards use the module freely in our code. Below is a simple example of the tsk_app using the flash_erase and flash_write...
STM32 Devcoons Framework – Use the lib_crypto module (3)
In this post, we will add the lib_crypto module to our project. As all the module, it should be ‘automatically ‘ recognized by the STM32 Devcoons Framework, thus we will be able to use its functions directly. So, let’s start! devcoons/stm32-lib-crypto (github.com) Add the module by following the tutorial: 1. Enable the library features This library contains a configuration file...
STM32 Devcoons Framework – Add a module (2)
The flow to add a module in the STM32 Devcoons Framework is a straightforward and seamless process which ease up the development. In this post, we will see the basic rules we have to follow and show a quick example. 1. Place the modules in the corresponding folder Any module should be placed in the corresponding folder under the /BaseCode/. All the modules start with either drv or lib prefix...
STM32 Devcoons Framework – Introduction & Project setup (1)
In this article we will explore an easy-to-use development framework for STM32 microcontrollers. The purpose of this framework is to speed up the development of STM32 projects and help the user focus mostly on their application, rather than the configuration. This framework is consisted by a series of plug-n-play modules covering a wide number of peripherals and libraries. Ex: CANBus, UART, SPI...
ISO 3166 Country Codes library for C#
The purpose of ISO 3166 is to define internationally recognized codes of letters and/or numbers that we can use when we refer to countries and their subdivisions. However, it does not define the names of countries – this information comes from United Nations sources (Terminology Bulletin Country Names and the Country and Region Codes for Statistical Use maintained by the United Nations...
Computing Pairwise Text Similarities
There are different sectors where text similarity is used, for example on Search Engines, in Customer Service, or Legal Matters (by linking related documents). Consider the following 2 sentences:Dear Ms. John Doe, can you confirm your purchase of a plane ticket to Hong Kong?Ms. A approved purchase of a plane ticket to Hong Kong. A human could easily determine that these 2 sentences convey a very...
Problem: Play with numbers
You are given an array of n numbers and q queries. For each query you have to print the floor of the expected value(mean) of the subarray from L to R. Input: First line contains two integers N and Q denoting number of array elements and number of queries.Next line contains N space seperated integers denoting array elements.Next Q lines contain two integers L and R(indices of the array). Output:...
Problem: Make them Anagrams
Given two strings, a and b , that may or may not be of the same length, determine the minimum number of character deletions required to make a and b anagrams. Any characters can be deleted from either of the strings. Input : test cases,ttwo strings a and b, for each test case Output: Desired O/p Constraints : string lengths<=10000 Note : Anagram of a...
Problem: Seating Arrangement
Two friends are quite fond of travelling. They mostly travel by railways. They were travelling in a train one day and they got interested in the seating arrangement of their compartment. The compartment looked something like So they got interested to know the seat number facing them and the seat type facing them. The seats are denoted as follows : Window Seat : WSMiddle Seat : MSAisle...
A simple way to establish communication between applications (IPC)
One extremely interesting feature that modern applications are using is the Interprocess communication (IPC). It is a really important especially for designing a well established architecture having in mind the extendability. In this tutorial we will see a simple IPC made with Named Pipes. Keep in mind that the following is just an example and should not be used in production. For this example...