01 2022 档案

摘要:The Internet Protocol is not designed to be absolutely reliable. The purpose of these control messages is to provide feedback about problems in the co 阅读全文
posted @ 2022-01-21 18:06 panrui 阅读(54) 评论(0) 推荐(0)
摘要:1、不要假设发送一定能够成功。所以还需要有返回值指示状态。 2、状态机必须要使用 3、同步和异步的使用。 4、为了简化代码,相同类似逻辑的代码可以形成同一种模式,在C语言中大量使用函数指针来完成类似重复的工作。 阅读全文
posted @ 2022-01-19 22:12 panrui 阅读(111) 评论(0) 推荐(0)
摘要:可以从IAR的菜单 Help -> Content 中找到帮助内容。 避免从网络上搜索资料的比较散碎尴尬。 需求: 在IAR编译中,将一段未被引用的变量或者说结构体放在FLASH中,这段区域肯定是read-only,同时也是const的。 在C代码中使用:#pragma location=".cc_ 阅读全文
posted @ 2022-01-05 11:02 panrui 阅读(587) 评论(0) 推荐(0)