STM32 manually transplants HAL firmware library

1. Three development methods of STM32 The essence of microcontroller development is the operation of registers, and the firmware library is a further encapsulation of registers. Direct register development: The execution efficiency is the highest, but the development is difficult and inconvenient for transplantation. You need to consult the data manual frequently. Standard peripheral library […]

Based on stm32f103c8t6, HAL library timer control light on and off &&PWM to realize breathing light

1. Basic knowledge of timers Timer classification 1. Basic timer The basic timer is a simple timer that is usually used to generate precise time delays. It has a single 16-bit counter that can achieve different counting speeds by setting the prescaler coefficient. Basic timers are usually used for simple scheduled tasks. 2. Universal timer […]

[Algorithm Challenge] Serialization and Deserialization of Binary Trees (including parsing and source code)

297. Serialization and deserialization of binary trees https://leetcode-cn.com/problems/serialize-and-deserialize-binary-tree/ Same topic: Sword Points Offer 37. Serialized Binary Tree 297. Serialization and deserialization of binary trees Question description Method 1: Level traversal Ideas Complexity analysis code Method 2: Preorder traversal Ideas Complexity analysis code Title description Serialization is the operation of converting a data structure or object […]

The nature of communication, communication methods, the principles and multiple characteristics of anonymous pipes (access control, pipe_buf, atomicity, half-duplex), pipe() + simulation implementation code, communication between multiple processes (anonymous pipes, simulation implementation code )

Table of Contents communication introduce Why should there be communication? the nature of communication How to communicate pipeline system V posix standard Signal pipeline introduce anonymous pipe Principle introduce process Implement — pipe() function prototype parameter return value mock code Features Used for communication between parent and child processes Provide access control When the buffer […]

Datawhale-AIGC practice-deploy cat and dog recognition model using Tendong Cloud

Using Trend Cloud to deploy cat and dog recognition models: structuring and empiricizing AI reasoning 1. Introduction With the continuous development of artificial intelligence technology, deep learning models have been widely used in many fields. Among them, the cat and dog recognition model has attracted much attention due to its close-to-life characteristics. This article will […]

Andrew Ng Deep Learning_1_Week3 Shallow Neural Network

Plane data classifier based on single hidden layer neural network algorithm @[TOC](Plane data classifier based on single hidden layer neural network algorithm) 1. Package 2. Data set 3. Use logistic regression for classification prediction 4. Neural network model 1. Determine the structure of the neural network 2. Initialize the parameters of the model—W1, b1, W2, […]

Algorithm Clearance Village Level 6 – Bronze Challenge Tree

Hello everyone, my name is Su Lin. Today I’m going to talk about trees. Outline tree concept Binary tree full binary tree complete binary tree tree nature Definition and storage of trees tree traversal Construct a binary tree from sequences Front and middle sequence traversal Middle and back sequence traversal The concept of tree Tree […]

[Algorithm Challenge] The maximum number of blocks that can be sorted II (including analysis and source code)

768. Maximum number of blocks that can be sorted II https://leetcode-cn.com/problems/max-chunks-to-make-sorted-ii/ 768. Maximum number of blocks that can be sorted II Question description Method 1: Sliding window Ideas Complexity analysis Code (JS/C++) Method 2: Monotone Stack Ideas Illustration Complexity analysis Code (JS/C++) Title description This question is similar to “The maximum number of blocks that […]