Added timer support

This commit is contained in:
Mateusz Myalski
2024-10-20 18:53:40 +02:00
committed by Piotr Esden-Tempski
parent ab284959f3
commit cc3a1e8a98
3 changed files with 39 additions and 0 deletions

View File

@@ -40,6 +40,8 @@
# include <libopencm3/stm32/l1/timer.h> # include <libopencm3/stm32/l1/timer.h>
#elif defined(STM32L4) #elif defined(STM32L4)
# include <libopencm3/stm32/l4/timer.h> # include <libopencm3/stm32/l4/timer.h>
#elif defined(STM32U5)
# include <libopencm3/stm32/u5/timer.h>
#elif defined(STM32G0) #elif defined(STM32G0)
# include <libopencm3/stm32/g0/timer.h> # include <libopencm3/stm32/g0/timer.h>
#elif defined(STM32G4) #elif defined(STM32G4)

View File

@@ -0,0 +1,36 @@
/** @defgroup timer_defines Timer Defines
@brief <b>libopencm3 Defined Constants and Types for the STM32U5xx Timers</b>
@ingroup STM32U5xx_defines
@version 1.0.0
@date 20 October 2024
@author @htmlonly &copy; @endhtmlonly 2015 Karl Palsson <karlp@tweak.net.au>
LGPL License Terms @ref lgpl_license
*/
/*
* This file is part of the libopencm3 project.
*
* Copyright (C) 2015 Karl Palsson <karlp@tweak.net.au>
*
* This library is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with this library. If not, see <http://www.gnu.org/licenses/>.
*/
#pragma once
#include <libopencm3/stm32/common/timer_common_all.h>

View File

@@ -35,6 +35,7 @@ TGT_CFLAGS += $(STANDARD_FLAGS)
ARFLAGS = rcs ARFLAGS = rcs
OBJS += timer_common_all.o
OBJS += exti_common_all.o OBJS += exti_common_all.o
OBJS += iwdg_common_all.o OBJS += iwdg_common_all.o
OBJS += i2c_common_v2.o OBJS += i2c_common_v2.o