新手上路
- 积分
- 22
- 金钱
- 22
- 注册时间
- 2023-2-28
- 在线时间
- 3 小时
|
1金钱
原子哥,我在按照教程学习原子操作时候,发现一个问题,当我应用程序起来控制LED程序进入while(1)睡眠25S的,时候,调试端口输入信息全是乱码,当跳出25s睡眠之后,调试端口又能正常运行,能帮忙看看这个问题吗?
/lib/modules/4.1.15 # ./test_atomic_app /dev/led_atomic 0
write new led state: 0
^[[A
^[[A^[[A^[[A^[[A^[[A^[[A^[[AApp running times:1
^[[A^[[A^[[A^[[A^[[A^[[A^[[A^[[A^[[A^[[A^[[A^[[A^[[A^[[A^[[A^[[A^[[A^[[A^[[A^[[A^[[A^[[A^[[A^[[AApp running times:2
^[[A^[[A^[[A^[[A^[[A^[[A^[[A^[[A^[[A^[[A^[[A^[[A^[[A^[[A^[[A^[[A^[[A^[[A^[[A^[[A^[[A^[[A^[[A^[[A^[[A^[[A^[[A^[[A^[[AApp running times:3
^[[A^[[AApp running times:4
atomic release! :5
App running finished!/lib/modules/4.1.15 #
/lib/modules/4.1.15 #
/lib/modules/4.1.15 # ./test_atomic_app /dev/led_atomic 0
write new led state: 0
App running times:1
App running times:2
|
|