• R/O
  • SSH
  • HTTPS

kobanzame-sdk: 提交


Commit MetaInfo

修訂48 (tree)
時間2010-04-10 19:14:01
作者koban

Log Message

bug-fixed : 1: audio callback driver 2: PORT access

Change Summary

差異

--- trunk/kzsdk/kzdev_audio.c (revision 47)
+++ trunk/kzsdk/kzdev_audio.c (revision 48)
@@ -95,8 +95,8 @@
9595 else
9696 mnAudioBufState1 ++; // それ以外では決めうちで更新
9797
98- rx = &miRxBuffer2[mnAudioBufState2*mnBlocks*mnAudioChannels + mnAudioBufInnerCount2 ];
99- tx = &miTxBuffer2[mnAudioBufState2*mnBlocks*mnAudioChannels + mnAudioBufInnerCount2 ];
98+ rx = &miRxBuffer2[mnAudioBufState2*mnBlocks*mnAudioChannels + mnAudioBufInnerCount2*mnAudioChannels ];
99+ tx = &miTxBuffer2[mnAudioBufState2*mnBlocks*mnAudioChannels + mnAudioBufInnerCount2*mnAudioChannels ];
100100
101101 for( i=0 ; i<SAMPLES_PER_INTR; ++i )
102102 {
--- trunk/kzsdk/kzdev.h (revision 47)
+++ trunk/kzsdk/kzdev.h (revision 48)
@@ -77,9 +77,9 @@
7777 /*--- GPIO Macro -----------------------------------*/
7878 #define KZ_GPIO_SET_DIR_OUT(no) do { *pFIO_DIR |= (1<<no ); *pFIO_INEN &= ~(1<<no); }while(0)
7979 #define KZ_GPIO_SET_DIR_IN(no) do { *pFIO_DIR &= ~(1<<no ); *pFIO_INEN |= (1<<no); }while(0)
80-#define KZ_GPIO_SET_HI(no) do { *pFIO_FLAG_S = (1<<no); }while(0)
81-#define KZ_GPIO_SET_LO(no) do { *pFIO_FLAG_C = (1<<no); }while(0)
82-#define KZ_GPIO_SET_TGL(no) do { *pFIO_FLAG_T = (1<<no); }while(0)
80+#define KZ_GPIO_SET_HI(no) do { asm volatile("ssync;"); *pFIO_FLAG_S = (1<<no); }while(0)
81+#define KZ_GPIO_SET_LO(no) do { asm volatile("ssync;"); *pFIO_FLAG_C = (1<<no); }while(0)
82+#define KZ_GPIO_SET_TGL(no) do { asm volatile("ssync;"); *pFIO_FLAG_T = (1<<no); }while(0)
8383 #define KZ_GPIO_GET(no) *pFIO_FLAG_D & ( 1 << no )
8484
8585
Show on old repository browser