摘要: 1·,下载逍遥安卓模拟器。 2,运行模拟器。 3,设置模拟器开发者选项并允许调试应用。 3,找到android sdk目录下的adb所在目录,并添加到PATH环境变量。 4,运行cmd,输入adb connect 127.0.0.1:21503 阅读全文
posted @ 2018-08-08 18:10 lort 阅读(1005) 评论(0) 推荐(0) 编辑
摘要: /* * DBG.c * * Created on: 2018年4月10日 * Author: Administrator */ #include #include "osType.h" #include "osDBG.h" #include "osLibc.h" #include "MT_Uart.h" #define DBG_UART_FIFO 0... 阅读全文
posted @ 2018-04-10 18:23 lort 阅读(242) 评论(0) 推荐(0) 编辑
摘要: #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include ... 阅读全文
posted @ 2018-04-10 18:22 lort 阅读(227) 评论(0) 推荐(0) 编辑
摘要: /* ============================================================================ Name : test.c Author : Version : Copyright : Your copyright notice Description : Hello World i... 阅读全文
posted @ 2017-10-20 19:40 lort 阅读(1348) 评论(0) 推荐(1) 编辑
摘要: static int hal_readSector(uint32 sec, uint32 *pdata) { uint32 saddr; int i; saddr = (defStartSector+sec)*defSectorSize; for(i=0;iACR&=~(1ACR|=1<<10; //FLASH enable code fetch ... 阅读全文
posted @ 2017-04-13 14:44 lort 阅读(1072) 评论(0) 推荐(0) 编辑
摘要: #include "Type.h" #include "IIC.h" #include "Delay.h" void I2C_Init(void) { GPIO_InitTypeDef GPIO_InitStructer; RCC_APB2PeriphClockCmd(RCC_APB2Periph_GPIOB, ENABLE); GPIO_InitStructer.GPI... 阅读全文
posted @ 2017-01-03 16:57 lort 阅读(378) 评论(0) 推荐(0) 编辑
摘要: 每次唤醒AWU 中断标志一定要清除 执行asm("halt")后CPU停机,停机之前要把所有耗电的功能全部关闭。 唤醒之后将执行asm("halt")之后的语句,而不是从main()开始 阅读全文
posted @ 2016-09-08 16:52 lort 阅读(3194) 评论(0) 推荐(0) 编辑
摘要: 在工程属性-->链接器-->添加以下库 open 打开,close 关闭,打开后将获得reader 与writer 的handle,分别进行读写即可 阅读全文
posted @ 2016-09-08 11:59 lort 阅读(7144) 评论(0) 推荐(0) 编辑
摘要: /* * jf_timer.h * * Created on: Aug 20, 2016 * Author: lort */ #ifndef JF_OS_JF_TIMER_H_ #define JF_OS_JF_TIMER_H_ #include "jf_types.h" typedef void (*time_fuc_t) (void *param); typed... 阅读全文
posted @ 2016-08-20 14:32 lort 阅读(207) 评论(0) 推荐(0) 编辑
摘要: 可以用printf()做串口打印输出 这个功能非常简单,首先在工程管理下的preprocessor把串口打开HAL_UART=TRUE。 然后看我的npi.c文件,多了什么自己琢磨,懒点的就直接复制吧: 再看头文件npi.h: 再再然后hal_driver.c下修改: void HalDriverI 阅读全文
posted @ 2016-08-09 15:01 lort 阅读(1659) 评论(0) 推荐(0) 编辑