Skip to content

Commit

Permalink
Merge pull request #118 from MikroElektronika/new-feature/mcus/7
Browse files Browse the repository at this point in the history
Merge branch new-feature/mcus/7 into main
  • Loading branch information
StrahinjaJacimovic authored Oct 15, 2024
2 parents 285261c + 89bd6cc commit cb15af7
Show file tree
Hide file tree
Showing 24 changed files with 36,632 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ARM/gcc_clang/cmake/stm/delays/stm32u083cc_mc_rc.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
if(${MCU_NAME} MATCHES "^STM32U083CC$|^STM32U083RC$|^STM32U083MC$")
list(APPEND local_list_macros "getClockValue(_clock) (_clock/1000UL/4)")
endif()
5 changes: 5 additions & 0 deletions ARM/gcc_clang/cmake/stm/stm32u083cc_mc_rc.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
if(${MCU_NAME} MATCHES "^STM32U083CC$|^STM32U083RC$|^STM32U083MC$")
set(${linkerScript} linker_scripts/${vendor}/${mcu_match}.ld PARENT_SCOPE)
set(${startupFile} startup/${vendor}/${mcu_match}.s PARENT_SCOPE)
list(APPEND local_list_include system/src/stm/doc_ds_196/init_clock.c)
endif()
6 changes: 6 additions & 0 deletions ARM/gcc_clang/def/STM32U083CC.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"core": "M0",
"delay_src_path": "delays/m0/__lib_delays.c",
"mcu": "STM32U083CC",
"clock": 1
}
6 changes: 6 additions & 0 deletions ARM/gcc_clang/def/STM32U083MC.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"core": "M0",
"delay_src_path": "delays/m0/__lib_delays.c",
"mcu": "STM32U083MC",
"clock": 1
}
6 changes: 6 additions & 0 deletions ARM/gcc_clang/def/STM32U083RC.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"core": "M0",
"delay_src_path": "delays/m0/__lib_delays.c",
"mcu": "STM32U083RC",
"clock": 1
}
11,556 changes: 11,556 additions & 0 deletions ARM/gcc_clang/def/stm/STM32U083CC/mcu.h

Large diffs are not rendered by default.

11,556 changes: 11,556 additions & 0 deletions ARM/gcc_clang/def/stm/STM32U083MC/mcu.h

Large diffs are not rendered by default.

11,556 changes: 11,556 additions & 0 deletions ARM/gcc_clang/def/stm/STM32U083RC/mcu.h

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,97 @@
/****************************************************************************
**
** Copyright (C) 2024 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 interrupts_mcu.h
* @brief STM32U083CC MCU specific interrupt per module definitions.
*/

#ifndef _INTERRUPTS_MCU_H_
#define _INTERRUPTS_MCU_H_

