Skip to content
Permalink
Browse files

hal: stm32wbxx: Add HAL for the STM32WB series

This adds the HAL code needed for the SoC for the stm32wb series.

Origin: ST Microelectronics
License: BSD-3-Clause
URL: http://www.st.com/en/embedded-software/stm32cubewb.html
Commit: 1.0.0
Purpose: HAL layer for stm32wb
Maintained-by: External

Signed-off-by: Erwan Gouriou <erwan.gouriou@linaro.org>
  • Loading branch information...
erwango authored and galak committed Feb 25, 2019
1 parent c41320e commit 6fdd0c2cd92cc3521a54c526e7434c3791aea19c
Showing with 197,173 additions and 0 deletions.
  1. +39 −0 ext/hal/st/stm32cube/stm32wbxx/README
  2. +3,452 −0 ext/hal/st/stm32cube/stm32wbxx/drivers/include/Legacy/stm32_hal_legacy.h
  3. +57 −0 ext/hal/st/stm32cube/stm32wbxx/drivers/include/stm32_assert_template.h
  4. +668 −0 ext/hal/st/stm32cube/stm32wbxx/drivers/include/stm32wbxx_hal.h
  5. +1,671 −0 ext/hal/st/stm32cube/stm32wbxx/drivers/include/stm32wbxx_hal_adc.h
  6. +764 −0 ext/hal/st/stm32cube/stm32wbxx/drivers/include/stm32wbxx_hal_adc_ex.h
  7. +710 −0 ext/hal/st/stm32cube/stm32wbxx/drivers/include/stm32wbxx_hal_comp.h
  8. +353 −0 ext/hal/st/stm32cube/stm32wbxx/drivers/include/stm32wbxx_hal_conf.h
  9. +420 −0 ext/hal/st/stm32cube/stm32wbxx/drivers/include/stm32wbxx_hal_cortex.h
  10. +344 −0 ext/hal/st/stm32cube/stm32wbxx/drivers/include/stm32wbxx_hal_crc.h
  11. +153 −0 ext/hal/st/stm32cube/stm32wbxx/drivers/include/stm32wbxx_hal_crc_ex.h
  12. +627 −0 ext/hal/st/stm32cube/stm32wbxx/drivers/include/stm32wbxx_hal_cryp.h
  13. +133 −0 ext/hal/st/stm32cube/stm32wbxx/drivers/include/stm32wbxx_hal_cryp_ex.h
  14. +200 −0 ext/hal/st/stm32cube/stm32wbxx/drivers/include/stm32wbxx_hal_def.h
  15. +651 −0 ext/hal/st/stm32cube/stm32wbxx/drivers/include/stm32wbxx_hal_dma.h
  16. +265 −0 ext/hal/st/stm32cube/stm32wbxx/drivers/include/stm32wbxx_hal_dma_ex.h
  17. +324 −0 ext/hal/st/stm32cube/stm32wbxx/drivers/include/stm32wbxx_hal_exti.h
  18. +937 −0 ext/hal/st/stm32cube/stm32wbxx/drivers/include/stm32wbxx_hal_flash.h
  19. +115 −0 ext/hal/st/stm32cube/stm32wbxx/drivers/include/stm32wbxx_hal_flash_ex.h
  20. +301 −0 ext/hal/st/stm32cube/stm32wbxx/drivers/include/stm32wbxx_hal_gpio.h
  21. +408 −0 ext/hal/st/stm32cube/stm32wbxx/drivers/include/stm32wbxx_hal_gpio_ex.h
  22. +210 −0 ext/hal/st/stm32cube/stm32wbxx/drivers/include/stm32wbxx_hal_hsem.h
  23. +782 −0 ext/hal/st/stm32cube/stm32wbxx/drivers/include/stm32wbxx_hal_i2c.h
  24. +151 −0 ext/hal/st/stm32cube/stm32wbxx/drivers/include/stm32wbxx_hal_i2c_ex.h
  25. +263 −0 ext/hal/st/stm32cube/stm32wbxx/drivers/include/stm32wbxx_hal_ipcc.h
  26. +954 −0 ext/hal/st/stm32cube/stm32wbxx/drivers/include/stm32wbxx_hal_irda.h
  27. +104 −0 ext/hal/st/stm32cube/stm32wbxx/drivers/include/stm32wbxx_hal_irda_ex.h
  28. +241 −0 ext/hal/st/stm32cube/stm32wbxx/drivers/include/stm32wbxx_hal_iwdg.h
  29. +768 −0 ext/hal/st/stm32cube/stm32wbxx/drivers/include/stm32wbxx_hal_lcd.h
  30. +760 −0 ext/hal/st/stm32cube/stm32wbxx/drivers/include/stm32wbxx_hal_lptim.h
  31. +941 −0 ext/hal/st/stm32cube/stm32wbxx/drivers/include/stm32wbxx_hal_pcd.h
  32. +93 −0 ext/hal/st/stm32cube/stm32wbxx/drivers/include/stm32wbxx_hal_pcd_ex.h
  33. +558 −0 ext/hal/st/stm32cube/stm32wbxx/drivers/include/stm32wbxx_hal_pka.h
  34. +498 −0 ext/hal/st/stm32cube/stm32wbxx/drivers/include/stm32wbxx_hal_pwr.h
  35. +886 −0 ext/hal/st/stm32cube/stm32wbxx/drivers/include/stm32wbxx_hal_pwr_ex.h
  36. +708 −0 ext/hal/st/stm32cube/stm32wbxx/drivers/include/stm32wbxx_hal_qspi.h
  37. +2,827 −0 ext/hal/st/stm32cube/stm32wbxx/drivers/include/stm32wbxx_hal_rcc.h
  38. +1,514 −0 ext/hal/st/stm32cube/stm32wbxx/drivers/include/stm32wbxx_hal_rcc_ex.h
  39. +378 −0 ext/hal/st/stm32cube/stm32wbxx/drivers/include/stm32wbxx_hal_rng.h
  40. +981 −0 ext/hal/st/stm32cube/stm32wbxx/drivers/include/stm32wbxx_hal_rtc.h
  41. +1,495 −0 ext/hal/st/stm32cube/stm32wbxx/drivers/include/stm32wbxx_hal_rtc_ex.h
  42. +961 −0 ext/hal/st/stm32cube/stm32wbxx/drivers/include/stm32wbxx_hal_sai.h
  43. +105 −0 ext/hal/st/stm32cube/stm32wbxx/drivers/include/stm32wbxx_hal_sai_ex.h
  44. +1,154 −0 ext/hal/st/stm32cube/stm32wbxx/drivers/include/stm32wbxx_hal_smartcard.h
  45. +343 −0 ext/hal/st/stm32cube/stm32wbxx/drivers/include/stm32wbxx_hal_smartcard_ex.h
  46. +743 −0 ext/hal/st/stm32cube/stm32wbxx/drivers/include/stm32wbxx_hal_smbus.h
  47. +846 −0 ext/hal/st/stm32cube/stm32wbxx/drivers/include/stm32wbxx_hal_spi.h
  48. +75 −0 ext/hal/st/stm32cube/stm32wbxx/drivers/include/stm32wbxx_hal_spi_ex.h
  49. +2,143 −0 ext/hal/st/stm32cube/stm32wbxx/drivers/include/stm32wbxx_hal_tim.h
  50. +365 −0 ext/hal/st/stm32cube/stm32wbxx/drivers/include/stm32wbxx_hal_tim_ex.h
  51. +761 −0 ext/hal/st/stm32cube/stm32wbxx/drivers/include/stm32wbxx_hal_tsc.h
  52. +1,628 −0 ext/hal/st/stm32cube/stm32wbxx/drivers/include/stm32wbxx_hal_uart.h
  53. +353 −0 ext/hal/st/stm32cube/stm32wbxx/drivers/include/stm32wbxx_hal_uart_ex.h
  54. +932 −0 ext/hal/st/stm32cube/stm32wbxx/drivers/include/stm32wbxx_hal_usart.h
  55. +285 −0 ext/hal/st/stm32cube/stm32wbxx/drivers/include/stm32wbxx_hal_usart_ex.h
  56. +307 −0 ext/hal/st/stm32cube/stm32wbxx/drivers/include/stm32wbxx_hal_wwdg.h
  57. +6,120 −0 ext/hal/st/stm32cube/stm32wbxx/drivers/include/stm32wbxx_ll_adc.h
  58. +2,218 −0 ext/hal/st/stm32cube/stm32wbxx/drivers/include/stm32wbxx_ll_bus.h
  59. +762 −0 ext/hal/st/stm32cube/stm32wbxx/drivers/include/stm32wbxx_ll_comp.h
  60. +639 −0 ext/hal/st/stm32cube/stm32wbxx/drivers/include/stm32wbxx_ll_cortex.h
  61. +464 −0 ext/hal/st/stm32cube/stm32wbxx/drivers/include/stm32wbxx_ll_crc.h
  62. +798 −0 ext/hal/st/stm32cube/stm32wbxx/drivers/include/stm32wbxx_ll_crs.h
  63. +2,125 −0 ext/hal/st/stm32cube/stm32wbxx/drivers/include/stm32wbxx_ll_dma.h
  64. +1,649 −0 ext/hal/st/stm32cube/stm32wbxx/drivers/include/stm32wbxx_ll_dmamux.h
  65. +1,598 −0 ext/hal/st/stm32cube/stm32wbxx/drivers/include/stm32wbxx_ll_exti.h
  66. +990 −0 ext/hal/st/stm32cube/stm32wbxx/drivers/include/stm32wbxx_ll_gpio.h
  67. +879 −0 ext/hal/st/stm32cube/stm32wbxx/drivers/include/stm32wbxx_ll_hsem.h
  68. +2,228 −0 ext/hal/st/stm32cube/stm32wbxx/drivers/include/stm32wbxx_ll_i2c.h
  69. +723 −0 ext/hal/st/stm32cube/stm32wbxx/drivers/include/stm32wbxx_ll_ipcc.h
  70. +342 −0 ext/hal/st/stm32cube/stm32wbxx/drivers/include/stm32wbxx_ll_iwdg.h
  71. +1,453 −0 ext/hal/st/stm32cube/stm32wbxx/drivers/include/stm32wbxx_ll_lptim.h
  72. +2,632 −0 ext/hal/st/stm32cube/stm32wbxx/drivers/include/stm32wbxx_ll_lpuart.h
  73. +532 −0 ext/hal/st/stm32cube/stm32wbxx/drivers/include/stm32wbxx_ll_pka.h
  74. +2,584 −0 ext/hal/st/stm32cube/stm32wbxx/drivers/include/stm32wbxx_ll_pwr.h
  75. +4,400 −0 ext/hal/st/stm32cube/stm32wbxx/drivers/include/stm32wbxx_ll_rcc.h
  76. +401 −0 ext/hal/st/stm32cube/stm32wbxx/drivers/include/stm32wbxx_ll_rng.h
  77. +3,901 −0 ext/hal/st/stm32cube/stm32wbxx/drivers/include/stm32wbxx_ll_rtc.h
  78. +1,420 −0 ext/hal/st/stm32cube/stm32wbxx/drivers/include/stm32wbxx_ll_spi.h
  79. +2,206 −0 ext/hal/st/stm32cube/stm32wbxx/drivers/include/stm32wbxx_ll_system.h
  80. +4,788 −0 ext/hal/st/stm32cube/stm32wbxx/drivers/include/stm32wbxx_ll_tim.h
  81. +4,377 −0 ext/hal/st/stm32cube/stm32wbxx/drivers/include/stm32wbxx_ll_usart.h
  82. +229 −0 ext/hal/st/stm32cube/stm32wbxx/drivers/include/stm32wbxx_ll_usb.h
  83. +318 −0 ext/hal/st/stm32cube/stm32wbxx/drivers/include/stm32wbxx_ll_utils.h
  84. +331 −0 ext/hal/st/stm32cube/stm32wbxx/drivers/include/stm32wbxx_ll_wwdg.h
  85. +812 −0 ext/hal/st/stm32cube/stm32wbxx/drivers/src/stm32wbxx_hal.c
  86. +3,247 −0 ext/hal/st/stm32cube/stm32wbxx/drivers/src/stm32wbxx_hal_adc.c
  87. +1,671 −0 ext/hal/st/stm32cube/stm32wbxx/drivers/src/stm32wbxx_hal_adc_ex.c
  88. +992 −0 ext/hal/st/stm32cube/stm32wbxx/drivers/src/stm32wbxx_hal_comp.c
  89. +482 −0 ext/hal/st/stm32cube/stm32wbxx/drivers/src/stm32wbxx_hal_cortex.c
  90. +518 −0 ext/hal/st/stm32cube/stm32wbxx/drivers/src/stm32wbxx_hal_crc.c
  91. +225 −0 ext/hal/st/stm32cube/stm32wbxx/drivers/src/stm32wbxx_hal_crc_ex.c
  92. +5,295 −0 ext/hal/st/stm32cube/stm32wbxx/drivers/src/stm32wbxx_hal_cryp.c
  93. +382 −0 ext/hal/st/stm32cube/stm32wbxx/drivers/src/stm32wbxx_hal_cryp_ex.c
  94. +1,102 −0 ext/hal/st/stm32cube/stm32wbxx/drivers/src/stm32wbxx_hal_dma.c
  95. +296 −0 ext/hal/st/stm32cube/stm32wbxx/drivers/src/stm32wbxx_hal_dma_ex.c
  96. +643 −0 ext/hal/st/stm32cube/stm32wbxx/drivers/src/stm32wbxx_hal_exti.c
  97. +768 −0 ext/hal/st/stm32cube/stm32wbxx/drivers/src/stm32wbxx_hal_flash.c
  98. +1,041 −0 ext/hal/st/stm32cube/stm32wbxx/drivers/src/stm32wbxx_hal_flash_ex.c
  99. +532 −0 ext/hal/st/stm32cube/stm32wbxx/drivers/src/stm32wbxx_hal_gpio.c
  100. +363 −0 ext/hal/st/stm32cube/stm32wbxx/drivers/src/stm32wbxx_hal_hsem.c
  101. +6,502 −0 ext/hal/st/stm32cube/stm32wbxx/drivers/src/stm32wbxx_hal_i2c.c
  102. +325 −0 ext/hal/st/stm32cube/stm32wbxx/drivers/src/stm32wbxx_hal_i2c_ex.c
  103. +746 −0 ext/hal/st/stm32cube/stm32wbxx/drivers/src/stm32wbxx_hal_ipcc.c
  104. +2,857 −0 ext/hal/st/stm32cube/stm32wbxx/drivers/src/stm32wbxx_hal_irda.c
  105. +264 −0 ext/hal/st/stm32cube/stm32wbxx/drivers/src/stm32wbxx_hal_iwdg.c
  106. +607 −0 ext/hal/st/stm32cube/stm32wbxx/drivers/src/stm32wbxx_hal_lcd.c
  107. +2,122 −0 ext/hal/st/stm32cube/stm32wbxx/drivers/src/stm32wbxx_hal_lptim.c
  108. +101 −0 ext/hal/st/stm32cube/stm32wbxx/drivers/src/stm32wbxx_hal_msp_template.c
  109. +1,863 −0 ext/hal/st/stm32cube/stm32wbxx/drivers/src/stm32wbxx_hal_pcd.c
  110. +334 −0 ext/hal/st/stm32cube/stm32wbxx/drivers/src/stm32wbxx_hal_pcd_ex.c
  111. +2,432 −0 ext/hal/st/stm32cube/stm32wbxx/drivers/src/stm32wbxx_hal_pka.c
  112. +711 −0 ext/hal/st/stm32cube/stm32wbxx/drivers/src/stm32wbxx_hal_pwr.c
  113. +1,335 −0 ext/hal/st/stm32cube/stm32wbxx/drivers/src/stm32wbxx_hal_pwr_ex.c
  114. +2,738 −0 ext/hal/st/stm32cube/stm32wbxx/drivers/src/stm32wbxx_hal_qspi.c
  115. +1,751 −0 ext/hal/st/stm32cube/stm32wbxx/drivers/src/stm32wbxx_hal_rcc.c
  116. +2,273 −0 ext/hal/st/stm32cube/stm32wbxx/drivers/src/stm32wbxx_hal_rcc_ex.c
  117. +814 −0 ext/hal/st/stm32cube/stm32wbxx/drivers/src/stm32wbxx_hal_rng.c
  118. +1,839 −0 ext/hal/st/stm32cube/stm32wbxx/drivers/src/stm32wbxx_hal_rtc.c
  119. +1,912 −0 ext/hal/st/stm32cube/stm32wbxx/drivers/src/stm32wbxx_hal_rtc_ex.c
  120. +2,757 −0 ext/hal/st/stm32cube/stm32wbxx/drivers/src/stm32wbxx_hal_sai.c
  121. +131 −0 ext/hal/st/stm32cube/stm32wbxx/drivers/src/stm32wbxx_hal_sai_ex.c
  122. +3,098 −0 ext/hal/st/stm32cube/stm32wbxx/drivers/src/stm32wbxx_hal_smartcard.c
  123. +494 −0 ext/hal/st/stm32cube/stm32wbxx/drivers/src/stm32wbxx_hal_smartcard_ex.c
  124. +2,673 −0 ext/hal/st/stm32cube/stm32wbxx/drivers/src/stm32wbxx_hal_smbus.c
  125. +4,273 −0 ext/hal/st/stm32cube/stm32wbxx/drivers/src/stm32wbxx_hal_spi.c
  126. +115 −0 ext/hal/st/stm32cube/stm32wbxx/drivers/src/stm32wbxx_hal_spi_ex.c
  127. +6,905 −0 ext/hal/st/stm32cube/stm32wbxx/drivers/src/stm32wbxx_hal_tim.c
  128. +2,193 −0 ext/hal/st/stm32cube/stm32wbxx/drivers/src/stm32wbxx_hal_tim_ex.c
  129. +301 −0 ext/hal/st/stm32cube/stm32wbxx/drivers/src/stm32wbxx_hal_timebase_rtc_alarm_template.c
  130. +279 −0 ext/hal/st/stm32cube/stm32wbxx/drivers/src/stm32wbxx_hal_timebase_rtc_wakeup_template.c
  131. +166 −0 ext/hal/st/stm32cube/stm32wbxx/drivers/src/stm32wbxx_hal_timebase_tim_template.c
  132. +1,112 −0 ext/hal/st/stm32cube/stm32wbxx/drivers/src/stm32wbxx_hal_tsc.c
  133. +3,947 −0 ext/hal/st/stm32cube/stm32wbxx/drivers/src/stm32wbxx_hal_uart.c
  134. +734 −0 ext/hal/st/stm32cube/stm32wbxx/drivers/src/stm32wbxx_hal_uart_ex.c
  135. +3,624 −0 ext/hal/st/stm32cube/stm32wbxx/drivers/src/stm32wbxx_hal_usart.c
  136. +532 −0 ext/hal/st/stm32cube/stm32wbxx/drivers/src/stm32wbxx_hal_usart_ex.c
  137. +409 −0 ext/hal/st/stm32cube/stm32wbxx/drivers/src/stm32wbxx_hal_wwdg.c
  138. +957 −0 ext/hal/st/stm32cube/stm32wbxx/drivers/src/stm32wbxx_ll_adc.c
  139. +256 −0 ext/hal/st/stm32cube/stm32wbxx/drivers/src/stm32wbxx_ll_comp.c
  140. +107 −0 ext/hal/st/stm32cube/stm32wbxx/drivers/src/stm32wbxx_ll_crc.c
  141. +86 −0 ext/hal/st/stm32cube/stm32wbxx/drivers/src/stm32wbxx_ll_crs.c
  142. +372 −0 ext/hal/st/stm32cube/stm32wbxx/drivers/src/stm32wbxx_ll_dma.c
  143. +299 −0 ext/hal/st/stm32cube/stm32wbxx/drivers/src/stm32wbxx_ll_exti.c
  144. +278 −0 ext/hal/st/stm32cube/stm32wbxx/drivers/src/stm32wbxx_ll_gpio.c
  145. +226 −0 ext/hal/st/stm32cube/stm32wbxx/drivers/src/stm32wbxx_ll_i2c.c
  146. +315 −0 ext/hal/st/stm32cube/stm32wbxx/drivers/src/stm32wbxx_ll_lptim.c
  147. +283 −0 ext/hal/st/stm32cube/stm32wbxx/drivers/src/stm32wbxx_ll_lpuart.c
  148. +165 −0 ext/hal/st/stm32cube/stm32wbxx/drivers/src/stm32wbxx_ll_pka.c
  149. +147 −0 ext/hal/st/stm32cube/stm32wbxx/drivers/src/stm32wbxx_ll_pwr.c
  150. +1,296 −0 ext/hal/st/stm32cube/stm32wbxx/drivers/src/stm32wbxx_ll_rcc.c
  151. +138 −0 ext/hal/st/stm32cube/stm32wbxx/drivers/src/stm32wbxx_ll_rng.c
  152. +879 −0 ext/hal/st/stm32cube/stm32wbxx/drivers/src/stm32wbxx_ll_rtc.c
  153. +279 −0 ext/hal/st/stm32cube/stm32wbxx/drivers/src/stm32wbxx_ll_spi.c
  154. +1,304 −0 ext/hal/st/stm32cube/stm32wbxx/drivers/src/stm32wbxx_ll_tim.c
  155. +389 −0 ext/hal/st/stm32cube/stm32wbxx/drivers/src/stm32wbxx_ll_usart.c
  156. +878 −0 ext/hal/st/stm32cube/stm32wbxx/drivers/src/stm32wbxx_ll_usb.c
  157. +720 −0 ext/hal/st/stm32cube/stm32wbxx/drivers/src/stm32wbxx_ll_utils.c
  158. +13,718 −0 ext/hal/st/stm32cube/stm32wbxx/soc/stm32wb55xx.h
  159. +167 −0 ext/hal/st/stm32cube/stm32wbxx/soc/stm32wbxx.h
  160. +353 −0 ext/hal/st/stm32cube/stm32wbxx/soc/system_stm32wbxx.c
  161. +111 −0 ext/hal/st/stm32cube/stm32wbxx/soc/system_stm32wbxx.h
