Chapter 2: MDK Online Debugging and Code Standards (2.5-2.8)

Chapter 2: MDK Online Debugging and Code Standards (2.5-2.8)

2.5 Viewing Peripheral Registers The internal peripheral values of the microcontroller can also be viewed in real-time through the “view” menu under “System Viewer” window, or by directly clicking the “System Viewer” window icon, allowing you to see the register values of the relevant internal peripherals of the microcontroller, as shown in Figure 2-13. Figure2-13 … Read more

Chapter 2: MDK Online Debugging and Code Standards (2.5-2.8)

Chapter 2: MDK Online Debugging and Code Standards (2.5-2.8)

2.5 Viewing Peripheral Registers The internal peripheral values of the microcontroller can also be viewed in real-time through the “view” menu under “System Viewer”, or by directly clicking the “System Viewer” window icon, allowing you to see the register values of the relevant internal peripherals of the microcontroller, as shown in Figure 2-13. Figure2-13 System … Read more

The Ultimate Guide to C Language Code Standards: Make Your Colleagues Go Crazy for Your Code!

The Ultimate Guide to C Language Code Standards: Make Your Colleagues Go Crazy for Your Code!

Introduction: Have you ever faced such an awkward situation? During a code review, a colleague frowns and says, “This code… works, I guess?” Or when taking over someone else’s project, you see a pile of code that looks like a foreign language and want to explode? Today, I will share a set of ultimate secrets … Read more

Python Basics (Part 1)

Python Basics (Part 1)

(1) Python Code Standards 1. Quotes Single and Double Quotes: In Python, both single quotes (‘) and double quotes (“) can be used to define strings. They can be used interchangeably without any difference in any context. Triple Quotes: In Python, triple quotes (”’) are used for multi-line comments. 2. Parentheses Round Brackets: Used for … Read more

Essential for Python Development: A Comprehensive Analysis of PEP8 Code Standards to Make Your Code More Elegant!

Essential for Python Development: A Comprehensive Analysis of PEP8 Code Standards to Make Your Code More Elegant!

Essential for Python Development: A Comprehensive Analysis of PEP8 Code Standards to Make Your Code More Elegant! In Python development, the readability and consistency of code are crucial. PEP8 is the official style guide recommended by Python, which not only helps us write clearer code but also enhances team collaboration efficiency. Today, we will delve … Read more

Why AI Agent Framework Standards Are A Battleground

Why AI Agent Framework Standards Are A Battleground

Whenever the AI Agent framework and standards are mentioned, many people likely feel a mix of confusion and clarity. This is because the ceiling for creating frameworks is very high; it is possible to quickly scale to 300M, but if the framework fails to deliver, the consensus may collapse, leading to a high probability of … Read more

How to Improve C Code Readability: Standards and Refactoring Practices

How to Improve C Code Readability: Standards and Refactoring Practices

Have you heard this joke? A programmer walks into a bar and says to the bartender, “Can I get a beer? And add a while(1)?”The bartender is puzzled: “Do you want me to create an infinite loop?”The programmer laughs and says, “No, boss, I just want a drink that never ends.” As you can see, … Read more