// Interrupt table
static const int INTERRUPTS_RESET = 1;
static const int INTERRUPTS_NONMASKABLEINT = 2;
static const int INTERRUPTS_HARDFAULT = 3;
static const int INTERRUPTS_SVCALL = 11;
static const int INTERRUPTS_PENDSV = 14;
static const int INTERRUPTS_SYSTICK = 15;
static const int INTERRUPTS_WWDG_IWDG = 16;
static const int INTERRUPTS_PVD_PVM = 17;
static const int INTERRUPTS_RTC_TAMP = 18;
static const int INTERRUPTS_FLASH_ECC = 19;
static const int INTERRUPTS_RCC_CRS = 20;
static const int INTERRUPTS_EXTI0_1 = 21;
static const int INTERRUPTS_EXTI2_3 = 22;
static const int INTERRUPTS_EXTI4_15 = 23;
static const int INTERRUPTS_USB_DRD_FS = 24;
static const int INTERRUPTS_DMA1_CHANNEL1 = 25;
static const int INTERRUPTS_DMA1_CHANNEL2_3 = 26;
static const int INTERRUPTS_DMA1_CH4_7_DMA2_CH1_5_DMAMUX_OVR = 27;
static const int INTERRUPTS_ADC_COMP1_2 = 28;
static const int INTERRUPTS_TIM1_BRK_UP_TRG_COM = 29;
static const int INTERRUPTS_TIM1_CC = 30;
static const int INTERRUPTS_TIM2 = 31;
static const int INTERRUPTS_TIM3 = 32;
static const int INTERRUPTS_TIM6_DAC_LPTIM1 = 33;
static const int INTERRUPTS_TIM7_LPTIM2 = 34;
static const int INTERRUPTS_TIM15_LPTIM3 = 35;
static const int INTERRUPTS_TIM16 = 36;
static const int INTERRUPTS_TSC = 37;
static const int INTERRUPTS_LCD = 38;
static const int INTERRUPTS_I2C1 = 39;
static const int INTERRUPTS_I2C2_3_4 = 40;
static const int INTERRUPTS_SPI1 = 41;
static const int INTERRUPTS_SPI2_3 = 42;
static const int INTERRUPTS_USART1 = 43;
static const int INTERRUPTS_USART2_LPUART2 = 44;
static const int INTERRUPTS_USART3_LPUART1 = 45;
static const int INTERRUPTS_USART4_LPUART3 = 46;
static const int INTERRUPTS_RNG_CRYP = 47;
// EOF Interrupt table

// Interrupt addresses
// No interrupt registers for STM32U083CC.
// EOF Interrupt addresses

// Interrupt register bit values
// No interrupt bits for STM32U083CC.
// EOF Interrupt register bit values

#endif // _INTERRUPTS_MCU_H_
// ------------------------------------------------------------------------- END
Original file line number Diff line number Diff line change
@@ -0,0 +1,97 @@
/****************************************************************************
**
** Copyright (C) 2024 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 interrupts_mcu.h
* @brief STM32U083MC MCU specific interrupt per module definitions.
*/

#ifndef _INTERRUPTS_MCU_H_
#define _INTERRUPTS_MCU_H_

// Interrupt table
static const int INTERRUPTS_RESET = 1;
static const int INTERRUPTS_NONMASKABLEINT = 2;
static const int INTERRUPTS_HARDFAULT = 3;
static const int INTERRUPTS_SVCALL = 11;
static const int INTERRUPTS_PENDSV = 14;
static const int INTERRUPTS_SYSTICK = 15;
static const int INTERRUPTS_WWDG_IWDG = 16;
static const int INTERRUPTS_PVD_PVM = 17;
static const int INTERRUPTS_RTC_TAMP = 18;
static const int INTERRUPTS_FLASH_ECC = 19;
static const int INTERRUPTS_RCC_CRS = 20;
static const int INTERRUPTS_EXTI0_1 = 21;
static const int INTERRUPTS_EXTI2_3 = 22;
static const int INTERRUPTS_EXTI4_15 = 23;
static const int INTERRUPTS_USB_DRD_FS = 24;
static const int INTERRUPTS_DMA1_CHANNEL1 = 25;
static const int INTERRUPTS_DMA1_CHANNEL2_3 = 26;
static const int INTERRUPTS_DMA1_CH4_7_DMA2_CH1_5_DMAMUX_OVR = 27;
static const int INTERRUPTS_ADC_COMP1_2 = 28;
static const int INTERRUPTS_TIM1_BRK_UP_TRG_COM = 29;
static const int INTERRUPTS_TIM1_CC = 30;
static const int INTERRUPTS_TIM2 = 31;
static const int INTERRUPTS_TIM3 = 32;
static const int INTERRUPTS_TIM6_DAC_LPTIM1 = 33;
static const int INTERRUPTS_TIM7_LPTIM2 = 34;
static const int INTERRUPTS_TIM15_LPTIM3 = 35;
static const int INTERRUPTS_TIM16 = 36;
static const int INTERRUPTS_TSC = 37;
static const int INTERRUPTS_LCD = 38;
static const int INTERRUPTS_I2C1 = 39;
static const int INTERRUPTS_I2C2_3_4 = 40;
static const int INTERRUPTS_SPI1 = 41;
static const int INTERRUPTS_SPI2_3 = 42;
static const int INTERRUPTS_USART1 = 43;
static const int INTERRUPTS_USART2_LPUART2 = 44;
static const int INTERRUPTS_USART3_LPUART1 = 45;
static const int INTERRUPTS_USART4_LPUART3 = 46;
static const int INTERRUPTS_RNG_CRYP = 47;
// EOF Interrupt table

