bug-fixed : 1: audio callback driver 2: PORT access
@@ -95,8 +95,8 @@ | ||
95 | 95 | else |
96 | 96 | mnAudioBufState1 ++; // それ以外では決めうちで更新 |
97 | 97 | |
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 ]; | |
100 | 100 | |
101 | 101 | for( i=0 ; i<SAMPLES_PER_INTR; ++i ) |
102 | 102 | { |
@@ -77,9 +77,9 @@ | ||
77 | 77 | /*--- GPIO Macro -----------------------------------*/ |
78 | 78 | #define KZ_GPIO_SET_DIR_OUT(no) do { *pFIO_DIR |= (1<<no ); *pFIO_INEN &= ~(1<<no); }while(0) |
79 | 79 | #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) | |
83 | 83 | #define KZ_GPIO_GET(no) *pFIO_FLAG_D & ( 1 << no ) |
84 | 84 | |
85 | 85 |