TAILIEUCHUNG - Real-Time Embedded Multithreading Using ThreadX and MIPS- P16

Real-Time Embedded Multithreading Using ThreadX and MIPS- P16:Although the history of embedded systems is relatively short, 1 the advances and successes of this fi eld have been profound. Embedded systems are found in a vast array of applications such as consumer electronics, “ smart ” devices, communication equipment, automobiles, desktop computers, and medical equipment. | A-4 Appendix A Description This service creates a pool of fixed-size memory blocks. The memory area specified is divided into as many fixed-size memory blocks as possible using the formula total blocks total bytes block size size of void . This service initializes the Memory Block Pool Control Block through the parameter pool_ptr. WARNING Each memory block contains one pointer of overhead that is invisible to the user and is represented by the sizeof void expression in the preceding formula. Input Parameters pool_ptr Pointer to a Memory Block Pool Control Block. name_ptr block_size Pointer to the name of the memory block pool. Number of bytes in each memory block. pool_start pool_size Starting address of the memory block pool. Total number of bytes available for the memory block pool. Return Values TX_SUCCESS2 0X00 Successful memory block pool creation. TX_POOL_ERROR 0X02 Invalid memory block pool pointer. Either the pointer is NULL or the pool has already been created. TX_PTR_ERROR 0X03 Invalid starting address of the pool. TX_SIZE_ERROR 0X05 Size of pool is invalid. TX_CALLER_ ERROR 0x13 Invalid caller of this service. 2This value is not affected by the TX_DISABLE_ERROR_CHECKING define that is used to disable API error checking. on to remove this watermark. Memory Block Pool Services A-5 Allowed From Initialization and threads Preemption Possible No Example TX_BLOCK_POOL my_pool UINT status Create a memory pool whose total size is 1000 bytes starting at address 0x100000. Each block in this pool is defined to be 50 bytes long. status tx_block_pool_create my_pool my_pool_name 50 VOID 0x100000 1000 If status equals TX_SUCCESS my_pool contains 18 memory blocks of 50 bytes each. The reason there are not 20 blocks in the pool is because of the one overhead pointer associated with each block. tx_block_pool_delete Delete a pool of fixed-size memory blocks Prototype UINT tx_block_pool_delete TX_BLOCK_POOL pool_ptr Description This service deletes the .

TAILIEUCHUNG - Chia sẻ tài liệu không giới hạn
Địa chỉ : 444 Hoang Hoa Tham, Hanoi, Viet Nam
Website : tailieuchung.com
Email : tailieuchung20@gmail.com
Tailieuchung.com là thư viện tài liệu trực tuyến, nơi chia sẽ trao đổi hàng triệu tài liệu như luận văn đồ án, sách, giáo trình, đề thi.
Chúng tôi không chịu trách nhiệm liên quan đến các vấn đề bản quyền nội dung tài liệu được thành viên tự nguyện đăng tải lên, nếu phát hiện thấy tài liệu xấu hoặc tài liệu có bản quyền xin hãy email cho chúng tôi.
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.