Skip to content

Commit 3739122

Browse files
committed
Release v1.1.0 Ecosystem
1 parent 121d387 commit 3739122

File tree

3,179 files changed

+668625
-36670
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

3,179 files changed

+668625
-36670
lines changed

Drivers/BSP/STM32MP15xx_DISCO/Release_Notes.html

Lines changed: 22 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!DOCTYPE html>
2-
<html><head>
2+
<html><head><script></script>
33
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><title>Release Notes for STM32MP15xx_DISCO Board</title>
44

55
<style>
@@ -163,21 +163,35 @@ <h2>License</h2>
163163
</div>
164164
<div id="release_container" class="topic1">
165165
<div class="topic2" id="identification">
166-
<h3 style="width: 230px;">V1.0.0 / 22-January-2019</h3>
166+
<h3 style="width: 230px;">V1.1.0 / 10-Sept-2019</h3>
167167
</div>
168168
<div class="topic3" id="contents">
169-
<h4>Contents</h4>
170-
<ul>
171-
<li>First<span style="font-family: Verdana; font-size: 10pt;"> official release<span style="font-style: italic; font-weight: bold;"> </span></span><span style="font-family: Verdana; font-size: 10pt;">of <span style="font-weight: bold;">STM32MP15xx-DISCO</span> board&nbsp;drivers for STM32CubeMP1 FW package</span></li></ul>
172-
<span style="font-family: Verdana; font-size: 10pt;"><br>
173-
</span></div>
169+
<h4>Main changes</h4>
170+
<ul><li>Add support of console input from COM</li></ul><ul>
171+
<li>Rename stm32mp15xx_eval_stpmu1 file to
172+
stm32mp15xx_eval_stpmic1</li>
173+
174+
</ul>
175+
<span style="font-family: Verdana; font-size: 10pt;"></span></div>
174176
</div>
175177
<div style="margin-left: 40px;"><button id="filter_hist" onclick="toggle_history()">Show
176178
History</button><br>
177179
</div>
178180
<div id="history" class="topic1" hidden="">
179181
<h2>Update History</h2>
180-
<br><h3 style="background: rgb(51, 102, 255) none repeat scroll 0% 50%; -moz-background-clip: initial; -moz-background-origin: initial; -moz-background-inline-policy: initial; margin-right: 500pt; margin-left: 20px; width: 180px;"><span style="font-size: 10pt; font-family: Arial; color: white;">Version&nbsp;/ Date</span></h3><p class="MsoNormal" style="margin: 4.5pt 0cm 4.5pt 18pt;"><b style=""><u><span style="font-size: 10pt; font-family: Verdana; color: black;"><o:p></o:p></span></u></b></p><br>
182+
<br>
183+
<h3 style="background: rgb(51, 102, 255) none repeat scroll 0% 50%; -moz-background-clip: initial; -moz-background-origin: initial; -moz-background-inline-policy: initial; margin-right: 500pt; margin-left: 20px; width: 180px;"><span style="font-size: 10pt; font-family: Arial; color: white;">V1.0.0
184+
/ 22-January-2019</span></h3>
185+
<div style="margin-left: 64px; width: 930px;" id="release_container" class="topic1">
186+
<h4>Contents</h4>
187+
<ul>
188+
<li>First<span style="font-family: Verdana; font-size: 10pt;">
189+
official release<span style="font-style: italic; font-weight: bold;">
190+
</span></span><span style="font-family: Verdana; font-size: 10pt;">of <span style="font-weight: bold;">STM32MP15xx-DISCO</span>
191+
board&nbsp;drivers for STM32CubeMP1 FW package</span></li>
192+
</ul>
193+
</div>
194+
<br>
181195
<br>
182196
</div>
183197
<div id="product_doc" class="topic1">
Binary file not shown.

