Commit 6d05af62 authored by Youssef Zini's avatar Youssef Zini Committed by Erwan Gouriou
Browse files

hal/stm32: add support for stm32mp2xx hal

Provide the stm32cube HAL and LL for the stm32mp2x series mcu
Origin: ST Microelectronics
License: BSD-3-Clause
URL: https://github.com/STMicroelectronics/STM32CubeMP2


Commit: 1b1ff6b48df3c9b7417ac411dbd8dfd097f0bb04
Purpose: HAL and LL for stm32mp2
Maintained-by: External

Signed-off-by: default avatarYoussef Zini <youssef.zini@savoirfairelinux.com>
parent 90f56420
Loading
Loading
Loading
Loading
+27 −0
Original line number Diff line number Diff line
Copyright 2021 STMicroelectronics.
All rights reserved.

Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:

1. Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.

2. Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation and/or
other materials provided with the distribution.

3. Neither the name of the copyright holder nor the names of its contributors
may be used to endorse or promote products derived from this software without
specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR
ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+47 −0
Original line number Diff line number Diff line
STM32CubeMP2
###########

Origin:
   ST Microelectronics
   https://github.com/STMicroelectronics/STM32CubeMP2

Status:
   version 1.1.0

Purpose:
   ST Microelectronics official MCU package for STM32MP2 series.

Description:
   This package is an extract of official STM32CubeMP2 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 STM32MP2 series.

Dependencies:
    None.

URL:
   https://github.com/STMicroelectronics/STM32CubeMP2

Commit:
   1b1ff6b48df3c9b7417ac411dbd8dfd097f0bb04

Maintained-by:
   External

License:
   BSD-3-Clause

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

Patch List:

   * Changes from official delivery:
   - dos2unix applied
   - Trailing white spaces removed

   * Provision to enable hal & ll asserts added
   - Added stm32cube/stm32mp2xx/drivers/include/stm32_assert.h
   - Removed unused stm32cube/stm32mp2xx/drivers/include/stm32_assert_template.h

   See release_note.html from STM32Cube
+3777 −0

File added.

Preview size limit exceeded, changes collapsed.

+51 −0
Original line number Diff line number Diff line
/**
  ******************************************************************************
  * @file    stm32_assert.h
  * @author  MCD Application Team
  * @brief   STM32 assert template file.
  ******************************************************************************
  * @attention
  *
  * Copyright (c) 2022 STMicroelectronics.
  * All rights reserved.
  *
  * This software is licensed under terms that can be found in the LICENSE file
  * in the root directory of this software component.
  * If no LICENSE file comes with this software, it is provided AS-IS.
  *
  ******************************************************************************
  */

/* 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 */
+1474 −0

File added.

Preview size limit exceeded, changes collapsed.

Loading