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

Introduction to uCOS II v2 6 m4

13 223 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 13
Dung lượng 306,5 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.6Copyright • Materials in this course is the property of Amr Ali Abdel-Naby.. Amr Ali Abdel-Naby@2010 I

Trang 1

Introduction to uCOS-II V2.6

Trang 2

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

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

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

Copyright

• 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

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 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

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

Time Management APIs

• Available time operations are:

o Delaying a task

o Resuming a delayed task

o System time getting & setting

Trang 9

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

Delaying a Task, OSTimeDly

void OSTimeDly (INT16U ticks)

• ticks: The time delay that the task will be suspended in number of clock ticks

time 10ms

OSTickISR()

All HPT

LPT

5ms OSTimeDly(1)

Trang 10

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

Delaying a Task, OSTimeDlyHMSM

INT8U OSTimeDlyHMSM (INT8U hours, INT8U minutes, INT8U seconds, INT16U milli)

• hours: The number of hours that the task will be delayed

• minutes: The number of minutes

• seconds: The number of seconds

• milli: The number of milliseconds

• Return value:

Trang 11

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

Resuming a Delayed Task, OSTimeDlyResume

INT8U OSTimeDlyResume (INT8U prio)

• prio: Specifies the priority of the task to resume

• Return value:

Trang 12

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

System Time, OSTimeSet

void OSTimeSet (INT32U ticks)

• ticks: Specifies the new value that OSTime needs to take

Trang 13

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

System Time, OSTimeGet

INT32U OSTimeGet (void)

• Return value:

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