Drivers/BSP/STM32MP15xx_DISCO/stm32mp15xx_disco.c

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ typedef void (* BSP_EXTI_LineCallback)(void);
5050
/** @brief STM32MP15XX DISCO BSP Driver version number V2.0.0
5151
*/
5252
#define STM32MP15XX_DISCO_BSP_VERSION_MAIN (0x01U) /*!< [31:24] main version */
53-
#define STM32MP15XX_DISCO_BSP_VERSION_SUB1 (0x00U) /*!< [23:16] sub1 version */
53+
#define STM32MP15XX_DISCO_BSP_VERSION_SUB1 (0x01U) /*!< [23:16] sub1 version */
5454
#define STM32MP15XX_DISCO_BSP_VERSION_SUB2 (0x00U) /*!< [15:8] sub2 version */
5555
#define STM32MP15XX_DISCO_BSP_VERSION_RC (0x00U) /*!< [7:0] release candidate */
5656
#define STM32MP15XX_DISCO_BSP_VERSION ((STM32MP15XX_DISCO_BSP_VERSION_MAIN << 24)\
@@ -693,6 +693,9 @@ int32_t BSP_COM_SelectLogPort(COM_TypeDef COM)
693693

694694
/**
695695
* @brief Redirect console output to COM
696+
* @param ch: character to send
697+
* @param f: pointer to file (not used)
698+
* @retval The character received
696699
*/
697700
#ifdef __GNUC__
698701
int __io_putchar (int ch)
@@ -703,6 +706,22 @@ int32_t BSP_COM_SelectLogPort(COM_TypeDef COM)
703706
HAL_UART_Transmit (&hComHandle [COM_ActiveLogPort], (uint8_t *) &ch, 1, COM1_POLL_TIMEOUT);
704707
return ch;
705708
}
709+
710+
/**
711+
* @brief Get console input from COM
712+
* @param f: pointer to file (not used)
713+
* @retval The character received
714+
*/
715+
#ifdef __GNUC__
716+
int __io_getchar (void)
717+
#else
718+
int fgetc(FILE * f)
719+
#endif /* __GNUC__ */
720+
{
721+
uint8_t ch = 0;
722+
HAL_UART_Receive(&hComHandle[COM_ActiveLogPort], (uint8_t *)&ch, 1, COM1_POLL_TIMEOUT);
723+
return ch;
724+
}
706725
#endif /* USE_COM_LOG */
707726

708727
#endif /* HAL_UART_MODULE_ENABLED */

Drivers/BSP/STM32MP15xx_DISCO/stm32mp15xx_disco_stpmu1.c renamed to Drivers/BSP/STM32MP15xx_DISCO/stm32mp15xx_disco_stpmic1.c

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/**
22
******************************************************************************
3-
* @file stm32mp15xx_disco_stpmu1.c
3+
* @file stm32mp15xx_disco_stpmic1.c
44
* @author MCD Application Team
55
* @brief stpmu driver functions used for ST internal validation
66
******************************************************************************
@@ -20,7 +20,7 @@
2020

2121
/* Includes ----------------------------------------------------------------------*/
2222
#include "stm32mp15xx_disco_bus.h"
23-
#include "stm32mp15xx_disco_stpmu1.h"
23+
#include "stm32mp15xx_disco_stpmic1.h"
2424
#include <string.h>
2525

2626
/** @addtogroup BSP
@@ -1079,12 +1079,12 @@ static uint32_t BSP_PMIC_MspDeInit(I2C_HandleTypeDef *hi2c)
10791079

10801080
uint32_t BSP_PMIC_Is_Device_Ready(void)
10811081
{
1082-
uint32_t status = BSP_ERROR_NONE;
1082+
int32_t status = BSP_ERROR_NONE;
10831083

10841084
/* Write the TxBuffer1 at @0, then read @0 when device ready */
10851085
if (BSP_I2C4_IsReady(STPMU1_I2C_ADDRESS, 1) != BSP_ERROR_NONE)
10861086
{
1087-
return BSP_ERROR_BUSY;
1087+
status = BSP_ERROR_BUSY;
10881088
}
10891089
return status ;
10901090
}
@@ -1094,8 +1094,9 @@ uint32_t BSP_PMIC_Is_Device_Ready(void)
10941094

