首页下载资源操作系统stm32f103c8t6 硬件spi驱动st7789v

ZIPstm32f103c8t6 硬件spi驱动st7789v

m0_689192747.32MB需要积分:1

资源文件列表:

stm32f103c8t6硬件spi驱动st7789v.zip 大约有218个文件
  1. DebugConfig/
  2. DebugConfig/Target_1_STM32F103C8_1.0.0.dbgconf 6.79KB
  3. Hardware/
  4. Hardware/cfont.h 95.09KB
  5. Hardware/delay.c 7.74KB
  6. Hardware/delay.h 1.94KB
  7. Hardware/Key.c 612B
  8. Hardware/Key.h 93B
  9. Hardware/lcd.c 26.08KB
  10. Hardware/lcd.h 4.45KB
  11. Hardware/Led.c 1005B
  12. Hardware/Led.h 107B
  13. Hardware/OLED.c 7.72KB
  14. Hardware/OLED.h 567B
  15. Hardware/OLED_Font.h 8.94KB
  16. Hardware/spi.c 4.88KB
  17. Hardware/spi.h 732B
  18. Hardware/sys.c 872B
  19. Hardware/sys.h 2.74KB
  20. Hardware/usart2.c 11.5KB
  21. Hardware/usart2.h 1.75KB
  22. Library/
  23. Library/misc.c 6.88KB
  24. Library/misc.h 8.77KB
  25. Library/stm32f10x_adc.c 46.09KB
  26. Library/stm32f10x_adc.h 21.18KB
  27. Library/stm32f10x_bkp.c 8.26KB
  28. Library/stm32f10x_bkp.h 7.38KB
  29. Library/stm32f10x_can.c 44.05KB
  30. Library/stm32f10x_can.h 26.91KB
  31. Library/stm32f10x_cec.c 11.38KB
  32. Library/stm32f10x_cec.h 6.42KB
  33. Library/stm32f10x_crc.c 3.27KB
  34. Library/stm32f10x_crc.h 2.11KB
  35. Library/stm32f10x_dac.c 18.64KB
  36. Library/stm32f10x_dac.h 14.88KB
  37. Library/stm32f10x_dbgmcu.c 5.03KB
  38. Library/stm32f10x_dbgmcu.h 3.73KB
  39. Library/stm32f10x_dma.c 28.91KB
  40. Library/stm32f10x_dma.h 20.27KB
  41. Library/stm32f10x_exti.c 6.8KB
  42. Library/stm32f10x_exti.h 6.66KB
  43. Library/stm32f10x_flash.c 61.08KB
  44. Library/stm32f10x_flash.h 24.85KB
  45. Library/stm32f10x_fsmc.c 34.65KB
  46. Library/stm32f10x_fsmc.h 26.38KB
  47. Library/stm32f10x_gpio.c 22.68KB
  48. Library/stm32f10x_gpio.h 19.7KB
  49. Library/stm32f10x_i2c.c 44.71KB
  50. Library/stm32f10x_i2c.h 29.33KB
  51. Library/stm32f10x_iwdg.c 4.8KB
  52. Library/stm32f10x_iwdg.h 3.74KB
  53. Library/stm32f10x_pwr.c 8.55KB
  54. Library/stm32f10x_pwr.h 4.28KB
  55. Library/stm32f10x_rcc.c 50.07KB
  56. Library/stm32f10x_rcc.h 29.74KB
  57. Library/stm32f10x_rtc.c 8.4KB
  58. Library/stm32f10x_rtc.h 3.77KB
  59. Library/stm32f10x_sdio.c 28.25KB
  60. Library/stm32f10x_sdio.h 21.35KB
  61. Library/stm32f10x_spi.c 29.52KB
  62. Library/stm32f10x_spi.h 17.31KB
  63. Library/stm32f10x_tim.c 106.6KB
  64. Library/stm32f10x_tim.h 51.2KB
  65. Library/stm32f10x_usart.c 37.41KB
  66. Library/stm32f10x_usart.h 16.16KB
  67. Library/stm32f10x_wwdg.c 5.6KB
  68. Library/stm32f10x_wwdg.h 2.9KB
  69. Listings/
  70. Listings/project.map 122.56KB
  71. Listings/startup_stm32f10x_md.lst 40.47KB
  72. Objects/
  73. Objects/core_cm3.crf 3.85KB
  74. Objects/core_cm3.d 106B
  75. Objects/core_cm3.o 10.86KB
  76. Objects/delay.crf 338.11KB
  77. Objects/delay.d 1.34KB
  78. Objects/delay.o 371.1KB
  79. Objects/delay_1.crf 339.83KB
  80. Objects/delay_1.d 1.47KB
  81. Objects/delay_1.o 374.76KB
  82. Objects/key.crf 339.54KB
  83. Objects/key.d 1.35KB
  84. Objects/key.o 372.91KB
  85. Objects/lcd.crf 363.49KB
  86. Objects/lcd.d 1.6KB
  87. Objects/lcd.o 454.57KB
  88. Objects/led.crf 338.12KB
  89. Objects/led.d 1.28KB
  90. Objects/led.o 371.15KB
  91. Objects/main.__i 392B
  92. Objects/main.crf 339.11KB
  93. Objects/main.d 1.38KB
  94. Objects/main.o 369.28KB
  95. Objects/main_1.crf 353.97KB
  96. Objects/main_1.d 1.68KB
  97. Objects/main_1.o 379.67KB
  98. Objects/misc.crf 338.78KB
  99. Objects/misc.d 1.34KB
  100. Objects/misc.o 374.14KB
  101. Objects/oled.crf 341.39KB
  102. Objects/oled.d 1.35KB
  103. Objects/oled.o 394.5KB
  104. Objects/project.axf 314.14KB
  105. Objects/project.build_log.htm 1.58KB
  106. Objects/project.htm 45.57KB
  107. Objects/project.lnp 1.23KB
  108. Objects/project.sct 479B
  109. Objects/project_sct.Bak 494B
  110. Objects/project_Target 1.dep 60.68KB
  111. Objects/spi.crf 340.41KB
  112. Objects/spi.d 1.34KB
  113. Objects/spi.o 376.96KB
  114. Objects/startup_stm32f10x_md.d 64B
  115. Objects/startup_stm32f10x_md.o 5.87KB
  116. Objects/stm32f10x_adc.crf 345.79KB
  117. Objects/stm32f10x_adc.d 1.63KB
  118. Objects/stm32f10x_adc.o 419.85KB
  119. Objects/stm32f10x_bkp.crf 339.7KB
  120. Objects/stm32f10x_bkp.d 1.63KB
  121. Objects/stm32f10x_bkp.o 383.7KB
  122. Objects/stm32f10x_can.crf 347.36KB
  123. Objects/stm32f10x_can.d 1.63KB
  124. Objects/stm32f10x_can.o 405.48KB
  125. Objects/stm32f10x_cec.crf 340.24KB
  126. Objects/stm32f10x_cec.d 1.63KB
  127. Objects/stm32f10x_cec.o 386.25KB
  128. Objects/stm32f10x_crc.crf 338.35KB
  129. Objects/stm32f10x_crc.d 1.63KB
  130. Objects/stm32f10x_crc.o 375.12KB
  131. Objects/stm32f10x_dac.crf 340.37KB
  132. Objects/stm32f10x_dac.d 1.63KB
  133. Objects/stm32f10x_dac.o 384.33KB
  134. Objects/stm32f10x_dbgmcu.crf 338.14KB
  135. Objects/stm32f10x_dbgmcu.d 1.73KB
  136. Objects/stm32f10x_dbgmcu.o 371.3KB
  137. Objects/stm32f10x_dma.crf 341.82KB
  138. Objects/stm32f10x_dma.d 1.63KB
  139. Objects/stm32f10x_dma.o 383.82KB
  140. Objects/stm32f10x_exti.crf 339.33KB
  141. Objects/stm32f10x_exti.d 1.66KB
  142. Objects/stm32f10x_exti.o 378.11KB
  143. Objects/stm32f10x_flash.crf 345.63KB
  144. Objects/stm32f10x_flash.d 1.7KB
  145. Objects/stm32f10x_flash.o 409.04KB
  146. Objects/stm32f10x_fsmc.crf 344.17KB
  147. Objects/stm32f10x_fsmc.d 1.66KB
  148. Objects/stm32f10x_fsmc.o 394.95KB
  149. Objects/stm32f10x_gpio.crf 342.2KB
  150. Objects/stm32f10x_gpio.d 1.66KB
  151. Objects/stm32f10x_gpio.o 393.82KB
  152. Objects/stm32f10x_i2c.crf 344.57KB
  153. Objects/stm32f10x_i2c.d 1.63KB
  154. Objects/stm32f10x_i2c.o 414.15KB
  155. Objects/stm32f10x_it.crf 338.27KB
  156. Objects/stm32f10x_it.d 1.59KB
  157. Objects/stm32f10x_it.o 378.78KB
  158. Objects/stm32f10x_iwdg.crf 338.45KB
  159. Objects/stm32f10x_iwdg.d 1.66KB
  160. Objects/stm32f10x_iwdg.o 375.1KB
  161. Objects/stm32f10x_pwr.crf 339.61KB
  162. Objects/stm32f10x_pwr.d 1.63KB
  163. Objects/stm32f10x_pwr.o 379.68KB
  164. Objects/stm32f10x_rcc.crf 345.69KB
  165. Objects/stm32f10x_rcc.d 1.63KB
  166. Objects/stm32f10x_rcc.o 412.93KB
  167. Objects/stm32f10x_rtc.crf 339.61KB
  168. Objects/stm32f10x_rtc.d 1.63KB
  169. Objects/stm32f10x_rtc.o 385.8KB
  170. Objects/stm32f10x_sdio.crf 342.8KB
  171. Objects/stm32f10x_sdio.d 1.66KB
  172. Objects/stm32f10x_sdio.o 407.84KB
  173. Objects/stm32f10x_spi.crf 342.66KB
  174. Objects/stm32f10x_spi.d 1.63KB
  175. Objects/stm32f10x_spi.o 400.11KB
  176. Objects/stm32f10x_tim.crf 360.35KB
  177. Objects/stm32f10x_tim.d 1.63KB
  178. Objects/stm32f10x_tim.o 496.43KB
  179. Objects/stm32f10x_usart.crf 344.26KB
  180. Objects/stm32f10x_usart.d 1.7KB
  181. Objects/stm32f10x_usart.o 409.07KB
  182. Objects/stm32f10x_wwdg.crf 338.89KB
  183. Objects/stm32f10x_wwdg.d 1.66KB
  184. Objects/stm32f10x_wwdg.o 377.95KB
  185. Objects/sys.crf 339.04KB
  186. Objects/sys.d 1.31KB
  187. Objects/sys.o 374.39KB
  188. Objects/system_stm32f10x.crf 339.93KB
  189. Objects/system_stm32f10x.d 1.66KB
  190. Objects/system_stm32f10x.o 373.49KB
  191. Objects/usart2.crf 346.5KB
  192. Objects/usart2.d 1.5KB
  193. Objects/usart2.o 382.73KB
  194. project.uvguix.asus 91.16KB
  195. project.uvoptx 34.63KB
  196. project.uvprojx 27.55KB
  197. start/
  198. start/core_cm3.c 16.87KB
  199. start/core_cm3.h 83.71KB
  200. start/startup_stm32f10x_cl.s 15.4KB
  201. start/startup_stm32f10x_hd.s 15.14KB
  202. start/startup_stm32f10x_hd_vl.s 15.32KB
  203. start/startup_stm32f10x_ld.s 12.09KB
  204. start/startup_stm32f10x_ld_vl.s 13.34KB
  205. start/startup_stm32f10x_md.s 12.47KB
  206. start/startup_stm32f10x_md_vl.s 13.74KB
  207. start/startup_stm32f10x_xl.s 15.58KB
  208. start/stm32f10x.h 619.08KB
  209. start/system_stm32f10x.c 35.7KB
  210. start/system_stm32f10x.h 2.04KB
  211. sytem/
  212. sytem/Delay.c 838B
  213. sytem/Delay.h 135B
  214. user/
  215. user/main.c 269B
  216. user/stm32f10x_conf.h 3.18KB
  217. user/stm32f10x_it.c 4.3KB
  218. user/stm32f10x_it.h 2.04KB

