AG903ライブラリリファレンス
内容インデックスホーム
Body Source
本文ソース
1: int32_t AG903_TIMRMgrReleaseHandle(AG903_TIMRMgrHandle* handle) 2: { 3: int32_t retval = AG903_ENONE; 4: int32_t result; 5: uint8_t ch; 6: uint8_t idle; 7: 8: result = TIMRMgr_CheckHandle(handle, &ch); 9: if(AG903_ENONE != result) { 10: return -AG903_EINVAL; 11: } 12: idle = TIMRMgr_CheckIdle(ch); 13: if(true != idle) { 14: return -AG903_EBUSY; 15: } 16: 17: TimrHandleStat[ch].lock = false; 18: 19: return retval; 20: }
Copyright (c) 2017-2025 Axell Corporation. All rights reserved.