02 2017 档案

摘要:主要参考:an736.pdf http://files.cnblogs.com/files/tinyos/an736.pdf 详细调试笔记链接 http://files.cnblogs.com/files/tinyos/XIP.pdf 阅读全文
posted @ 2017-02-27 12:37 未命名blogs 阅读(461) 评论(0) 推荐(0)
摘要:1 #if !defined(__PRIMITIVESOCKET_H__) 2 #define __PRIMITIVESOCKET_H__ 3 4 #include 5 6 #define WM_SOCKET (WM_USER + 100) 7 8 int CommonLib_IsValidIP(char* pstr ); 9 char* Common... 阅读全文
posted @ 2017-02-21 11:38 未命名blogs 阅读(258) 评论(0) 推荐(0)
摘要:#include "tim4.h"#include "stm8s_tim4.h" #define TIM4_PERIOD 124 void Dely1ms(void){ TIM4_DeInit(); /* Time base configuration */ // 8M/64=125000HZ // 阅读全文
posted @ 2017-02-12 23:29 未命名blogs 阅读(1844) 评论(0) 推荐(0)
摘要:STM8S的时钟配置通过:CLK_CKDIVR寄存器,而CLK_CKDIVR一个是配置HSI分频,另一个是配置CPU的分频 static void CLK_Config(void){ CLK_DeInit(); /* Clock divider to HSI/1 */ CLK_HSIPrescale 阅读全文
posted @ 2017-02-12 11:42 未命名blogs 阅读(5876) 评论(0) 推荐(0)
摘要:STM8S上电后的时钟来源: /* Public functions *//** * @addtogroup CLK_Public_Functions * @{ */ /** * @brief Deinitializes the CLK peripheral registers to their d 阅读全文
posted @ 2017-02-12 11:24 未命名blogs 阅读(1092) 评论(0) 推荐(0)