|
|
您好,请问omapl138 c程序中嵌入汇编问题。下面代码汇编程序是怎样的呢?' W" L, {7 l a6 x1 Y. D
! m0 M5 ^0 L: G( Gint16_t raw ;' |- x. g" a! }) f- K; B
double tempin = 0.0 ;( ]# d7 W9 ]3 \7 s; o0 f
double tempout = 0.0 ;7 B8 O% `; ^% c# i0 ~) Q) x
- g7 R/ M* Y) L$ l
float alpha = 1.8 ;
. x5 x, v) k$ H& V4 E# wfloat gamma = 1.6 ;$ |6 [, w- p4 Y0 s; O' m: r, t! ]
. [- m6 q. V1 d% G, |. o
double InHistory = 0 ;6 V1 e! u8 k I+ f4 [
double OutHistoy = 0 ;
4 q+ H+ m0 v# t8 h; @# {" X2 |; r/ P3 \! r4 P. i; k* Q
tempin = (float)raw * 10.0 / 65536.0 ;
* _& y: C# Z; y; v3 jtempout = alpha*(InHistory + tempin) + gamma*OutHistoy ;
" H6 l' t- U( K% o- A$ D0 EInHistory = tempin;
) s7 Y5 ]$ c. NOutHistoy = tempout ;0 |8 | }2 u4 S+ Y. @: P5 A; ^
. ~/ {; W% S4 b3 D |
|