@@ -0,0 +1,39 @@
STM32CubeWB
###########

Origin:
ST Microelectronics
http://www.st.com/en/embedded-software/stm32cubewb.html

Status:
version 1.0.0

Purpose:
ST Microelectronics official MCU package for STM32WB series.

Description:
This package is an extract of official STM32CubeWB package written by ST Microelectronics.
It is composed of STM32Cube hardware abstraction layer (HAL) and low layer (LL) plus a set
of CMSIS headers files, one for each SoC in STM32WB series.

Dependencies:
None.

URL:
http://www.st.com/en/embedded-software/stm32cubewb.html

commit:
version 1.0.0

Maintained-by:
External

License:
BSD-3-Clause

License Link:
https://opensource.org/licenses/BSD-3-Clause

Patch List:

*Applied dos2unix

Large diffs are not rendered by default.

@@ -0,0 +1,57 @@
/**
******************************************************************************
* @file stm32_assert.h
* @author MCD Application Team
* @brief STM32 assert template file.
* This file should be copied to the application folder and renamed
* to stm32_assert.h.
******************************************************************************
* @attention
*
* <h2><center>&copy; Copyright (c) 2019 STMicroelectronics.
* All rights reserved.</center></h2>
*
* This software component is licensed by ST under BSD 3-Clause license,
* the "License"; You may not use this file except in compliance with the
* License. You may obtain a copy of the License at:
* opensource.org/licenses/BSD-3-Clause
*
******************************************************************************
*/

/* Define to prevent recursive inclusion -------------------------------------*/
#ifndef STM32_ASSERT_H
#define STM32_ASSERT_H

#ifdef __cplusplus
extern "C" {
#endif

/* Exported types ------------------------------------------------------------*/
/* Exported constants --------------------------------------------------------*/
/* Includes ------------------------------------------------------------------*/
/* Exported macro ------------------------------------------------------------*/
#ifdef USE_FULL_ASSERT
/**
* @brief The assert_param macro is used for function's parameters check.
* @param expr If expr is false, it calls assert_failed function
* which reports the name of the source file and the source
* line number of the call that failed.
* If expr is true, it returns no value.
* @retval None
*/
#define assert_param(expr) ((expr) ? (void)0U : assert_failed((uint8_t *)__FILE__, __LINE__))
/* Exported functions ------------------------------------------------------- */
void assert_failed(uint8_t* file, uint32_t line);
#else
#define assert_param(expr) ((void)0U)
#endif /* USE_FULL_ASSERT */

#ifdef __cplusplus
}
#endif

#endif /* STM32_ASSERT_H */


/************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

0 comments on commit 6fdd0c2

Please sign in to comment.
You can’t perform that action at this time.