分享到plurk 分享到twitter 分享到facebook

版本 4331043bbf05ef851e9f76785db62b956058e55f

embedded/chibios

Changes from 4331043bbf05ef851e9f76785db62b956058e55f to 43bb91d2c8c0ae9a885874db474a6729ef44e6d4

---
title: ChibiOS/RT
categories: embedded, arm, stm32, stm32f429
toc: yes
...

組員
----
* 莊承翰 / vchchuang
* 詹尚倫 / game
* 陳祐任 / bruce30262
* 陳易駿 / alex122380
* 郭耀琮 / rbugoo131

共筆:  `hackpad<https://stm32f429.hackpad.com/ChibiOSRT--tRTURqqJOhr>`_

作業系統架構
------------

系統狀態(System States)
^^^^^^^^^^^^^^^^^^^^^^

.. image:: http://chibios.sourceforge.net/html/dot_inline_dotgraph_1.png

|

.. image:: http://chibios.sourceforge.net/html/dot_inline_dotgraph_2.png

.. image:: http://chibios.sourceforge.net/html/dot_inline_dotgraph_3.png

* Init
* Normal 
* Suspended 
* Disabled 
* Sleep 
* S-Locked
* I-Locked 
* Serving Regular Interrupt ( SRI ) 
* Serving Fast Interrupt ( SFI ) 
* Serving Non-Maskable Interrupt ( SNMI ) 
* Halted

.. image:: http://chibios.sourceforge.net/html/dot_inline_dotgraph_1.png

(待補文字)

.. image:: http://chibios.sourceforge.net/html/dot_inline_dotgraph_2.png

.. image:: http://chibios.sourceforge.net/html/dot_inline_dotgraph_3.png

上下文交換(Context Switch)
^^^^^^^^^^^^^^^^^^^^^^^^^

中斷(Interrupt)
^^^^^^^^^^^^^^^
| Maskable Interrupt(可遮罩式中斷) :  一種硬體中斷。可以透過軟體控制去設定中斷遮罩暫存器(Interrupt Mask Register, IMR)內的位元遮罩值(bit-mask)來讓CPU決定要不要回應這個中斷要求。
| Non-Maskable Interrupt(不可遮罩式中斷) :  一種硬體中斷。與可遮罩式中斷不同,它無法用軟體去控制。**CPU一定要回應這個中斷要求,不可以忽略。**

硬體驅動原理
------------
* 以 DMA2D 為例

效能表現
--------
* 參考 ChibiOS/RT 的 test/testbmk.c

參考資料
--------
* `Building eye-catching GUIs for your embedded MCU designs<http://www.embedded.com/design/mcus-processors-and-socs/4426244/1/Building-eye-catching-GUIs-for-your-embedded-MCU-designs>`_
* `ChibiOS/RT - SourceForge<http://chibios.sourceforge.net/html/index.html>`_
* `Overview of the Cortex-M3, Chapter 2<http://www.arm.com/files/word/Yiu_Ch2.pdf>`_