mirror of
https://github.com/rvtr/TwlIPL.git
synced 2025-10-31 06:01:12 -04:00
・DMAデータ転送終了割り込みハンドラの設定部分を修正 git-svn-id: file:///Users/lillianskinner/Downloads/platinum/twl/TwlIPL/trunk@1068 b08762b0-b915-fc4b-9d8c-17b2551a87ff
32 lines
821 B
C
32 lines
821 B
C
#ifndef __HOTSW_CUSTOM_NDMA_H__
|
||
#define __HOTSW_CUSTOM_NDMA_H__
|
||
|
||
#include <twl.h>
|
||
|
||
#ifdef __cplusplus
|
||
extern "C" {
|
||
#endif
|
||
|
||
|
||
static inline void HOTSW_WaitCardCtrl(void)
|
||
{
|
||
while( reg_HOTSW_MCCNT1 & REG_MI_MCCNT1_START_MASK ){}
|
||
}
|
||
|
||
static inline void HOTSW_WaitDmaCtrl(u32 ndmaNo)
|
||
{
|
||
while( MI_NDMA_REG( ndmaNo, MI_NDMA_REG_CNT_WOFFSET ) & MI_NDMA_ENABLE_MASK ){}
|
||
}
|
||
|
||
// ===========================================================================
|
||
// Function Describe
|
||
// ===========================================================================
|
||
// ƒJ<C692>[ƒh
|
||
void HOTSW_NDmaCopy_Card(u32 ndmaNo, const void *src, void *dest, u32 size);
|
||
void HOTSW_NDmaPipe_Card(u32 ndmaNo, const void *src, void *dest, u32 size);
|
||
|
||
#ifdef __cplusplus
|
||
} /* extern "C" */
|
||
#endif
|
||
|
||
#endif // __HOTSW_CUSTOM_NDMA_H__
|