mirror of
https://github.com/rvtr/TwlIPL.git
synced 2025-10-31 06:01:12 -04:00
・符号生成回路初期化をRomHeaderのデバイスタイプを見て設定するように修正 ・DMAとカードのデータ転送終了を待つインライン関数を追加 ・ソースの整理 git-svn-id: file:///Users/lillianskinner/Downloads/platinum/twl/TwlIPL/branches/20080312_hotsw@868 b08762b0-b915-fc4b-9d8c-17b2551a87ff
36 lines
910 B
C
36 lines
910 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 ){
|
||
// OS_PutString("Card is busy..\n");
|
||
}
|
||
}
|
||
|
||
static inline void HOTSW_WaitDmaCtrl(u32 ndmaNo)
|
||
{
|
||
while( MI_NDMA_REG( ndmaNo, MI_NDMA_REG_CNT_WOFFSET ) & MI_NDMA_ENABLE_MASK ){
|
||
// OS_PutString("Dma is busy..\n");
|
||
}
|
||
}
|
||
|
||
// ===========================================================================
|
||
// 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__
|