APJ ABDUL KALAM TECHNOLOGICAL UNIVERSITY Previous Years Question Paper & Answer

Course : B.Tech

Semester : SEMESTER 6

Subject : Embedded System

Year : 2018

Term : MARCH

Scheme : 2015 Full Time

Course Code : EC 308

Page:69





PDF Text (Beta):

following. OS_NO_ERR, when memory block returns to the memory partition, or OS_MEM_FULL, Whe,
memory block cannot be put into the memory partition as It 15 full.
Example 9.15 shows how to get a pointer to the memory block, which has been created earlier,

Example 9.15

1. to 5. /* Codes as per Example 9.14 */

6. /* Codes for retrieving the pointer to memory block in a partition created by step 5 in Example 9.14 4
memPointer = 0xA000;

memErr = OS_MEM_NO_FREE_BLKS;

*OSMemGet (*memPointer, *memErr);

5. /* Other Codes for the function. */

:
} /* End of the function */ |

3. Querying a memory block. Function unsigned byte OSMemQuery (OS_MEM *memCBPointet
OS_MEMDATA *memData) is to query and retum the error code and pointers for the memory partibess
OS_NO_ERROR as | if a memory address *memPointer exists at *OS_MEMDATA, else retums ‏لا‎

Returning RK: The function OSMemQuery ( ) returns an error code, which is an unsigned byte. The coe ।
is OS_NO_ERR 1 when querying succeeds, else 0.

Task parameters passing PK: (i) The function OSMem ry ( ) passes (i inter memPointer of
memory created earlier, and (ii) a pointer of data ‏اق لحيس‎ ட ಭಕ್ತಾ ಭನ are passed ೫
references, the information about memory partition returns with the memory contro! block pointer. |

4. ‏سد سی أ سد‎ into a partition. Function unsigned byte OSMemPut (05.

‘ointer, voi ⋅ ↳∙⋅⋯∁∙
दं वःव ത്തോ ೩ memory block pointed by *memBlock. which!

Returning RL: The function OSM:
(1) OS_NO_ERR, when the mem
the memory block cannot be put int

Task parameters i ∙⋅ வல்‌ அர்‌
passing PL: (i) The function OSMemPut ( ) passes a pointer +*memCBPointe! of #

∙ ⋅ ⋅∙ 10101 0!
memory block *memBlock is to be put into i. It is there that the block is to be put. (ii) A pom

⋅− ∕

∘⊡∌∥⇂≺⋡∎⋅∘↥⋯⋅∎∎⇈∏∘⊓∶∘∁↿∘≲↟⋅∘↾∘∏∁∘⊓≖∎∁↿⋅∘∥∘↘⋁⋯⊑∙ “sis

0 2 5 GCamanhkha.. n_1_.

Similar Question Papers