添加u/cosIII所需的文件,如下图9 g5 h; x. A0 g7 S4 r9 c8 C" l, a
, s( f5 a' _+ y
4 Q) ] S/ Q7 i7 ~0 O: G
$ c, a8 U+ ^& C
) j- I0 [3 w% G3 S: X1 E. C3 v
5 U$ r% f* n% e+ L; ]
& k* y) T1 w6 [& N* p1 C主要代码如下:* C$ |& g; W: l. a6 X% x
- #include "app.h"/ ]6 K) e8 N+ m0 u2 B
- #include "gui_desktop.h"
7 e8 a# C5 y, u" A8 P - #include "sim908.h"* Q2 Y2 i* q n" A& D' G9 ]
- #include <string.h>
( n5 Y4 b& t! W - #include "wm.h"9 s4 l1 p, b. Y
- #include "gui_common.h"
) @5 Z$ N: {& Y5 i - #include "rtc.h"
$ s9 y9 x# L; G - #include "i2c_ee.h"
2 c/ `- L7 T- j4 C: t - #include "bsp_sdfatfs_app.h"7 o+ y- ]7 A5 }! E
- % ^% R! j9 @. {. N6 U6 g
- extern OS_TCB StartUp_TCB; - k7 N2 t" s5 P j+ T
- 8 }* }6 @6 B) q% h5 }
- static OS_TCB LED_TCB; ! b* t& i7 N9 ^- R& g- s+ l Q
- static CPU_STK LED_Stk[TASK_LED_STK_SIZE]; 5 \6 d7 J: e1 N, i
- static OS_TCB GUI_TCB; 8 d0 o0 r+ z" @( U0 W
- static CPU_STK GUI_Stk[TASK_GUI_STK_SIZE];
. y7 y0 }- v' ]2 v - static OS_TCB GUI_Touch_TCB;
7 i1 {* j ]' O - static CPU_STK GUI_Touch_Stk[TASK_GUI_Touch_STK_SIZE]; " d% a4 t; l+ C. x. L
- //static OS_TCB AT_TCB;/ k& u1 Q: i, N, Q: B: ^% r8 b( g
- //static CPU_STK AT_Stk[TASK_AT_STK_SIZE];
! T" y* x- [9 R" O7 N9 | - OS_TCB IntTest_TCB;
+ k0 [% N/ R" B; H$ V - static CPU_STK IntTest_Stk[TASK_INTTEST_STK_SIZE];
% T6 ?, l0 G! T8 w/ C1 U! f - OS_TCB MessageHandle_TCB;
: P, h! S6 a) p2 x Y3 @+ t. Z7 L) i - static CPU_STK MessageHandle_Stk[TASK_MESSAGEHANDLE_STK_SIZE];
. c) N+ p. E9 k' t' V% p - OS_TCB PhoneHandle_TCB;
" H0 Y3 I! V" v. O; _4 ^6 a - static CPU_STK PhoneHandle_Stk[TASK_PHONEHANDLE_STK_SIZE];1 v" ^1 A3 h& A9 G4 B
- OS_TCB GPRSHandle_TCB;
1 @- V9 Y, C/ g; L! @1 ^- L# x, Z - static CPU_STK GPRSHandle_Stk[TASK_GPRSHANDLE_STK_SIZE];
3 \3 y, ?: p5 [; z& y- h - OS_TCB TimeUpdate_TCB;0 p5 f3 J! ?: k ?' y) r
- static CPU_STK TimeUpdate_Stk[TASK_TIMEUPDATE_STK_SIZE];! Y" O: |# D* b: D' r# r! T
- OS_TCB SimCheck_TCB;
4 K* A' H f0 `4 T: l$ M o - static CPU_STK SimCheck_Stk[TASK_SIMCHECK_STK_SIZE];
0 _$ R* ~; `1 J4 P6 ` - OS_TCB Wireless_TCB;
1 g7 L3 T3 i4 }- q: _ M: f5 D) Z - static CPU_STK Wireless_Stk[TASK_WIRELESS_STK_SIZE];3 s1 _4 D: ]! E$ r4 G4 [! e" N
- ( p- [8 |8 `2 o: V
- % @3 u' `, j6 g3 c! F8 [+ h
- OS_MEM MyPartition;3 {4 T5 H' H2 H. |- x* S- Q
- u8 MyPartitionStorage[MEMLIST_SIZE][DATA_BUFF_SIZE];" t8 _ M' Q" o0 e; F! `/ w' s0 D
, [* F3 i5 p8 ]" [- + ~/ g' f3 J( V0 y5 I" T. `
- OS_MUTEX Mutex_USART2;7 b( v" w; \3 k6 D) L
' K% U* y$ l- [6 e `- OS_Q Q_GSMResponse;" Q; ^7 n' \, h3 v, @2 F: o
/ z. S- W) h3 K; n- h- OS_FLAG_GRP MessageFlagGrp;
2 p$ ] f! ?2 g - OS_FLAG_GRP PhoneFlagGrp;8 L+ f4 A$ A7 n7 r. q0 h& B" A' E
- OS_FLAG_GRP GPRSFlagGrp;* }" A2 ~' j n! \4 V( v
- 9 I1 _6 N: T3 I% A# s- U
- OS_TMR MyTmr1;
- n& B0 T6 K" i1 c - . s' s+ D2 B, t* ^0 s
6 C8 ^* C* V3 m4 e3 C" p; H- w- : H4 _8 u* _ m( g
- : W0 w: @- ]" r& U" b( C
5 x# D4 M$ g3 C8 M7 |: V9 B
复制代码
0 l$ i2 @; C, s4 L! b v% v3 P/ ~) x+ C- ~2 B
|
没办法啊 ram不够用 所以要用到外部运存,这就要用到stm32的fomc的地址线 只有Z以上的才有
手表嘛。。8位口模拟下就差不多了吧,不然肯定 是太大或者太厚