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...
How to ‘flatten’ a Git repository with multiple submodules
A common strategy during development is to use multiple git submodules. In this way you may distribute the workload to other developers but also maintain a proper structure of your project. However, when it is time to release, a good advice is to ‘flatten’ your repository and ensure that your project is self-contained in a way that there will be no (external) dependency to other...
GitHub Repositories Backup (Orgs)
It is a common need to periodically create a cold-storage backup of your online repositories. However, as long as now Github does not offer an automated way, you can use the Github Repositories Backup software to perform this operation easier.
Github Repositories Backup
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...