|
您好,请问omapl138 c程序中嵌入汇编问题。下面代码汇编程序是怎样的呢?9 b+ v* |, y- i" H
4 _8 J! Y$ y: m0 D/ E
int16_t raw ;! ]3 M7 [8 {; T( C1 @
double tempin = 0.0 ;0 ^5 o' E7 ?7 f7 S
double tempout = 0.0 ;
! r% o1 H9 p2 \" W& |
+ A2 n4 H, g. a' f; ^; u: ^float alpha = 1.8 ;
8 t( C7 a. n& K; p" m4 D6 Qfloat gamma = 1.6 ;
: t- p/ {# O5 x: {, B7 R
# q% Y" X; ]' C6 v2 d- b+ G- [double InHistory = 0 ;
' K% a0 b2 u R1 @double OutHistoy = 0 ;0 g' r% b/ A1 q
/ S& D; i$ ~/ f& ?* X# F
tempin = (float)raw * 10.0 / 65536.0 ;/ } x: w5 t, {3 V
tempout = alpha*(InHistory + tempin) + gamma*OutHistoy ;2 r/ C* u% h; r# Y4 k
InHistory = tempin;' J4 G0 @& n8 {, {$ u
OutHistoy = tempout ;
: Y6 R! m; y; s3 L ?* ^0 G
/ |- c4 t. ]/ b" S. E: o5 o, t) t |
|