资源介绍:

使用标准库stm32f103c8t6 硬件spi驱动st7789v,下载keil编译直接使用
/** ****************************************************************************** * @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. * *

© COPYRIGHT 2011 STMicroelectronics

****************************************************************************** */ /* 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(RCC_APB2Periph_TIM1, ENABLE); RCC_APB2PeriphResetCmd(RCC_APB2Periph_TIM1, DISABLE); } else if (TIMx == TIM2) { RCC_APB1PeriphResetCmd(RCC_APB1Periph_TIM2, ENABLE); RCC_APB1PeriphResetCmd(RCC_APB1Periph_TIM2, DISABLE); } else if (TIMx == TIM3) { RCC_APB1PeriphResetCmd(RCC_APB1Periph_TIM3, ENABLE); RCC_APB1PeriphResetCmd(RCC_APB1Periph_TIM3, DISABLE); } else if (TIMx == TIM4) { RCC_APB1PeriphResetCmd(RCC_APB1Periph_TIM4, ENABLE); RCC_APB1PeriphResetCmd(RCC_APB1Periph_TIM4, DISABLE); } else if (TIMx == TIM5) { RCC_APB1PeriphResetCmd(RCC_APB1Periph_TIM5, ENABLE); RCC_APB1PeriphResetCmd(RCC_APB1Periph_TIM5, DISABLE); } else if (TIMx == TIM6) { RCC_APB1PeriphResetCmd(RCC_APB1Periph_TIM6, ENABLE); RCC_APB1PeriphResetCmd(RCC_APB1Periph_TIM6, DISABLE); } else if (TIMx == TIM7) { RCC_APB1PeriphResetCmd(RCC_APB1Periph_TIM7, ENABLE); RCC_APB1PeriphResetCmd(RCC_APB1Periph_TIM7, DISABLE); } else if (TIMx == TIM8) { RCC_APB2PeriphResetCmd(RCC_APB2Periph_TIM8, ENABLE); RCC_APB2PeriphResetCmd(RCC_APB2Periph_TIM8, DISABLE); } else if (TIMx == TIM9) { RCC_APB2PeriphResetCmd(RCC_APB2Periph_TIM9, ENABLE); RCC_APB2PeriphResetCmd(RCC_APB2Periph_TIM9, DISABLE); } else if (TIMx == TIM10) { RCC_APB2PeriphResetCmd(RCC_APB2Periph_TIM10, ENABLE); RCC_APB2PeriphResetCmd(RCC_APB2Periph_TIM10, DISABLE); } else if (TIMx == TIM11) { RCC_APB2PeriphResetCmd(RCC_APB2Periph_TIM11, ENABLE); RCC_APB2PeriphResetCmd(RCC_APB2Periph_TIM11, DISABLE); } else if (TIMx == TIM12) { RCC_APB1PeriphResetCmd(RCC_APB1Periph_TIM12, ENABLE); RCC_APB1PeriphResetCmd(RCC_APB1Periph_TIM12, DISABLE); } else if (TIMx == TIM13) { RCC_APB1PeriphResetCmd(RCC_APB1Periph_TIM13, ENABLE); RCC_APB1PeriphResetCmd(RCC_APB1Periph_TIM13, DISABLE); } else if (TIMx == TIM14) { RCC_APB1PeriphResetCmd(RCC_APB1Periph_TIM14, ENABLE); RCC_APB1PeriphResetCmd(RCC_APB1Periph_TIM14, DISABLE); } else if (TIMx == TIM15) { RCC_APB2PeriphResetCmd(RCC_APB2Periph_TIM15, ENABLE); RCC_APB2PeriphResetCmd(RCC_APB2Periph_TIM15, DISABLE); } else if (TIMx == TIM16) { RCC_APB2PeriphResetCmd(RCC_APB2Periph_TIM16, ENABLE); RCC_APB2PeriphResetCmd(RCC_APB2Periph_TIM16, DISABLE); } else { if (TIMx == TIM17) { RCC_APB2PeriphResetCmd(RCC_APB2Periph_TIM17, ENABLE); RCC_APB2PeriphResetCmd(RCC_APB2Periph_TIM17, DISABLE); } } } /** * @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