10951095
uint32_t BSP_PMIC_Init(void)
10961096
{
1097-
uint32_t status = BSP_ERROR_NONE;
1098-
int i;
1097+
int32_t status = BSP_ERROR_NONE;
1098+
PMIC_IRQn irq;
1099+
10991100

11001101
/*##-1- Configure the I2C peripheral ######################################*/
11011102
BSP_PMIC_MspInit(&hI2c4);
@@ -1108,14 +1109,15 @@ uint32_t BSP_PMIC_Init(void)
11081109

11091110
if (STPMU1_Register_Read(VERSION_STATUS_REG) != 0x00)
11101111
{
1111-
return BSP_ERROR_BUS_FAILURE;
1112+
status = BSP_ERROR_BUS_FAILURE;
1113+
return status;
11121114
}
11131115

11141116
STPMU1_Enable_Interrupt(IT_PONKEY_R);
11151117
STPMU1_Enable_Interrupt(IT_PONKEY_F);
11161118
/* enable all irqs */
1117-
for (i=0; i<IRQ_NR; i++) {
1118-
STPMU1_Enable_Interrupt(i);
1119+
for (irq = IT_SWOUT_R; irq < IRQ_NR; irq++) {
1120+
STPMU1_Enable_Interrupt(irq);
11191121
}
11201122

11211123
return BSP_ERROR_NONE;

Drivers/BSP/STM32MP15xx_DISCO/stm32mp15xx_disco_stpmu1.h renamed to Drivers/BSP/STM32MP15xx_DISCO/stm32mp15xx_disco_stpmic1.h

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/**
22
******************************************************************************
3-
* @file stm32mp15xx_disco_stpmu1.h
3+
* @file stm32mp15xx_disco_stpmic1.h
44
* @author MCD Application Team
55
* @brief stpmu driver functions used for ST internal validation
66
******************************************************************************
@@ -19,8 +19,8 @@
1919
*/
2020

2121
/* Define to prevent recursive inclusion -------------------------------------*/
22-
#ifndef STM32MP15XX_DISCO_STPMU_H
23-
#define STM32MP15XX_DISCO_STPMU_H
22+
#ifndef STM32MP15XX_DISCO_STPMIC_H
23+
#define STM32MP15XX_DISCO_STPMIC_H
2424

2525
#ifdef __cplusplus
2626
extern "C" {
@@ -335,4 +335,6 @@ __weak void BSP_PMIC_INTn_Callback(PMIC_IRQn IRQn);
335335
}
336336
#endif
337337

338-
#endif /* STM32MP15XX_DISCO_STPMU_H */
338+
#endif /* STM32MP15XX_DISCO_STPMIC_H */
339+
340+
/************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/

Drivers/BSP/STM32MP15xx_EVAL/Release_Notes.html

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -163,13 +163,11 @@ <h2>License</h2>
163163
</div>
164164
<div id="release_container" class="topic1">
165165
<div class="topic2" id="identification">
166-
<h3 style="width: 230px;">V1.0.0 / 22-January-2019</h3>
166+
<h3 style="width: 230px;">V1.1.0 / 10-Sept-2019</h3>
167167
</div>
168-
<div class="topic3" id="contents">
169-
<h4>Contents</h4>
170-
<ul>
171-
<li>First<span style="font-family: Verdana; font-size: 10pt;"> official release<span style="font-style: italic; font-weight: bold;"> </span></span><span style="font-family: Verdana; font-size: 10pt;">of <span style="font-weight: bold;">STM32MP15xx-EVAL</span> board&nbsp;drivers for STM32CubeMP1 FW package</span></li></ul>
172-
<span style="font-family: Verdana; font-size: 10pt;"><br>
168+
<div style="margin-left: 20px; width: 974px;" class="topic3" id="contents"><h4>Main changes</h4>
169+
<ul><li>Add support of console input from COM</li></ul><ul><li>Rename stm32mp15xx_eval_stpmu1 file to
170+
stm32mp15xx_eval_stpmic1</li></ul><span style="font-family: Verdana; font-size: 10pt;">
173171
</span></div>
174172
</div>
175173
<div style="margin-left: 40px;"><button id="filter_hist" onclick="toggle_history()">Show
@@ -180,9 +178,10 @@ <h2>Update History</h2>
180178
<br>
181179
<div id="release_container" class="topic1">
182180
<div class="topic2" id="identification">
183-
<h3 style="background: rgb(51, 102, 255) none repeat scroll 0% 50%; -moz-background-clip: initial; -moz-background-origin: initial; -moz-background-inline-policy: initial; margin-right: 500pt; width: 180px;"><span style="font-size: 10pt; font-family: Arial; color: white;">Version / Date</span></h3><br></div>
181+
<h3 style="background: rgb(51, 102, 255) none repeat scroll 0% 50%; -moz-background-clip: initial; -moz-background-origin: initial; -moz-background-inline-policy: initial; margin-right: 500pt; width: 180px;"><span style="font-size: 10pt; font-family: Arial; color: white;">V1.0.0 / 22-January-2019</span></h3></div>
184182
</div>
185-
<div id="release_container" class="topic1"><br>
183+
<div style="margin-left: 64px; width: 930px;" id="release_container" class="topic1"><h4>Contents</h4>
184+
<ul><li>First<span style="font-family: Verdana; font-size: 10pt;"> official release<span style="font-style: italic; font-weight: bold;"> </span></span><span style="font-family: Verdana; font-size: 10pt;">of <span style="font-weight: bold;">STM32MP15xx-EVAL</span> board&nbsp;drivers for STM32CubeMP1 FW package</span></li></ul>
186185
</div>
187186
<br>
188187
<br>
564 Bytes
Binary file not shown.

Drivers/BSP/STM32MP15xx_EVAL/stm32mp15xx_eval.c

Lines changed: 26 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ typedef void (* BSP_EXTI_LineCallback)(void);
5050
/** @brief STM32MP15XX EVAL BSP Driver version number V2.0.0
5151
*/
5252
#define STM32MP15XX_EVAL_BSP_VERSION_MAIN (0x01U) /*!< [31:24] main version */
53-
#define STM32MP15XX_EVAL_BSP_VERSION_SUB1 (0x00U) /*!< [23:16] sub1 version */
53+
#define STM32MP15XX_EVAL_BSP_VERSION_SUB1 (0x01U) /*!< [23:16] sub1 version */
5454
#define STM32MP15XX_EVAL_BSP_VERSION_SUB2 (0x00U) /*!< [15:8] sub2 version */
5555
#define STM32MP15XX_EVAL_BSP_VERSION_RC (0x00U) /*!< [7:0] release candidate */
5656
#define STM32MP15XX_EVAL_BSP_VERSION ((STM32MP15XX_EVAL_BSP_VERSION_MAIN << 24)\
@@ -693,14 +693,33 @@ int32_t BSP_COM_SelectLogPort(COM_TypeDef COM)
693693

694694
/**
695695
* @brief Redirect console output to COM
696+
* @param ch: character to send
697+
* @param f: pointer to file (not used)
698+
* @retval The character transmitted
696699
*/
697-
#ifdef __GNUC__
698-
int __io_putchar (int ch)
699-
#else
700-
int fputc (int ch, FILE *f)
701-
#endif /* __GNUC__ */
700+
#ifdef __GNUC__
701+
int __io_putchar (int ch)
702+
#else
703+
int fputc (int ch, FILE *f)
704+
#endif /* __GNUC__ */
705+
{
706+
HAL_UART_Transmit (&hComHandle[COM_ActiveLogPort], (uint8_t *) &ch, 1, COM1_POLL_TIMEOUT);
707+
return ch;
708+
}
709+
710+
/**
711+
* @brief Get console input from COM
712+
* @param f: pointer to file (not used)
713+
* @retval The character received
714+
*/
715+
#ifdef __GNUC__
716+
int __io_getchar (void)
717+
#else
718+
int fgetc(FILE * f)
719+
#endif /* __GNUC__ */
702720
{
703-
HAL_UART_Transmit (&hComHandle [COM_ActiveLogPort], (uint8_t *) &ch, 1, COM1_POLL_TIMEOUT);
721+
uint8_t ch = 0;
722+
HAL_UART_Receive(&hComHandle[COM_ActiveLogPort], (uint8_t *)&ch, 1, COM1_POLL_TIMEOUT);
704723
return ch;
705724
}
706725
#endif /* USE_COM_LOG */

Drivers/BSP/STM32MP15xx_EVAL/stm32mp15xx_eval_stpmu1.c renamed to Drivers/BSP/STM32MP15xx_EVAL/stm32mp15xx_eval_stpmic1.c

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/**
22
******************************************************************************
3-
* @file stm32mp15xx_eval_stpmu1.c
3+
* @file stm32mp15xx_eval_stpmic1.c
44
* @author MCD Application Team
55
* @brief stpmu driver functions used for ST internal validation
66
******************************************************************************
@@ -20,7 +20,7 @@
2020

2121
/* Includes ----------------------------------------------------------------------*/
2222
#include "stm32mp15xx_eval_bus.h"
23-
#include "stm32mp15xx_eval_stpmu1.h"
23+
#include "stm32mp15xx_eval_stpmic1.h"
2424
#include <string.h>
2525

2626
/** @addtogroup BSP
@@ -1080,12 +1080,12 @@ static uint32_t BSP_PMIC_MspDeInit(I2C_HandleTypeDef *hi2c)
10801080

10811081
uint32_t BSP_PMIC_Is_Device_Ready(void)
10821082
{
1083-
uint32_t status = BSP_ERROR_NONE;
1083+
int32_t status = BSP_ERROR_NONE;
10841084

10851085
/* Write the TxBuffer1 at @0, then read @0 when device ready */
10861086
if (BSP_I2C4_IsReady(STPMU1_I2C_ADDRESS, 1) != BSP_ERROR_NONE)
10871087
{
1088-
return BSP_ERROR_BUSY;
1088+
status = BSP_ERROR_BUSY;
10891089
}
10901090
return status ;
10911091
}
@@ -1095,8 +1095,9 @@ uint32_t BSP_PMIC_Is_Device_Ready(void)
10951095

10961096
uint32_t BSP_PMIC_Init(void)
10971097
{
1098-
uint32_t status = BSP_ERROR_NONE;
1099-
int i;
1098+
int32_t status = BSP_ERROR_NONE;
1099+
PMIC_IRQn irq;
1100+
11001101

11011102
/*##-1- Configure the I2C peripheral ######################################*/
11021103
BSP_PMIC_MspInit(&hI2c4);
@@ -1109,14 +1110,15 @@ uint32_t BSP_PMIC_Init(void)
11091110

11101111
if (STPMU1_Register_Read(VERSION_STATUS_REG) != 0x00)
11111112
{
1112-
return BSP_ERROR_BUS_FAILURE;
1113+
status = BSP_ERROR_BUS_FAILURE;
1114+
return status;
11131115
}
11141116

11151117
STPMU1_Enable_Interrupt(IT_PONKEY_R);
11161118
STPMU1_Enable_Interrupt(IT_PONKEY_F);
11171119
/* enable all irqs */
1118-
for (i=0; i<IRQ_NR; i++) {
1119-
STPMU1_Enable_Interrupt(i);
1120+
for (irq = IT_SWOUT_R; irq < IRQ_NR; irq++) {
1121+
STPMU1_Enable_Interrupt(irq);
11201122
}
11211123

11221124
return BSP_ERROR_NONE;

Drivers/BSP/STM32MP15xx_EVAL/stm32mp15xx_eval_stpmu1.h renamed to Drivers/BSP/STM32MP15xx_EVAL/stm32mp15xx_eval_stpmic1.h

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/**
22
******************************************************************************
3-
* @file stm32mp15xx_eval_stpmu1.h
3+
* @file stm32mp15xx_eval_stpmic1.h
44
* @author MCD Application Team
55
* @brief stpmu driver functions used for ST internal validation
66
******************************************************************************
@@ -19,8 +19,8 @@
1919
*/
2020

2121
/* Define to prevent recursive inclusion -------------------------------------*/
22-
#ifndef STM32MP15XX_EVAL_STPMU_H
23-
#define STM32MP15XX_EVAL_STPMU_H
22+
#ifndef STM32MP15XX_EVAL_STPMIC_H
23+
#define STM32MP15XX_EVAL_STPMIC_H
2424

2525
#ifdef __cplusplus
2626
extern "C" {
@@ -335,4 +335,6 @@ __weak void BSP_PMIC_INTn_Callback(PMIC_IRQn IRQn);
335335
}
336336
#endif
337337

338-
#endif /* STM32MP15XX_EVAL_STPMU_H */
338+
#endif /* STM32MP15XX_EVAL_STPMIC_H */
339+
340+
/************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/

0 commit comments

Comments
 (0)