1. Trang chủ
  2. » Cao đẳng - Đại học

Introduction to uCOS II v2 6 m5

15 244 0

Đang tải... (xem toàn văn)

Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống

THÔNG TIN TÀI LIỆU

Thông tin cơ bản

Định dạng
Số trang 15
Dung lượng 326 KB

Các công cụ chuyển đổi và chỉnh sửa cho tài liệu này

Nội dung

Introduction to uCOS-II V2.6... Amr Ali Abdel-Naby@2010 Introduction to uCOS-II V2.6Course References • MicroC/OS-II The Real-Time Kernel, 2nd Edition, by Jean J... OSSemCreate OSSemDel

Trang 1

Introduction to uCOS-II V2.6

Trang 2

About SwiftACT

• A Technology services startup company

o Under establishment

• Areas of specialties:

o Mobile telecommunication services development

o Embedded systems development

• Types of services:

o Consultation

o Managed services

o Sourcing

o Training

Trang 3

Amr Ali Abdel-Naby@2010 Introduction to uCOS-II V2.6

About Me

• Graduated 2004

o ECE, ASU: 5 yrs distinction

• 5+ years in embedded systems development

o SDLC, Apps, MW, DD, Porting,

• 3+ years in SW engineering

o PSP, CMMI, Systematic reuse,

• 3+ years in SW testing

o IBM certified, ISTQB certified,

Trang 4

• Materials in this course is the property of Amr Ali Abdel-Naby

• Reproduction or transmission of the materials in any manner without the copyright owner permission is a law violation

Trang 5

Amr Ali Abdel-Naby@2010 Introduction to uCOS-II V2.6

Course References

• MicroC/OS-II The Real-Time Kernel, 2nd Edition, by Jean J Labrosse

Trang 6

• Introduction to µC/OS-II

• Kernel Structure

• Task Management

• Time Management

• Semaphore Management

• Mutual Exclusion Semaphores

• Event Flag Management

• Message Mailbox Management

• Message Queue Management

• Memory Management

Trang 7

Amr Ali Abdel-Naby@2010 Introduction to uCOS-II V2.6

Outline

• Introduction to µC/OS-II

• Kernel Structure

• Task Management

• Time Management

• Semaphore Management

• Mutual Exclusion Semaphores

• Event Flag Management

• Message Mailbox Management

• Message Queue Management

• Memory Management

Trang 8

• Semaphores are 16 bit unsigned integers used for resource sharing or to signal the occurrence of an event

OSSemCreate() OSSemDel() OSSemPost()

OSSemAccept() OSSemPend() OSSemQuery()

OSSemPost()

N N

OSSemAccept()

ISR

ISR Task

Task

Trang 9

Amr Ali Abdel-Naby@2010 Introduction to uCOS-II V2.6

Creating a Semaphore, OSSemCreate

OS_EVENT *OSSemCreate (INT16U cnt)

• cnt: The initial value for the semaphore

• Return value:

Trang 10

Deleting a Semaphore, OSSemDel

OS_EVENT *OSSemDel (OS_EVENT *pevent, INT8U opt, INT8U

*err)

• pevent: A pointer to the semaphore to be deleted

• opt: Delete options

• err:

Trang 11

Amr Ali Abdel-Naby@2010 Introduction to uCOS-II V2.6

Deleting a Semaphore, OSSemDel cont’d

OS_EVENT *OSSemDel (OS_EVENT *pevent, INT8U opt, INT8U

*err)

• Return value: Null if successful

Trang 12

Waiting on a Semaphore (Blocking), OSSemPend

void OSSemPend (OS_EVENT *pevent, INT16U timeout, INT8U

*err)

• pevent: A pointer to the semaphore to pend to

• timeout:

• err:

Trang 13

Amr Ali Abdel-Naby@2010 Introduction to uCOS-II V2.6

Signaling a Semaphore, OSSemPost

INT8U OSSemPost (OS_EVENT *pevent)

• pevent: A pointer to the semaphore to post to

• Return value:

Trang 14

Getting a Semaphore without Waiting, OSSemAccept

INT16U OSSemAccept (OS_EVENT *pevent)

• pevent: A pointer to the semaphore to pend to

• Return value:

Trang 15

Amr Ali Abdel-Naby@2010 Introduction to uCOS-II V2.6

Obtaining the Status of a Semaphore, OSSemQuery

INT8U OSSemQuery (OS_EVENT *pevent, OS_SEM_DATA *pdata)

• pevent: A pointer to the desired semaphore

• pdata: A pointer to the returned semaphore information

• Return value:

Ngày đăng: 10/08/2016, 09:56

TÀI LIỆU CÙNG NGƯỜI DÙNG

  • Đang cập nhật ...

TÀI LIỆU LIÊN QUAN