STM32获取北斗gps双模传感器数据+oled显示

CV工程师1001ZIPGPS.zip  6.62MB

资源文件列表:

ZIP GPS.zip 大约有201个文件
  1. DebugConfig/
  2. DebugConfig/Target_1_STM32F103C8.dbgconf 6.79KB
  3. DebugConfig/Target_1_STM32F103C8_1.0.0.dbgconf 6.79KB
  4. Hardware/
  5. Hardware/Key.c 1.74KB
  6. Hardware/Key.h 95B
  7. Hardware/LED.c 2.53KB
  8. Hardware/LED.h 200B
  9. Hardware/OLED.c 7.72KB
  10. Hardware/OLED.h 567B
  11. Hardware/OLED_Font.h 8.94KB
  12. Hardware/sys.c 163B
  13. Hardware/sys.h 2.18KB
  14. Hardware/usart.c 5.59KB
  15. Hardware/usart.h 1.52KB
  16. keilkill.bat 399B
  17. Library/
  18. Library/misc.c 6.88KB
  19. Library/misc.h 8.77KB
  20. Library/stm32f10x_adc.c 46.09KB
  21. Library/stm32f10x_adc.h 21.18KB
  22. Library/stm32f10x_bkp.c 8.26KB
  23. Library/stm32f10x_bkp.h 7.38KB
  24. Library/stm32f10x_can.c 44.05KB
  25. Library/stm32f10x_can.h 26.91KB
  26. Library/stm32f10x_cec.c 11.38KB
  27. Library/stm32f10x_cec.h 6.42KB
  28. Library/stm32f10x_crc.c 3.27KB
  29. Library/stm32f10x_crc.h 2.11KB
  30. Library/stm32f10x_dac.c 18.64KB
  31. Library/stm32f10x_dac.h 14.88KB
  32. Library/stm32f10x_dbgmcu.c 5.03KB
  33. Library/stm32f10x_dbgmcu.h 3.73KB
  34. Library/stm32f10x_dma.c 28.91KB
  35. Library/stm32f10x_dma.h 20.27KB
  36. Library/stm32f10x_exti.c 6.8KB
  37. Library/stm32f10x_exti.h 6.66KB
  38. Library/stm32f10x_flash.c 61.08KB
  39. Library/stm32f10x_flash.h 24.85KB
  40. Library/stm32f10x_fsmc.c 34.65KB
  41. Library/stm32f10x_fsmc.h 26.38KB
  42. Library/stm32f10x_gpio.c 22.68KB
  43. Library/stm32f10x_gpio.h 19.7KB
  44. Library/stm32f10x_i2c.c 44.71KB
  45. Library/stm32f10x_i2c.h 29.33KB
  46. Library/stm32f10x_iwdg.c 4.8KB
  47. Library/stm32f10x_iwdg.h 3.74KB
  48. Library/stm32f10x_pwr.c 8.55KB
  49. Library/stm32f10x_pwr.h 4.28KB
  50. Library/stm32f10x_rcc.c 50.07KB
  51. Library/stm32f10x_rcc.h 29.74KB
  52. Library/stm32f10x_rtc.c 8.4KB
  53. Library/stm32f10x_rtc.h 3.77KB
  54. Library/stm32f10x_sdio.c 28.25KB
  55. Library/stm32f10x_sdio.h 21.35KB
  56. Library/stm32f10x_spi.c 29.52KB
  57. Library/stm32f10x_spi.h 17.31KB
  58. Library/stm32f10x_tim.c 106.6KB
  59. Library/stm32f10x_tim.h 51.2KB
  60. Library/stm32f10x_usart.c 37.41KB
  61. Library/stm32f10x_usart.h 16.16KB
  62. Library/stm32f10x_wwdg.c 5.6KB
  63. Library/stm32f10x_wwdg.h 2.9KB
  64. Listings/
  65. Listings/Project.map 129.74KB
  66. Listings/startup_stm32f10x_md.lst 39.52KB
  67. Objects/
  68. Objects/core_cm3.crf 3.86KB
  69. Objects/core_cm3.d 117B
  70. Objects/core_cm3.o 10.9KB
  71. Objects/delay.crf 338.12KB
  72. Objects/delay.d 1.35KB
  73. Objects/delay.o 370.48KB
  74. Objects/key.crf 338.48KB
  75. Objects/key.d 1.32KB
  76. Objects/key.o 370.38KB
  77. Objects/led.crf 338.58KB
  78. Objects/led.d 1.29KB
  79. Objects/led.o 375.57KB
  80. Objects/main.crf 352.67KB
  81. Objects/main.d 1.67KB
  82. Objects/main.o 386.26KB
  83. Objects/misc.crf 338.79KB
  84. Objects/misc.d 1.35KB
  85. Objects/misc.o 373.46KB
  86. Objects/oled.crf 341.4KB
  87. Objects/oled.d 1.36KB
  88. Objects/oled.o 393.53KB
  89. Objects/Project.axf 326.75KB
  90. Objects/Project.build_log.htm 2.57KB
  91. Objects/Project.htm 55.13KB
  92. Objects/Project.lnp 1.19KB
  93. Objects/Project.sct 479B
  94. Objects/Project_Target 1.dep 57.38KB
  95. Objects/startup_stm32f10x_md.d 64B
  96. Objects/startup_stm32f10x_md.o 5.71KB
  97. Objects/stm32f10x_adc.crf 345.8KB
  98. Objects/stm32f10x_adc.d 1.64KB
  99. Objects/stm32f10x_adc.o 418.45KB
  100. Objects/stm32f10x_bkp.crf 339.71KB
  101. Objects/stm32f10x_bkp.d 1.64KB
  102. Objects/stm32f10x_bkp.o 382.86KB
  103. Objects/stm32f10x_can.crf 347.37KB
  104. Objects/stm32f10x_can.d 1.64KB
  105. Objects/stm32f10x_can.o 404.34KB
  106. Objects/stm32f10x_cec.crf 340.25KB
  107. Objects/stm32f10x_cec.d 1.64KB
  108. Objects/stm32f10x_cec.o 385.36KB
  109. Objects/stm32f10x_crc.crf 338.36KB
  110. Objects/stm32f10x_crc.d 1.64KB
  111. Objects/stm32f10x_crc.o 374.43KB
  112. Objects/stm32f10x_dac.crf 340.38KB
  113. Objects/stm32f10x_dac.d 1.64KB
  114. Objects/stm32f10x_dac.o 383.5KB
  115. Objects/stm32f10x_dbgmcu.crf 338.15KB
  116. Objects/stm32f10x_dbgmcu.d 1.74KB
  117. Objects/stm32f10x_dbgmcu.o 370.68KB
  118. Objects/stm32f10x_dma.crf 341.83KB
  119. Objects/stm32f10x_dma.d 1.64KB
  120. Objects/stm32f10x_dma.o 383.01KB
  121. Objects/stm32f10x_exti.crf 339.34KB
  122. Objects/stm32f10x_exti.d 1.67KB
  123. Objects/stm32f10x_exti.o 377.37KB
  124. Objects/stm32f10x_flash.crf 345.64KB
  125. Objects/stm32f10x_flash.d 1.71KB
  126. Objects/stm32f10x_flash.o 407.82KB
  127. Objects/stm32f10x_fsmc.crf 344.18KB
  128. Objects/stm32f10x_fsmc.d 1.67KB
  129. Objects/stm32f10x_fsmc.o 393.95KB
  130. Objects/stm32f10x_gpio.crf 342.21KB
  131. Objects/stm32f10x_gpio.d 1.67KB
  132. Objects/stm32f10x_gpio.o 392.84KB
  133. Objects/stm32f10x_i2c.crf 344.58KB
  134. Objects/stm32f10x_i2c.d 1.64KB
  135. Objects/stm32f10x_i2c.o 412.82KB
  136. Objects/stm32f10x_it.crf 338.28KB
  137. Objects/stm32f10x_it.d 1.6KB
  138. Objects/stm32f10x_it.o 377.99KB
  139. Objects/stm32f10x_iwdg.crf 338.46KB
  140. Objects/stm32f10x_iwdg.d 1.67KB
  141. Objects/stm32f10x_iwdg.o 374.4KB
  142. Objects/stm32f10x_pwr.crf 339.62KB
  143. Objects/stm32f10x_pwr.d 1.64KB
  144. Objects/stm32f10x_pwr.o 378.92KB
  145. Objects/stm32f10x_rcc.crf 345.7KB
  146. Objects/stm32f10x_rcc.d 1.64KB
  147. Objects/stm32f10x_rcc.o 411.6KB
  148. Objects/stm32f10x_rtc.crf 339.62KB
  149. Objects/stm32f10x_rtc.d 1.64KB
  150. Objects/stm32f10x_rtc.o 384.91KB
  151. Objects/stm32f10x_sdio.crf 342.81KB
  152. Objects/stm32f10x_sdio.d 1.67KB
  153. Objects/stm32f10x_sdio.o 406.59KB
  154. Objects/stm32f10x_spi.crf 342.67KB
  155. Objects/stm32f10x_spi.d 1.64KB
  156. Objects/stm32f10x_spi.o 399.02KB
  157. Objects/stm32f10x_tim.crf 360.36KB
  158. Objects/stm32f10x_tim.d 1.64KB
  159. Objects/stm32f10x_tim.o 493.75KB
  160. Objects/stm32f10x_usart.crf 344.27KB
  161. Objects/stm32f10x_usart.d 1.71KB
  162. Objects/stm32f10x_usart.o 407.84KB
  163. Objects/stm32f10x_wwdg.crf 338.9KB
  164. Objects/stm32f10x_wwdg.d 1.67KB
  165. Objects/stm32f10x_wwdg.o 377.2KB
  166. Objects/sys.crf 338.91KB
  167. Objects/sys.d 1.32KB
  168. Objects/sys.o 369.91KB
  169. Objects/system_stm32f10x.crf 339.94KB
  170. Objects/system_stm32f10x.d 1.67KB
  171. Objects/system_stm32f10x.o 372.82KB
  172. Objects/usart.crf 347.53KB
  173. Objects/usart.d 1.56KB
  174. Objects/usart.o 384.07KB
  175. Project.uvguix.Admin 87.48KB
  176. Project.uvguix.xiang 87.14KB
  177. Project.uvguix.YML 89.67KB
  178. Project.uvoptx 31.41KB
  179. Project.uvprojx 26.07KB
  180. Start/
  181. Start/core_cm3.c 16.87KB
  182. Start/core_cm3.h 83.71KB
  183. Start/startup_stm32f10x_cl.s 15.4KB
  184. Start/startup_stm32f10x_hd.s 15.14KB
  185. Start/startup_stm32f10x_hd_vl.s 15.32KB
  186. Start/startup_stm32f10x_ld.s 12.09KB
  187. Start/startup_stm32f10x_ld_vl.s 13.34KB
  188. Start/startup_stm32f10x_md.s 12.47KB
  189. Start/startup_stm32f10x_md_vl.s 13.74KB
  190. Start/startup_stm32f10x_xl.s 15.58KB
  191. Start/stm32f10x.h 619.08KB
  192. Start/system_stm32f10x.c 35.7KB
  193. Start/system_stm32f10x.h 2.04KB
  194. System/
  195. System/Delay.c 838B
  196. System/Delay.h 135B
  197. User/
  198. User/main.c 3.64KB
  199. User/stm32f10x_conf.h 3.18KB
  200. User/stm32f10x_it.c 4.3KB
  201. User/stm32f10x_it.h 2.04KB

