随笔分类 -  STM32代码

摘要:异常类型 1-15 是系统异常,大于等于 16 是外部中断。 ![image](https://img2023.cnblogs.com/blog/2239641/202307/2239641-20230707204016487-835645434.png) ![image](https://img2 阅读全文
posted @ 2023-07-12 20:44 登云上人间 阅读(161) 评论(0) 推荐(0)
摘要:变量 __align(8) u8 PubMsgTopic1[256] = "AT+CLOUDPUB=\"/sys/xxx/xxx/thing/event/property/post\",1,\"{"; __align(8) u8 PubMsgTopic2[256] = ",\\22id\\22:\\ 阅读全文
posted @ 2023-05-11 01:12 登云上人间 阅读(71) 评论(0) 推荐(0)
摘要:typedef int32_t s32; typedef int16_t s16; typedef int8_t s8; typedef const int32_t sc32; typedef const int16_t sc16; typedef const int8_t sc8; typedef 阅读全文
posted @ 2023-05-11 01:06 登云上人间 阅读(14) 评论(0) 推荐(0)
摘要:一、stm32cubeMX配置 1.1 GPIO配置 略.... 1.2 USART配置 见其他.... 二、代码 变量 //获取RSSI char *strx; char *str_xx=",-"; char *loc; char *token; int RSSI=0; 2.1 无线模块配置 vo 阅读全文
posted @ 2023-05-11 01:05 登云上人间 阅读(196) 评论(0) 推荐(0)
摘要:一、stm32cubeMX配置 二、代码 定时器回调函数 void HAL_TIM_PeriodElapsedCallback(TIM_HandleTypeDef *htim) { if (htim == (&htim3)) { } else if (htim == (&htim2)) { } } 阅读全文
posted @ 2023-05-11 00:37 登云上人间 阅读(50) 评论(0) 推荐(1)
摘要:一、stm32cubeMX配置 二、函数配置 2.1 串口接收回调函数 /** * @brief Rx传输回调函数 * @param huart: UART句柄类型指针 * @retval 无 */ void HAL_UART_RxCpltCallback(UART_HandleTypeDef *h 阅读全文
posted @ 2023-05-11 00:16 登云上人间 阅读(228) 评论(0) 推荐(0)