Spring’s @FieldDefaults and @Data: Lombok annotations for cleaner code

Introduction As Java developers, we often find ourselves stuck in boilerplate code. Accessor methods, modifier methods, constructors, equals(), hashCode(), and toString() are essential, but take up a lot of space and distract from the core logic of the application. The Spring framework is widely used for building enterprise applications and is a fan of reducing […]

Embedded Systems Week 8 Experiment: Serial Communication Based on Interrupt/DMA Mode

1 Experimental task: (1) Understand the serial port protocol and RS-232 standard (2) And the difference between RS232 level and TTL level; (3) Understand the working principle of the “USB/TTL to 232” module (taking the CH340 chip module as an example). Use the HAL library (or standard library) method to set the USART1 baud rate […]

In the form of system application added services, it is provided to third-party app interface calls or to achieve business needs.

Article directory Preface I. Overview 2. Define macro control in configuration file The purpose is to add a switch, and different projects decide whether to compile the APP. 3. Add aidl to the framework 4. app template 5. Add selinux permissions to services and apps 5. Add interface whitelist (optional) PS: Debugging methods Summarize Foreword […]

[Embedded project application]__UART custom communication protocol code implementation method

Table of Contents Preface 1. What is a communication protocol? 2. Problems with simple communication protocols 3. Common contents of communication protocols 1. Frame header 2. Device address/type 3. Command/Instruction 4. Command type/function code 5. Data length 6. Data 7.End of frame 8. Check code 4. Communication protocol code implementation 1. Sending message data a. […]

[Interrupt mechanism in embedded systems]

In the development of embedded systems, interrupts are a very important knowledge point. In most application products built with microcontrollers, functions are basically implemented in a front-end and background way (large loop plus interrupt), and the application is processed in the main loop. And handle external trigger signals in interrupts, as well as applications that […]

[Embedded project application] __The embedded framework “Zorb Framework” used to build debugging output and establish time systems

Table of Contents 1. What is Zorb? 2. Embedded environment construction 3. Debug output 4. Implement assertions 5. Establish a time system 6. Conclusion (* ̄︶ ̄)Creation is not easy! Looking forward to your likes, collections and comments. 1. What is Zorb? Zorb Framework is a lightweight embedded framework based on object-oriented ideas. The purpose of building […]

Embedded assignment ten (DMA-based serial communication)

Article Directory Table of Contents Article directory 1. Interruption method 1. Establish the project 2. Code writing 3. Operation effect 2. DMA method 1. Establish the project 2. Code writing 3. Operation effect Reference links: 1. Interruption method 1. Create project For new projects, please refer to: Embedded Assignment 8 (Use Cube to implement the […]