Dead code removed
This commit is contained in:
@@ -34,20 +34,15 @@
|
|||||||
#include <SDL.h>
|
#include <SDL.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
uint8_t MCUCSR, MCUSR, MCUCR;
|
|
||||||
volatile uint8_t pina=0xff, pinb=0xff, pinc=0xff, pind, pine=0xff, pinf=0xff, ping=0xff, pinh=0xff, pinj=0, pinl=0;
|
|
||||||
uint8_t portb, portc, porth=0, dummyport;
|
|
||||||
uint16_t dummyport16;
|
|
||||||
int g_snapshot_idx = 0;
|
int g_snapshot_idx = 0;
|
||||||
|
|
||||||
uint8_t simu_start_mode = 0;
|
uint8_t simu_start_mode = 0;
|
||||||
char * main_thread_error = NULL;
|
char * main_thread_error = nullptr;
|
||||||
|
|
||||||
bool simu_shutdown = false;
|
bool simu_shutdown = false;
|
||||||
bool simu_running = false;
|
bool simu_running = false;
|
||||||
|
|
||||||
#if defined(STM32)
|
#if defined(STM32)
|
||||||
uint32_t Peri1_frequency, Peri2_frequency;
|
|
||||||
GPIO_TypeDef gpioa, gpiob, gpioc, gpiod, gpioe, gpiof, gpiog, gpioh, gpioi, gpioj;
|
GPIO_TypeDef gpioa, gpiob, gpioc, gpiod, gpioe, gpiof, gpiog, gpioh, gpioi, gpioj;
|
||||||
TIM_TypeDef tim1, tim2, tim3, tim4, tim5, tim6, tim7, tim8, tim9, tim10;
|
TIM_TypeDef tim1, tim2, tim3, tim4, tim5, tim6, tim7, tim8, tim9, tim10;
|
||||||
RCC_TypeDef rcc;
|
RCC_TypeDef rcc;
|
||||||
@@ -80,14 +75,12 @@ void toplcdOff()
|
|||||||
uint64_t simuTimerMicros(void)
|
uint64_t simuTimerMicros(void)
|
||||||
{
|
{
|
||||||
#if SIMPGMSPC_USE_QT
|
#if SIMPGMSPC_USE_QT
|
||||||
|
|
||||||
static QElapsedTimer ticker;
|
static QElapsedTimer ticker;
|
||||||
if (!ticker.isValid())
|
if (!ticker.isValid())
|
||||||
ticker.start();
|
ticker.start();
|
||||||
return ticker.nsecsElapsed() / 1000;
|
return ticker.nsecsElapsed() / 1000;
|
||||||
|
|
||||||
#elif defined(_MSC_VER)
|
#elif defined(_MSC_VER)
|
||||||
|
|
||||||
static double freqScale = 0.0;
|
static double freqScale = 0.0;
|
||||||
static LARGE_INTEGER firstTick;
|
static LARGE_INTEGER firstTick;
|
||||||
LARGE_INTEGER newTick;
|
LARGE_INTEGER newTick;
|
||||||
@@ -106,12 +99,9 @@ uint64_t simuTimerMicros(void)
|
|||||||
QueryPerformanceCounter(&newTick);
|
QueryPerformanceCounter(&newTick);
|
||||||
// compute the elapsed time
|
// compute the elapsed time
|
||||||
return (newTick.QuadPart - firstTick.QuadPart) * freqScale;
|
return (newTick.QuadPart - firstTick.QuadPart) * freqScale;
|
||||||
|
|
||||||
#else // GNUC
|
#else // GNUC
|
||||||
|
|
||||||
auto now = std::chrono::steady_clock::now();
|
auto now = std::chrono::steady_clock::now();
|
||||||
return (uint64_t) std::chrono::duration_cast<std::chrono::microseconds>(now.time_since_epoch()).count();
|
return (uint64_t) std::chrono::duration_cast<std::chrono::microseconds>(now.time_since_epoch()).count();
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -389,7 +379,6 @@ void StartAudioThread(int volumeGain)
|
|||||||
#ifdef __linux__
|
#ifdef __linux__
|
||||||
pthread_setname_np(simuAudio.threadPid, "audio");
|
pthread_setname_np(simuAudio.threadPid, "audio");
|
||||||
#endif
|
#endif
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void StopAudioThread()
|
void StopAudioThread()
|
||||||
|
|||||||
Reference in New Issue
Block a user