-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ba67eff
commit a9a35aa
Showing
11 changed files
with
100 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
:PROPERTIES: | ||
:ID: 580F87C8-EE19-4D9C-BF07-239125D14348 | ||
:END: | ||
#+title: ucos3 | ||
|
||
ucos3 micro C O S three | ||
|
||
滴答定时器中断频率 = 时间片 | ||
中断是一瞬间的事情,中断服务程序不能做过多的事情,特别是延时,通常是设置标志位 | ||
|
||
有优先级,可抢断 | ||
|
||
ucos 调用系统延迟函数,挂起,低优先级任务可以执行 | ||
|
||
裸机又称为前后台系统,前台系统指的是中断服务函数,后台指的大循环 | ||
|
||
|
||
中断可以嵌套,高优先级可以打断低优先级中断 | ||
|
||
中断可以打断任意任务,是内核层的,软件优先级是软件层面的 | ||
|
||
高优先级一直执行,除非进入挂起态,否则低优先级执行不会执行 | ||
|
||
* 2 | ||
|
||
[file:img/1.png] | ||
|
||
《Cortex M3 权威指南(中文)》 | ||
《Cortex M3 与 M4 权威指南》 | ||
|
||
1. 任务调度器 | ||
2. 任务启动流程,中断管理,任务切换 | ||
3. 队列,信号量,内存管理 | ||
|
||
[file:img/2.png] | ||
[file:img/3.png] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
:PROPERTIES: | ||
:ID: 0465412E-68B1-42E9-9886-9D843AE4FCB2 | ||
:END: | ||
#+title: sort | ||
|
||
1. [[id:6E287A86-F44B-4234-8F25-5BA46A008263][heap sort]] |
16 changes: 16 additions & 0 deletions
16
org-roam/algorithm/sort/heapsort/20241126154928-heap_sort.org
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
:PROPERTIES: | ||
:ID: 6E287A86-F44B-4234-8F25-5BA46A008263 | ||
:END: | ||
#+title: heap sort | ||
|
||
* heap sort | ||
|
||
| | | | | ||
|--------------+-----------------+----------| | ||
| std::greater | descending sort | min heap | | ||
| std::less | ascending sort | max heap | | ||
|
||
|
||
make_heap() 默认是构造最大堆,在 pop_heap() 后,将最大的移到了 back 位置 | ||
|
||
堆排序就是不停构造堆,并且交换 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.