2014-09-22 11:48:11 -04:00
|
|
|
/*********************************************************************
|
2017-05-17 13:15:09 -04:00
|
|
|
* SEGGER Microcontroller GmbH & Co. KG *
|
|
|
|
* The Embedded Experts *
|
2014-09-22 11:48:11 -04:00
|
|
|
**********************************************************************
|
|
|
|
* *
|
2017-05-17 13:15:09 -04:00
|
|
|
* (c) 1995 - 2017 SEGGER Microcontroller GmbH & Co. KG *
|
2014-09-22 11:48:11 -04:00
|
|
|
* *
|
2017-05-17 13:15:09 -04:00
|
|
|
* Internet: segger.com Support: support_embos@segger.com *
|
2014-09-22 11:48:11 -04:00
|
|
|
* *
|
|
|
|
**********************************************************************
|
|
|
|
* *
|
|
|
|
* 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 ! *
|
|
|
|
* *
|
|
|
|
**********************************************************************
|
|
|
|
* *
|
2017-05-17 13:15:09 -04:00
|
|
|
* OS version: 4.34.1 *
|
2014-09-22 11:48:11 -04:00
|
|
|
* *
|
|
|
|
**********************************************************************
|
|
|
|
|
|
|
|
----------------------------------------------------------------------
|
|
|
|
File : xmtx.c
|
|
|
|
Purpose : xmtx system interface -- thread locking and unlocking
|
|
|
|
functions, adapted to embOS
|
|
|
|
--------- END-OF-HEADER ----------------------------------------------
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include <yvals.h>
|
|
|
|
#include "RTOS.h"
|
2017-05-17 13:15:09 -04:00
|
|
|
#include "DLib_Threads.h"
|
2014-09-22 11:48:11 -04:00
|
|
|
|
|
|
|
#if _MULTI_THREAD // Used in multi thread supported libraries only
|
|
|
|
|
|
|
|
/*********************************************************************
|
|
|
|
*
|
|
|
|
* Global functions
|
|
|
|
*
|
|
|
|
**********************************************************************
|
|
|
|
*/
|
|
|
|
|
|
|
|
/*********************************************************************
|
|
|
|
*
|
|
|
|
* __iar_system_Mtxinit()
|
|
|
|
*/
|
2017-05-17 13:15:09 -04:00
|
|
|
__ATTRIBUTES void __iar_system_Mtxinit(__iar_Rmtx* m) {
|
2014-09-22 11:48:11 -04:00
|
|
|
OS__iar_system_Mtxinit(m);
|
|
|
|
}
|
|
|
|
|
|
|
|
/*********************************************************************
|
|
|
|
*
|
|
|
|
* __iar_system_Mtxdst()
|
|
|
|
*/
|
2017-05-17 13:15:09 -04:00
|
|
|
__ATTRIBUTES void __iar_system_Mtxdst(__iar_Rmtx* m) {
|
2014-09-22 11:48:11 -04:00
|
|
|
OS__iar_system_Mtxdst(m);
|
|
|
|
}
|
|
|
|
|
|
|
|
/*********************************************************************
|
|
|
|
*
|
|
|
|
* __iar_system_Mtxlock()
|
|
|
|
*/
|
2017-05-17 13:15:09 -04:00
|
|
|
__ATTRIBUTES void __iar_system_Mtxlock(__iar_Rmtx* m) {
|
2014-09-22 11:48:11 -04:00
|
|
|
OS__iar_system_Mtxlock(m);
|
|
|
|
}
|
|
|
|
|
|
|
|
/*********************************************************************
|
|
|
|
*
|
|
|
|
* __iar_system_Mtxunlock()
|
|
|
|
*/
|
2017-05-17 13:15:09 -04:00
|
|
|
__ATTRIBUTES void __iar_system_Mtxunlock(__iar_Rmtx* m) {
|
2014-09-22 11:48:11 -04:00
|
|
|
OS__iar_system_Mtxunlock(m);
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif // _MULTI_THREAD
|
|
|
|
|
|
|
|
/****** End Of File *************************************************/
|