mirror of
https://github.com/QuantumLeaps/qpcpp.git
synced 2025-02-04 06:13:00 +08:00
86 lines
3.3 KiB
C
86 lines
3.3 KiB
C
/*********************************************************************
|
|
* SEGGER Microcontroller GmbH & Co. KG *
|
|
* The Embedded Experts *
|
|
**********************************************************************
|
|
* *
|
|
* (c) 1995 - 2017 SEGGER Microcontroller GmbH & Co. KG *
|
|
* *
|
|
* Internet: segger.com Support: support_embos@segger.com *
|
|
* *
|
|
**********************************************************************
|
|
* *
|
|
* embOS * Real time operating system for microcontrollers *
|
|
* *
|
|
* Please note: *
|
|
* *
|
|
* Knowledge of this file may under no circumstances *
|
|
* be used to write a similar product or a real-time *
|
|
* operating system for in-house use. *
|
|
* *
|
|
* Thank you for your fairness ! *
|
|
* *
|
|
**********************************************************************
|
|
* *
|
|
* OS version: 4.34.1 *
|
|
* *
|
|
**********************************************************************
|
|
|
|
----------------------------------------------------------------------
|
|
File : xmtx2.c
|
|
Purpose : xmtx file interface -- thread locking and unlocking
|
|
functions for file i/o, adapted to embOS
|
|
--------- END-OF-HEADER ----------------------------------------------
|
|
*/
|
|
|
|
#include <yvals.h>
|
|
#include "RTOS.h"
|
|
|
|
|
|
#if _MULTI_THREAD
|
|
|
|
#if _DLIB_FILE_DESCRIPTOR
|
|
|
|
/*********************************************************************
|
|
*
|
|
* Global functions
|
|
*
|
|
**********************************************************************
|
|
*/
|
|
|
|
/*********************************************************************
|
|
*
|
|
* __iar_file_Mtxinit()
|
|
*/
|
|
__ATTRIBUTES void __iar_file_Mtxinit(__iar_Rmtx* m) {
|
|
OS__iar_system_Mtxinit(m); // Mapped to system mutex
|
|
}
|
|
|
|
/*********************************************************************
|
|
*
|
|
* __iar_file_Mtxdst()
|
|
*/
|
|
__ATTRIBUTES void __iar_file_Mtxdst(__iar_Rmtx* m) {
|
|
OS__iar_system_Mtxdst(m); // Mapped to system mutex
|
|
}
|
|
|
|
/*********************************************************************
|
|
*
|
|
* __iar_file_Mtxlock()
|
|
*/
|
|
__ATTRIBUTES void __iar_file_Mtxlock(__iar_Rmtx* m) {
|
|
OS__iar_system_Mtxlock(m); // Mapped to system mutex
|
|
}
|
|
|
|
/*********************************************************************
|
|
*
|
|
* __iar_file_Mtxunlock()
|
|
*/
|
|
__ATTRIBUTES void __iar_file_Mtxunlock(__iar_Rmtx* m) {
|
|
OS__iar_system_Mtxunlock(m); // Mapped to system mutex
|
|
}
|
|
#endif /* _DLIB_FILE_DESCRIPTOR */
|
|
|
|
#endif /* _MULTI_THREAD */
|
|
|
|
/****** End Of File *************************************************/
|