Remove COPROCESSOR
This commit is contained in:
committed by
Peter Feerick
parent
f9830e1405
commit
a052ba63c2
@@ -182,23 +182,6 @@ void menuStatisticsDebug(event_t event)
|
|||||||
y += FH;
|
y += FH;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(COPROCESSOR)
|
|
||||||
lcdDrawTextAlignedLeft(y, STR_COPROC_TEMP);
|
|
||||||
if (coprocData.read==0) {
|
|
||||||
lcdDrawText(MENU_DEBUG_COL1_OFS, y, "Co Proc NACK",INVERS);
|
|
||||||
}
|
|
||||||
else if (coprocData.read==0x81) {
|
|
||||||
lcdDrawText(MENU_DEBUG_COL1_OFS, y, "Inst.TinyApp",INVERS);
|
|
||||||
}
|
|
||||||
else if (coprocData.read<3) {
|
|
||||||
lcdDrawText(MENU_DEBUG_COL1_OFS, y, "Upgr.TinyApp",INVERS);
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
drawValueWithUnit(MENU_DEBUG_COL1_OFS, y, coprocData.temp, UNIT_TEMPERATURE, LEFT);
|
|
||||||
drawValueWithUnit(MENU_DEBUG_COL2_OFS, y, coprocData.maxtemp, UNIT_TEMPERATURE, LEFT);
|
|
||||||
}
|
|
||||||
y += FH;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
lcdDrawTextAlignedLeft(y, "Free Mem");
|
lcdDrawTextAlignedLeft(y, "Free Mem");
|
||||||
lcdDrawNumber(MENU_DEBUG_COL1_OFS, y, availableMemory(), LEFT);
|
lcdDrawNumber(MENU_DEBUG_COL1_OFS, y, availableMemory(), LEFT);
|
||||||
|
|||||||
@@ -240,14 +240,6 @@ void menuRadioVersion(event_t event)
|
|||||||
lcdDrawText(FW, y, vers_stamp, SMLSIZE);
|
lcdDrawText(FW, y, vers_stamp, SMLSIZE);
|
||||||
y += 5 * (FH - 1);
|
y += 5 * (FH - 1);
|
||||||
|
|
||||||
#if defined(COPROCESSOR)
|
|
||||||
lcdDrawText(FW, y, "COPR\037\033: ", SMLSIZE);
|
|
||||||
if (coprocData.valid == 1)
|
|
||||||
lcdDrawNumber(lcdNextPos, y, coprocData.read, SMLSIZE);
|
|
||||||
else
|
|
||||||
lcdDrawText(lcdNextPos, y, "---", SMLSIZE);
|
|
||||||
y += FH - 1;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
y += 2;
|
y += 2;
|
||||||
|
|
||||||
|
|||||||
@@ -151,15 +151,6 @@ void per10ms()
|
|||||||
/* Update global Date/Time every 100 per10ms cycles */
|
/* Update global Date/Time every 100 per10ms cycles */
|
||||||
if (++g_ms100 == 100) {
|
if (++g_ms100 == 100) {
|
||||||
g_rtcTime++; // inc global unix timestamp one second
|
g_rtcTime++; // inc global unix timestamp one second
|
||||||
#if defined(COPROCESSOR)
|
|
||||||
if (g_rtcTime < 60 || rtc_count<5) {
|
|
||||||
rtcInit();
|
|
||||||
rtc_count++;
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
coprocReadData(true);
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
g_ms100 = 0;
|
g_ms100 = 0;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@@ -470,10 +470,6 @@ void OpenTxSim::updateKeysAndSwitches(bool start)
|
|||||||
long OpenTxSim::onTimeout(FXObject*, FXSelector, void*)
|
long OpenTxSim::onTimeout(FXObject*, FXSelector, void*)
|
||||||
{
|
{
|
||||||
if (hasFocus()) {
|
if (hasFocus()) {
|
||||||
#if defined(COPROCESSOR)
|
|
||||||
coprocData.temp = 23;
|
|
||||||
coprocData.maxtemp = 28;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
updateKeysAndSwitches();
|
updateKeysAndSwitches();
|
||||||
|
|
||||||
|
|||||||
@@ -784,13 +784,6 @@ void disableSpeaker()
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(COPROCESSOR)
|
|
||||||
CoprocData coprocData;
|
|
||||||
|
|
||||||
void coprocReadData(bool)
|
|
||||||
{
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
void rtcInit()
|
void rtcInit()
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user