[X9D] Tiny font added (numbers only)

[X9D] Channels monitor
[X9D] Switches main view
This commit is contained in:
bsongis
2012-11-29 20:27:21 +00:00
parent 1d6c8627c0
commit 7c192910d1
23 changed files with 410 additions and 169 deletions
+8 -9
View File
@@ -1008,23 +1008,22 @@ void resetProto();
#if defined(PCBSKY9X)
inline int32_t calc100toRESX(register int8_t x)
{
return ((uint32_t)x*655)>>6 ;
return x * 1024 / 100;
}
inline int16_t calc1000toRESX(register int32_t x) // improve calc time by Pat MacKenzie
{
register int32_t y = x>>5;
x+=y;
y=y>>2;
x-=y;
return x+(y>>2);
// return x + x/32 - x/128 + x/512;
return x * 1024 / 1000;
}
inline int16_t calcRESXto1000(register int32_t x)
{
// *1000/1024 = x - x/32 + x/128
return (x - x/32 + x/128 - x/512);
return x * 1000 / 1024;
}
inline int16_t calcRESXto100(register int32_t x)
{
return x * 100 / 1024;
}
#else