|
|
您好,请问omapl138 c程序中嵌入汇编问题。下面代码汇编程序是怎样的呢?
: p6 ^8 K! Q X: A, M' p
! ?6 w% j- S6 }# x$ Iint16_t raw ;
* U9 U/ D* L9 b$ u( ^% Tdouble tempin = 0.0 ;9 n! h3 h) `5 K' Q$ S( @; T/ Y
double tempout = 0.0 ;3 G, i3 \, |5 I% _8 i4 ~
1 s9 E" H# | ^float alpha = 1.8 ;9 A1 ]2 e; N& U; L! L9 I, L( ?
float gamma = 1.6 ;) X- H& y1 X7 O1 G+ v
# X) i8 ^1 b9 l0 H+ mdouble InHistory = 0 ;
6 V7 f/ h1 ?5 D3 |! ]double OutHistoy = 0 ;
" O* U/ [. P: R# q
8 m* ~) [' O! Q$ G g0 rtempin = (float)raw * 10.0 / 65536.0 ;5 M( r. h" L. R2 s
tempout = alpha*(InHistory + tempin) + gamma*OutHistoy ;7 ]+ B* Y5 \3 E( e8 r) N8 N+ ]
InHistory = tempin;$ _' O, m% Q9 d5 J* Y
OutHistoy = tempout ;
8 P( }" J& y" @7 S" `, s' f
' m/ a, @0 h2 f/ v |
|