CoOS Demonstrator adapted to mbed Hardware.

Dependencies:   mbed

Committer:
ericebert
Date:
Fri Dec 03 19:45:30 2010 +0000
Revision:
0:57690853989a
Some basic LED-Flashing works in the CoOS-RTOS using Tasks

Who changed what in which revision?

UserRevisionLine numberNew contents of line
ericebert 0:57690853989a 1 /**
ericebert 0:57690853989a 2 *******************************************************************************
ericebert 0:57690853989a 3 * @file OsMm.h
ericebert 0:57690853989a 4 * @version V1.1.3
ericebert 0:57690853989a 5 * @date 2010.04.26
ericebert 0:57690853989a 6 * @brief Header file related to memory management
ericebert 0:57690853989a 7 * @details This file including some defines and function declare related to
ericebert 0:57690853989a 8 * memory management.
ericebert 0:57690853989a 9 *******************************************************************************
ericebert 0:57690853989a 10 * @copy
ericebert 0:57690853989a 11 *
ericebert 0:57690853989a 12 * INTERNAL FILE,DON'T PUBLIC.
ericebert 0:57690853989a 13 *
ericebert 0:57690853989a 14 * <h2><center>&copy; COPYRIGHT 2009 CooCox </center></h2>
ericebert 0:57690853989a 15 *******************************************************************************
ericebert 0:57690853989a 16 */
ericebert 0:57690853989a 17
ericebert 0:57690853989a 18
ericebert 0:57690853989a 19 #ifndef _MM_H
ericebert 0:57690853989a 20 #define _MM_H
ericebert 0:57690853989a 21
ericebert 0:57690853989a 22
ericebert 0:57690853989a 23 typedef struct Memory
ericebert 0:57690853989a 24 {
ericebert 0:57690853989a 25 U8* memAddr;
ericebert 0:57690853989a 26 U8* freeBlock;
ericebert 0:57690853989a 27 U32 blockSize;
ericebert 0:57690853989a 28 U32 blockNum;
ericebert 0:57690853989a 29 }MM,*P_MM;
ericebert 0:57690853989a 30
ericebert 0:57690853989a 31
ericebert 0:57690853989a 32 typedef struct MemoryBlock
ericebert 0:57690853989a 33 {
ericebert 0:57690853989a 34 struct MemoryBlock* nextBlock;
ericebert 0:57690853989a 35 }MemBlk,*P_MemBlk;
ericebert 0:57690853989a 36
ericebert 0:57690853989a 37
ericebert 0:57690853989a 38 extern U32 MemoryIDVessel;
ericebert 0:57690853989a 39
ericebert 0:57690853989a 40 #endif /* _MM_H */
ericebert 0:57690853989a 41