资源介绍:

stm32f103c8t6接受gps信息,oled显示经纬度

/** ****************************************************************************** * @file stm32f10x_tim.c * @author MCD Application Team * @version V3.5.0 * @date 11-March-2011 * @brief This file provides all the TIM firmware functions. ****************************************************************************** * @attention * * THE PRESENT FIRMWARE WHICH IS FOR GUIDANCE ONLY AIMS AT PROVIDING CUSTOMERS * WITH CODING INFORMATION REGARDING THEIR PRODUCTS IN ORDER FOR THEM TO SAVE * TIME. AS A RESULT, STMICROELECTRONICS SHALL NOT BE HELD LIABLE FOR ANY * DIRECT, INDIRECT OR CONSEQUENTIAL DAMAGES WITH RESPECT TO ANY CLAIMS ARISING * FROM THE CONTENT OF SUCH FIRMWARE AND/OR THE USE MADE BY CUSTOMERS OF THE * CODING INFORMATION CONTAINED HEREIN IN CONNECTION WITH THEIR PRODUCTS. * * <h2><center>© COPYRIGHT 2011 STMicroelectronics</center></h2> ****************************************************************************** */ /* Includes ------------------------------------------------------------------*/ #include "stm32f10x_tim.h" #include "stm32f10x_rcc.h" /** @addtogroup STM32F10x_StdPeriph_Driver * @{ */ /** @defgroup TIM * @brief TIM driver modules * @{ */ /** @defgroup TIM_Private_TypesDefinitions * @{ */ /** * @} */ /** @defgroup TIM_Private_Defines * @{ */ /* ---------------------- TIM registers bit mask ------------------------ */ #define SMCR_ETR_Mask ((uint16_t)0x00FF) #define CCMR_Offset ((uint16_t)0x0018) #define CCER_CCE_Set ((uint16_t)0x0001) #define CCER_CCNE_Set ((uint16_t)0x0004) /** * @} */ /** @defgroup TIM_Private_Macros * @{ */ /** * @} */ /** @defgroup TIM_Private_Variables * @{ */ /** * @} */ /** @defgroup TIM_Private_FunctionPrototypes * @{ */ static void TI1_Config(TIM_TypeDef* TIMx, uint16_t TIM_ICPolarity, uint16_t TIM_ICSelection, uint16_t TIM_ICFilter); static void TI2_Config(TIM_TypeDef* TIMx, uint16_t TIM_ICPolarity, uint16_t TIM_ICSelection, uint16_t TIM_ICFilter); static void TI3_Config(TIM_TypeDef* TIMx, uint16_t TIM_ICPolarity, uint16_t TIM_ICSelection, uint16_t TIM_ICFilter); static void TI4_Config(TIM_TypeDef* TIMx, uint16_t TIM_ICPolarity, uint16_t TIM_ICSelection, uint16_t TIM_ICFilter); /** * @} */ /** @defgroup TIM_Private_Macros * @{ */ /** * @} */ /** @defgroup TIM_Private_Variables * @{ */ /** * @} */ /** @defgroup TIM_Private_FunctionPrototypes * @{ */ /** * @} */ /** @defgroup TIM_Private_Functions * @{ */ /** * @brief Deinitializes the TIMx peripheral registers to their default reset values. * @param TIMx: where x can be 1 to 17 to select the TIM peripheral. * @retval None */ void TIM_DeInit(TIM_TypeDef* TIMx) { /* Check the parameters */ assert_param(IS_TIM_ALL_PERIPH(TIMx)); if (TIMx == TIM1) { RCC_APB2PeriphResetCmd&#40;RCC_APB2Periph_TIM1, ENABLE&#41;; RCC_APB2PeriphResetCmd&#40;RCC_APB2Periph_TIM1, DISABLE&#41;; } else if (TIMx == TIM2) { RCC_APB1PeriphResetCmd&#40;RCC_APB1Periph_TIM2, ENABLE&#41;; RCC_APB1PeriphResetCmd&#40;RCC_APB1Periph_TIM2, DISABLE&#41;; } else if (TIMx == TIM3) { RCC_APB1PeriphResetCmd&#40;RCC_APB1Periph_TIM3, ENABLE&#41;; RCC_APB1PeriphResetCmd&#40;RCC_APB1Periph_TIM3, DISABLE&#41;; } else if (TIMx == TIM4) { RCC_APB1PeriphResetCmd&#40;RCC_APB1Periph_TIM4, ENABLE&#41;; RCC_APB1PeriphResetCmd&#40;RCC_APB1Periph_TIM4, DISABLE&#41;; } else if (TIMx == TIM5) { RCC_APB1PeriphResetCmd&#40;RCC_APB1Periph_TIM5, ENABLE&#41;; RCC_APB1PeriphResetCmd&#40;RCC_APB1Periph_TIM5, DISABLE&#41;; } else if (TIMx == TIM6) { RCC_APB1PeriphResetCmd&#40;RCC_APB1Periph_TIM6, ENABLE&#41;; RCC_APB1PeriphResetCmd&#40;RCC_APB1Periph_TIM6, DISABLE&#41;; } else if (TIMx == TIM7) { RCC_APB1PeriphResetCmd&#40;RCC_APB1Periph_TIM7, ENABLE&#41;; RCC_APB1PeriphResetCmd&#40;RCC_APB1Periph_TIM7, DISABLE&#41;; } else if (TIMx == TIM8) { RCC_APB2PeriphResetCmd&#40;RCC_APB2Periph_TIM8, ENABLE&#41;; RCC_APB2PeriphResetCmd&#40;RCC_APB2Periph_TIM8, DISABLE&#41;; } else if (TIMx == TIM9) { RCC_APB2PeriphResetCmd&#40;RCC_APB2Periph_TIM9, ENABLE&#41;; RCC_APB2PeriphResetCmd&#40;RCC_APB2Periph_TIM9, DISABLE&#41;; } else if (TIMx == TIM10) { RCC_APB2PeriphResetCmd&#40;RCC_APB2Periph_TIM10, ENABLE&#41;; RCC_APB2PeriphResetCmd&#40;RCC_APB2Periph_TIM10, DISABLE&#41;; } else if (TIMx == TIM11) { RCC_APB2PeriphResetCmd&#40;RCC_APB2Periph_TIM11, ENABLE&#41;; RCC_APB2PeriphResetCmd&#40;RCC_APB2Periph_TIM11, DISABLE&#41;; } else if (TIMx == TIM12) { RCC_APB1PeriphResetCmd&#40;RCC_APB1Periph_TIM12, ENABLE&#41;; RCC_APB1PeriphResetCmd&#40;RCC_APB1Periph_TIM12, DISABLE&#41;; } else if (TIMx == TIM13) { RCC_APB1PeriphResetCmd&#40;RCC_APB1Periph_TIM13, ENABLE&#41;; RCC_APB1PeriphResetCmd&#40;RCC_APB1Periph_TIM13, DISABLE&#41;; } else if (TIMx == TIM14) { RCC_APB1PeriphResetCmd&#40;RCC_APB1Periph_TIM14, ENABLE&#41;; RCC_APB1PeriphResetCmd&#40;RCC_APB1Periph_TIM14, DISABLE&#41;; } else if (TIMx == TIM15) { RCC_APB2PeriphResetCmd&#40;RCC_APB2Periph_TIM15, ENABLE&#41;; RCC_APB2PeriphResetCmd&#40;RCC_APB2Periph_TIM15, DISABLE&#41;; } else if (TIMx == TIM16) { RCC_APB2PeriphResetCmd&#40;RCC_APB2Periph_TIM16, ENABLE&#41;; RCC_APB2PeriphResetCmd&#40;RCC_APB2Periph_TIM16, DISABLE&#41;; } else { if (TIMx == TIM17) { RCC_APB2PeriphResetCmd&#40;RCC_APB2Periph_TIM17, ENABLE&#41;; RCC_APB2PeriphResetCmd&#40;RCC_APB2Periph_TIM17, DISABLE&#41;; } } } /** * @brief Initializes the TIMx Time Base Unit peripheral according to * the specified parameters in the TIM_TimeBaseInitStruct. * @param TIMx: where x can be 1 to 17 to select the TIM peripheral. * @param TIM_TimeBaseInitStruct: pointer to a TIM_TimeBaseInitTypeDef * structure that contains the configuration information for the * specified TIM peripheral. * @retval None */ void TIM_TimeBaseInit(TIM_TypeDef* TIMx, TIM_TimeBaseInitTypeDef* TIM_TimeBaseInitStruct) { uint16_t tmpcr1 = 0; /* Check the parameters */ assert_param(IS_TIM_ALL_PERIPH(TIMx)); assert_param(IS_TIM_COUNTER_MODE(TIM_TimeBaseInitStruct->TIM_CounterMode)); assert_param(IS_TIM_CKD_DIV(TIM_TimeBaseInitStruct->TIM_ClockDivision)); tmpcr1 = TIMx->CR1; if((TIMx == TIM1) || (TIMx == TIM8)|| (TIMx == TIM2) || (TIMx == TIM3)|| (TIMx == TIM4) || (TIMx == TIM5)) { /* Select the Counter Mode */ tmpcr1 &= (uint16_t)(~((uint16_t)(TIM_CR1_DIR | TIM_CR1_CMS))); tmpcr1 |= (uint32_t)TIM_TimeBaseInitStruct->TIM_CounterMode; } if((TIMx != TIM6) && (TIMx != TIM7)) { /* Set the clock division */ tmpcr1 &= (uint16_t)(~((uint16_t)TIM_CR1_CKD)); tmpcr1 |= (uint32_t)TIM_TimeBaseInitStruct->TIM_ClockDivision; } TIMx->CR1 = tmpcr1; /* Set the Autoreload value */ TIMx->ARR = TIM_TimeBaseInitStruct->TIM_Period ; /* Set the Prescaler value */ TIMx->PSC = TIM_TimeBaseInitStruct->TIM_Prescaler; if ((TIMx == TIM1) || (TIMx == TIM8)|| (TIMx == TIM15)|| (TIMx == TIM16) || (TIMx == TIM17)) { /* Set the Repetition Counter value */ TIMx->RCR = TIM_TimeBaseInitStruct->TIM_RepetitionCounter; } /* Generate an update event to reload the Prescaler and the Repetition counter values immediately */ TIMx->EGR = TIM_PSCReloadMode_Immediate; } /** * @brief Initializes the TIMx Channel1 according to the specified * parameters in the TIM_OCInitStruct. * @param TIMx: where x can be 1 to 17 except 6 and 7 to select the TIM peripheral. * @param TIM_OCInitStru
100+评论
captcha