2 * Hyper Operating System Application Framework
4 * @file at91usartdrv_delete.c
5 * @brief %jp{ATMEL AT91シリーズUSART用デバイスドライバ}
7 * Copyright (C) 2006-2007 by Project HOS
8 * http://sourceforge.jp/projects/hos/
12 #include "at91usartdrv_local.h"
16 void At91UsartDrv_Delete(C_DRVOBJ *pDrvObj)
22 self = (C_AT91USARTDRV *)pDrvObj;
25 SysEvt_Delete(self->hEvtRecv);
26 SysEvt_Delete(self->hEvtSend);
27 SysMtx_Delete(self->hMtxRecv);
28 SysMtx_Delete(self->hMtxSend);
31 pMem = StreamBuf_RefBufAddr(&self->StmBufRecv);
32 StreamBuf_Delete(&self->StmBuf);