当前位置:网站首页>Mekol Studio - Little Bear Development Notes 2
Mekol Studio - Little Bear Development Notes 2
2022-07-23 19:56:00 【51CTO】
Harmony Introduction to compilation and construction
1. In short, the compilation process is through bearpi-hm_nano\build\lite\product\BearPi-HM_Nano.json Define compilation .c File becomes .a The final output of the file is .bin file
If it's complicated
Here's the picture

Specific video links :
https://www.bilibili.com/video/BV1Hi4y1c7dM?from=search&seid=11981477053638768133
2. The specific process of code operation is
https://blog.csdn.net/qq_42754570/article/details/112184043
CMSIS-RTOS2 Interface
CMSIS yes Cortex Microcontroller software interface standard (Cortex Microcontroller Software Interface Standard) yes ARM A set of standards followed by some compiler manufacturers and semiconductor manufacturers , By ARM Specifically for Cortex-M Standards proposed in the series . Under the agreement of this standard ,ARM And chip manufacturers will provide some general API Interface to access Cortex Kernel and some special peripherals , In order to reduce the cost of money and time brought by the transplantation of chips and development tools .
CMSIS-RTOS2(CMSIS-RTOS API Version 2) yes Arm Cortex-M General purpose of processor RTOS Interface . For needs RTOS Functional software components provide standardized API.
CMSIS-RTOS2 It's a universal API, It's related to the bottom RTOS It's not about the kernel , The programmer who writes the application calls... In the user code CMSISRTOS2 API function , Will be more convenient from an application RTOS To another RTOS, Use CMSIS-RTOS2 API Middleware can also avoid a lot of unnecessary transplantation .
Simply put, use CMSIS-RTOS2 You can ignore the difference of the underlying kernel , Applications can run
Hongmeng and CMSIS-RTOS2 Interface contact :

task management
Task status is usually divided into four types : be ready 、 function 、 Blocking 、 sign out .
The relationship between them :

Create tasks :osThreadNew(osThreadFunc_t func,void * argument,const osThreadAttr_t * attr)
Delete a task :osThreadTerminate(osThreadId_t thread_id);
Task suspended :osThreadSuspend(osThreadId_t thread_id)
Mission recovery :osThreadResume (osThreadId_t thread_id)
Software timer
Software timer , It's based on the system Tick A timer that interrupts the clock and is simulated by software , When set Tick After the clock count The user-defined callback function will be triggered . Timing accuracy and system Tick The period of the clock is related to .
The software timer supports :
Static clipping : It can turn off the software timer function through macro .
Software timer creation .
The software timer starts .
The software timer stops .
Software timer delete .
Software timer remaining Tick Number acquisition
Create timer :osTimerNew (osTimerFunc_t func, osTimerType_t type, void *argument, const osTimerAttr_t *attr);
Start timer :osTimerStart (osTimerId_t timer_id, uint32_t ticks);
Stop timer :osTimerStop (osTimerId_t timer_id);
Delete timer :osTimerDelete (osTimerId_t timer_id);
边栏推荐
- Latex (KAtex) CSDN Greek alphabet representation, mathematical symbols, set symbols, special marks
- Industry analysis | logistics intercom
- MySQL data recovery - using the data directory
- 编译器LLVM-MLIR-Intrinics-llvm backend-instruction
- Codeworks round 805-808 [partial solution]
- 梅科尔工作室-小熊派开发笔记3
- 【Unity项目实践】关卡解锁
- (干货)结合Scikit-learn介绍几种常用的特征选择方法
- 安全停止nodeos
- [hero planet July training leetcode problem solving daily] 23rd dictionary tree
猜你喜欢

Mysql主从复制

Why do you get confused when you ask JVM?
![[hero planet July training leetcode problem solving daily] 23rd dictionary tree](/img/e3/74cb4ce8aa08e0ea90e26bb2d197c3.png)
[hero planet July training leetcode problem solving daily] 23rd dictionary tree

Energy principle and variational method note 17: generalized variational principle (identification factor method)

Leetcode 228. 汇总区间(可以,已解决)

能量原理与变分法笔记12:最小势能原理

The numerical sequence caused by the PostgreSQL sequence cache parameter is discontinuous with interval gap
![Codeforces round 809 (Div. 2) [VP record]](/img/1d/17a28f3c77aa419e63a955a8445e7a.png)
Codeforces round 809 (Div. 2) [VP record]

新品上市|A股场内衍生品大盘点

PowerCLi 管理VMware vCenter 批量部署导出导入
随机推荐
Leetcode 152. 乘积最大子数组(暴力破解居然可以通过!)
Brief analysis of compiling principle of.Net CLR R2R
千呼万唤,5G双卡双通到底有多重要?
Energy principle and variational method note 12: minimum potential energy principle
PowerCLi 添加esxi主机到vCenter
简历上写的电商,那请问Redis 如何实现库存扣减操作和防止被超卖?
Leetcode 228. 汇总区间(可以,已解决)
The full text of Li Hongzhang's deathbed poem
Energy principle and variational method note 19: minimum complementary energy principle + possible work principle
selenium中元素定位正确但是操作失败,6种解决办法全稿定
2022上半年中国十大收缩行业
web安全入门-ssh测试与防御
Lecture 9 of project practice -- operation import and export tool
PC performance monitoring tool is an indispensable helper for software testers
Energy principle and variational method note 14: summary + problem solving
Redux summation case explanation version tutorial
PowerCLi 将虚拟机从Host01主机移动到Host02主机
PowerCLi 管理VMware vCenter 一键批量部署OVA
李鸿章 临终诗 临终奏折 全文
Eight common SQL misuses in MySQL