-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #127 from MikroElektronika/new-feature/stm32l412_2…
…2_sdk_support Added SDK support for STM32L412/422
- Loading branch information
Showing
79 changed files
with
9,107 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,89 @@ | ||
<p align="center"> | ||
<img src="http://www.mikroe.com/img/designs/beta/logo_small.png?raw=true" alt="MikroElektronika"/> | ||
</p> | ||
|
||
--- | ||
|
||
**[BACK TO MAIN FILE](../../changelog.md)** | ||
|
||
--- | ||
|
||
# `v2.11.5` | ||
|
||
+ released: 2024-11-01 | ||
|
||
## Changes | ||
|
||
+ [`v2.11.5`](#v2115) | ||
+ [Changes](#changes) | ||
+ [mikroSDK](#mikrosdk) | ||
+ [CORE](#core) | ||
+ [NEW HARDWARE](#new-hardware) | ||
|
||
### Improvements | ||
|
||
#### mikroSDK | ||
|
||
**New STM32L4 MCUs supported!** | ||
|
||
| MCU | MCU | MCU | | ||
| :---------------: | :--------------: | :---------------: | | ||
| STM32L412C8 | STM32L412CB | STM32L422CB | | ||
| STM32L412K8 | STM32L412KB | STM32L422KB | | ||
| STM32L412R8 | STM32L412RB | STM32L422RB | | ||
| STM32L412T8 | STM32L412TB | STM32L422TB | | ||
|
||
**Supported modules:** | ||
|
||
+ ADC (Full module support) | ||
+ SPI (Full module support) | ||
+ UART (Full module support) | ||
+ I2C (Full module support) | ||
+ PWM (Full module support) | ||
+ GPIO (Full module support) | ||
+ OW (Full module support) | ||
+ RTC (Full module support) | ||
+ DMA (Full module support) | ||
|
||
+ Third party modules supported | ||
+ TinyUSB (An open source cross-platform USB stack for embedded system) | ||
+ FatFs (Generic FAT Filesystem Module) | ||
|
||
**Files added:** | ||
|
||
+ `./mcu_name/mcu_definitions.h` - `https://github.com/MikroElektronika/mikrosdk_v2/blob/master/targets/arm/mikroe/common/include/mcu_definitions/STM32/mcu_name/mcu_definitions.h` | ||
+ `./mcu_name/can_definitions.h` - `https://github.com/MikroElektronika/mikrosdk_v2/blob/master/targets/arm/mikroe/common/include/mcu_definitions/STM32/mcu_name/can_definitions.h` | ||
+ `./mcu_name/dma_definitions.h` - `https://github.com/MikroElektronika/mikrosdk_v2/blob/master/targets/arm/mikroe/common/include/mcu_definitions/STM32/mcu_name/dma_definitions.h` | ||
+ Added for all new MCUs in mikroSDK where mcu_name is actual chip full name with package, i.e. `STM32L412C8Tx` etc. | ||
+ `./mcu_name/mcu_reg_addresses.h.h` - `https://github.com/MikroElektronika/mikrosdk_v2/blob/master/targets/arm/mikroe/common/include/mcu_reg_addresses/STM32/mcu_name/mcu_reg_addresses.h` | ||
+ Added for all new MCUs in mikroSDK where mcu_name is actual chip full name, i.e. `STM32L412C8` etc. | ||
|
||
|
||
#### CORE | ||
|
||
+ Added USB Clock schemes for the newly supported STM32L4 MCUs: | ||
+ STM32L412C8 | ||
+ STM32L412K8 | ||
+ STM32L412R8 | ||
+ STM32L412T8 | ||
+ STM32L412CB | ||
+ STM32L412KB | ||
+ STM32L412RB | ||
+ STM32L412TB | ||
+ STM32L422CB | ||
+ STM32L422KB | ||
+ STM32L422RB | ||
+ STM32L422TB | ||
|
||
### NEW HARDWARE | ||
|
||
> NOTE: | ||
>> If any new hardware was added to current version, it will be listed here. | ||
Support added for following hardware: | ||
|
||
--- | ||
|
||
**[BACK TO MAIN FILE](../../changelog.md)** | ||
|
||
--- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
63 changes: 63 additions & 0 deletions
63
targets/arm/mikroe/common/include/mcu_definitions/STM32/STM32L412C8Tx/can_definitions.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
/**************************************************************************** | ||
** | ||
** Copyright (C) ${COPYRIGHT_YEAR} MikroElektronika d.o.o. | ||
** Contact: https://www.mikroe.com/contact | ||
** | ||
** This file is part of the mikroSDK package | ||
** | ||
** Commercial License Usage | ||
** | ||
** Licensees holding valid commercial NECTO compilers AI licenses may use this | ||
** file in accordance with the commercial license agreement provided with the | ||
** Software or, alternatively, in accordance with the terms contained in | ||
** a written agreement between you and The MikroElektronika Company. | ||
** For licensing terms and conditions see | ||
** https://www.mikroe.com/legal/software-license-agreement. | ||
** For further information use the contact form at | ||
** https://www.mikroe.com/contact. | ||
** | ||
** | ||
** GNU Lesser General Public License Usage | ||
** | ||
** Alternatively, this file may be used for | ||
** non-commercial projects under the terms of the GNU Lesser | ||
** General Public License version 3 as published by the Free Software | ||
** Foundation: https://www.gnu.org/licenses/lgpl-3.0.html. | ||
** | ||
** The above copyright notice and this permission notice shall be | ||
** included in all copies or substantial portions of the Software. | ||
** | ||
** THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, | ||
** OF MERCHANTABILITY, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED | ||
** TO THE WARRANTIES FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. | ||
** IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, | ||
** DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT | ||
** OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE | ||
** OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. | ||
** | ||
****************************************************************************/ | ||
/*! | ||
* @file can_definitions.h | ||
* @brief MCU specific CAN module definitions for STM32L412C8Tx. | ||
*/ | ||
|
||
#ifndef _CAN_DEFINITIONS_H_ | ||
#define _CAN_DEFINITIONS_H_ | ||
|
||
#ifdef __cplusplus | ||
extern "C"{ | ||
#endif | ||
|
||
// CAN | ||
// No CAN pins for this MCU. | ||
// No CAN modules for this MCU. | ||
// No CAN regs for this MCU. | ||
// No CAN helper macros for this MCU. | ||
// EOF CAN | ||
|
||
#ifdef __cplusplus | ||
} | ||
#endif | ||
|
||
#endif // _CAN_DEFINITIONS_H_ | ||
// ------------------------------------------------------------------------- END |
64 changes: 64 additions & 0 deletions
64
targets/arm/mikroe/common/include/mcu_definitions/STM32/STM32L412C8Tx/dma_definitions.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
/**************************************************************************** | ||
** | ||
** Copyright (C) ${COPYRIGHT_YEAR} MikroElektronika d.o.o. | ||
** Contact: https://www.mikroe.com/contact | ||
** | ||
** This file is part of the mikroSDK package | ||
** | ||
** Commercial License Usage | ||
** | ||
** Licensees holding valid commercial NECTO compilers AI licenses may use this | ||
** file in accordance with the commercial license agreement provided with the | ||
** Software or, alternatively, in accordance with the terms contained in | ||
** a written agreement between you and The MikroElektronika Company. | ||
** For licensing terms and conditions see | ||
** https://www.mikroe.com/legal/software-license-agreement. | ||
** For further information use the contact form at | ||
** https://www.mikroe.com/contact. | ||
** | ||
** | ||
** GNU Lesser General Public License Usage | ||
** | ||
** Alternatively, this file may be used for | ||
** non-commercial projects under the terms of the GNU Lesser | ||
** General Public License version 3 as published by the Free Software | ||
** Foundation: https://www.gnu.org/licenses/lgpl-3.0.html. | ||
** | ||
** The above copyright notice and this permission notice shall be | ||
** included in all copies or substantial portions of the Software. | ||
** | ||
** THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, | ||
** OF MERCHANTABILITY, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED | ||
** TO THE WARRANTIES FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. | ||
** IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, | ||
** DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT | ||
** OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE | ||
** OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. | ||
** | ||
****************************************************************************/ | ||
/*! | ||
* @file dma_definitions.h | ||
* @brief MCU specific DMA module definitions for STM32L412C8Tx. | ||
*/ | ||
|
||
#ifndef _DMA_DEFINITIONS_H_ | ||
#define _DMA_DEFINITIONS_H_ | ||
|
||
#ifdef __cplusplus | ||
extern "C"{ | ||
#endif | ||
|
||
// DMA | ||
#define DMA_NUM_OF_MODULES 2 | ||
#define DMA_NUM_OF_STREAMS 7 | ||
#define DMA_NUM_OF_STREAMS_FAMILY 7 | ||
#define DMA_NUM_OF_CHANNELS 7 | ||
#define DMA_NUM_OF_CHANNELS_FAMILY 7 | ||
// EOF DMA | ||
|
||
#ifdef __cplusplus | ||
} | ||
#endif | ||
|
||
#endif // _DMA_DEFINITIONS_H_ | ||
// ------------------------------------------------------------------------- END |
Oops, something went wrong.