Table of Contents 5.6.3 BF_OS initialization 5.6.3.1 systemInit() function system_clock_config(); cycleCounterInit(); 5.6.3.2 tasksInitData() function (1)TASK_COUNT: (2) task_t (task control block data type): (3) task_attribute_t: 1. const int8_t staticPriority; priority attribute 5.6.3.3 tasksInit(); function (1) queueAdd() function (2)getTask() function (3) clockMicrosToCycles() function (4) Get DWT count 5.6.3 BF_OS initialization (1)dshot It is the control protocol of […]
Tag: keil
(5) Betaflight is transplanted to keil – running on BF_OS
Table of Contents 5.6.4.1 __attribute__ tool 5.6.4.2 scheduler(); function (1) micros() function 1. register keyword 2. VECTACTiVE (Active vector) of SCB (System Control Block) ICSR (Interrupt Control and Status Register) 3. About __get_BASEPRI() referencing #include “platform.h” 4. microsISR() function (2) inline inline function keyword (3) Systick is used to calculate task running time? (4) schedulerExecuteTask […]
[Use of STM32-DSP library] Based on Keil5 + STM32CubeMX + CMSIS-DSP manual addition and library addition method
Usage of STM32-DSP library 1.CMSIS-DSP 1.1 Introduction to DSP library 1.2 Supported function categories 1.3 Macro definition 2. Operation 2.1 STM32CubeMX configuration basic project 2.2 Implementation using Lib library (recommended) 2.3 Manually add DSP files (you can download the latest official library, which is fully functional) 3. MFCC tests DSP acceleration effect In order to […]
How Keil5 creates a 51 microcontroller multi-module project
Keil5 How to create a 51 microcontroller multi-module project Premise basis Create project Create module Create multi-module directories and files Create module folder Add main source file Add public public module Add new modules to the app Create group Click the Project Management Entry button Create corresponding groups based on previous modules Add module files […]
LED dot matrix display principle (font acquisition software + Keil + Proteus)
Foreword When I was writing this, I was still a little angry because I found that I followed the steps in the book exactly, but it turned out to be unsatisfactory. I had to debug myself later to solve the problem. -_-I will shed tears if I say too much, let’s go directly to the […]
Static display and dynamic display of LED digital tube (Keil+Proteus)
Foreword I was reading the microcontroller experiment in the book today, and found that there are many devices that I don’t know how to find in Proteus, so I wanted to do this experiment to see if it can be implemented. The two LED digital tubes can still be implemented, but using LED I don’t […]
STM32 wildfire keil project uses CLion to create templates
In the past two days, I tried to use Clion to modify the original Keil routine project of the Wildfire Domineering V2 development board. I encountered many problems and finally got it through. It can be compiled and downloaded normally, and printed through the serial port. These problems encountered are recorded in previous articles. Finally, […]
stm32CubeMX, with Keil, uses the HAL library (or standard library) for serial communication
Introduction Today we will learn the operation of the STM32CubeMX serial port and the configuration of the HAL library serial port. We will explain the use and specific functions of each module in detail, and implement the Printf function function redirection and USART interrupt reception based on the HAL library. This series of tutorials combines […]
keil automated compilation script
Follow + Star the publicnumber and never miss exciting content Source | Gitee Author | DinoHaw Although Keil’s development of microcontrollers has been criticized by many developers, we have to admit that Keil is still one of the preferred tools for many microcontroller developers. Today I will share an open source keil automated compilation script. […]
STM32CubeMX&Keil–USART serial communication and interrupt of STM32F103C8T6
Article directory 1. Serial communication (1) Serial protocol and RS-232 standard 1. Serial communication protocol 2.RS232 serial port standard 3.RS232 level 4.TTL level 5.The difference between RS232 level and TTL level (1) Voltage (2. area (3) Interface circuit Summarize: (2) Working principle of USB/TTL to 232″ module CH340C module 2. Use HAL library for USART […]