|
您好,请问omapl138 c程序中嵌入汇编问题。下面代码汇编程序是怎样的呢?
+ y; c t/ y J6 l% v& z
0 E! y" O+ l: D- Vint16_t raw ;
+ _2 n, V. j: r f% odouble tempin = 0.0 ;
! L% W' G) c! Sdouble tempout = 0.0 ;$ n( y2 C2 g0 ], R) V, ~/ H
2 m* c# C( H8 |9 [+ S
float alpha = 1.8 ;( k$ G* t& d% h; V9 K/ f
float gamma = 1.6 ;
2 w8 d" `( ~* d) ~. Q2 k7 V" U
double InHistory = 0 ;
' C/ U ~) J1 K' ?5 K$ K' Pdouble OutHistoy = 0 ;
0 K$ F+ q* \6 b3 D- F4 b9 M$ z, B+ t; d& M, Q) i' T$ ]/ [9 g
tempin = (float)raw * 10.0 / 65536.0 ; v. ]' Y' Z/ D8 u, a1 c2 j. ^
tempout = alpha*(InHistory + tempin) + gamma*OutHistoy ;
; y0 j& `1 x- A0 |. v+ yInHistory = tempin;* T7 V) V4 P3 x5 Y$ R8 a
OutHistoy = tempout ;
; L! }& ~& R( o9 }
$ d. o; N# B# U' H! w1 s |
|