// Interrupt addresses
// No interrupt registers for STM32U083MC.
// EOF Interrupt addresses

// Interrupt register bit values
// No interrupt bits for STM32U083MC.
// EOF Interrupt register bit values

#endif // _INTERRUPTS_MCU_H_
// ------------------------------------------------------------------------- END
Original file line number Diff line number Diff line change
@@ -0,0 +1,97 @@
/****************************************************************************
**
** Copyright (C) 2024 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 interrupts_mcu.h
* @brief STM32U083RC MCU specific interrupt per module definitions.
*/

#ifndef _INTERRUPTS_MCU_H_
#define _INTERRUPTS_MCU_H_

// Interrupt table
static const int INTERRUPTS_RESET = 1;
static const int INTERRUPTS_NONMASKABLEINT = 2;
static const int INTERRUPTS_HARDFAULT = 3;
static const int INTERRUPTS_SVCALL = 11;
static const int INTERRUPTS_PENDSV = 14;
static const int INTERRUPTS_SYSTICK = 15;
static const int INTERRUPTS_WWDG_IWDG = 16;
static const int INTERRUPTS_PVD_PVM = 17;
static const int INTERRUPTS_RTC_TAMP = 18;
static const int INTERRUPTS_FLASH_ECC = 19;
static const int INTERRUPTS_RCC_CRS = 20;
static const int INTERRUPTS_EXTI0_1 = 21;
static const int INTERRUPTS_EXTI2_3 = 22;
static const int INTERRUPTS_EXTI4_15 = 23;
static const int INTERRUPTS_USB_DRD_FS = 24;
static const int INTERRUPTS_DMA1_CHANNEL1 = 25;
static const int INTERRUPTS_DMA1_CHANNEL2_3 = 26;
static const int INTERRUPTS_DMA1_CH4_7_DMA2_CH1_5_DMAMUX_OVR = 27;
static const int INTERRUPTS_ADC_COMP1_2 = 28;
static const int INTERRUPTS_TIM1_BRK_UP_TRG_COM = 29;
static const int INTERRUPTS_TIM1_CC = 30;
static const int INTERRUPTS_TIM2 = 31;
static const int INTERRUPTS_TIM3 = 32;
static const int INTERRUPTS_TIM6_DAC_LPTIM1 = 33;
static const int INTERRUPTS_TIM7_LPTIM2 = 34;
static const int INTERRUPTS_TIM15_LPTIM3 = 35;
static const int INTERRUPTS_TIM16 = 36;
static const int INTERRUPTS_TSC = 37;
static const int INTERRUPTS_LCD = 38;
static const int INTERRUPTS_I2C1 = 39;
static const int INTERRUPTS_I2C2_3_4 = 40;
static const int INTERRUPTS_SPI1 = 41;
static const int INTERRUPTS_SPI2_3 = 42;
static const int INTERRUPTS_USART1 = 43;
static const int INTERRUPTS_USART2_LPUART2 = 44;
static const int INTERRUPTS_USART3_LPUART1 = 45;
static const int INTERRUPTS_USART4_LPUART3 = 46;
static const int INTERRUPTS_RNG_CRYP = 47;
// EOF Interrupt table

// Interrupt addresses
// No interrupt registers for STM32U083RC.
// EOF Interrupt addresses

// Interrupt register bit values
// No interrupt bits for STM32U083RC.
// EOF Interrupt register bit values

#endif // _INTERRUPTS_MCU_H_
// ------------------------------------------------------------------------- END
Loading

0 comments on commit cb15af7

Please sign in to comment.