|
|
您好,请问omapl138 c程序中嵌入汇编问题。下面代码汇编程序是怎样的呢?
- }' F7 }6 h" Q# C8 p$ R- _* _$ I" [" T3 m0 K) V0 r
int16_t raw ;; T P+ k! R+ g# F0 k/ D
double tempin = 0.0 ;
0 h/ s2 b g/ Ddouble tempout = 0.0 ;
2 o$ [2 ~4 s0 D7 X4 L/ n! i2 {2 W9 L$ O$ l/ _9 H- d. k
float alpha = 1.8 ;
6 G+ u! I& U/ dfloat gamma = 1.6 ;$ p" t& i. [4 x1 v1 y
( P/ [. j5 D. R: L5 i6 L7 o
double InHistory = 0 ; U( g% q( D* a9 D
double OutHistoy = 0 ;6 {, w. P- Q+ q9 [# n) p2 K
! ?2 u" E# ?. z! xtempin = (float)raw * 10.0 / 65536.0 ;0 V, I- X' z# H
tempout = alpha*(InHistory + tempin) + gamma*OutHistoy ;4 B) l5 ~0 q# W% Z5 ^ L) I2 ], [
InHistory = tempin;
0 x% Y8 C' @; {3 y/ U; |3 fOutHistoy = tempout ;, ]% \5 {# \4 A' s: o
/ L* m* o* X1 ~& @2 y) n* z |
|