FreeCalypso > hg > tcs211-l1-reconst
comparison chipsetsw/layer1/audio_cfile/l1audio_sync.c @ 272:82a9407a75ce
l1audio_sync.c: l1s_melody0_manager() reconstructed
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Mon, 13 Mar 2017 06:24:15 +0000 |
parents | 473405ab23a3 |
children | a19a9953eec2 |
comparison
equal
deleted
inserted
replaced
271:473405ab23a3 | 272:82a9407a75ce |
---|---|
1962 | 1962 |
1963 // Is it the end of the melody? | 1963 // Is it the end of the melody? |
1964 if (l1s.melody0.melody_header == 0x0000) | 1964 if (l1s.melody0.melody_header == 0x0000) |
1965 { | 1965 { |
1966 *state = M0_WAIT_END_MELO; | 1966 *state = M0_WAIT_END_MELO; |
1967 #if 0 /* FreeCalypso TCS211 reconstruction */ | |
1967 // Header is wrong - L1 needs a forcible stop here | 1968 // Header is wrong - L1 needs a forcible stop here |
1968 #if (CODE_VERSION == SIMULATION) | 1969 #if (CODE_VERSION == SIMULATION) |
1969 // l1a_l1s_com.melody1_task.command.stop = TRUE; | 1970 // l1a_l1s_com.melody1_task.command.stop = TRUE; |
1970 #else | 1971 #else |
1971 l1a_l1s_com.melody1_task.command.stop = TRUE; | 1972 l1a_l1s_com.melody1_task.command.stop = TRUE; |
1972 #endif | 1973 #endif |
1974 #endif | |
1973 } | 1975 } |
1974 else | 1976 else |
1975 { | 1977 { |
1976 // Initialize the counter with the next offset time: | 1978 // Initialize the counter with the next offset time: |
1977 l1s.melody0.counter = ( ( Field(l1s.melody0.melody_header, SC_MELO_TIME_OFFSET_MASK, SC_MELO_TIME_OFFSET_SHIFT) ) * SC_MELO_DOWNLOAD_TIME_UNIT ) - 1; | 1979 l1s.melody0.counter = ( ( Field(l1s.melody0.melody_header, SC_MELO_TIME_OFFSET_MASK, SC_MELO_TIME_OFFSET_SHIFT) ) * SC_MELO_DOWNLOAD_TIME_UNIT ) - 1; |