Skip to content

Commit ef98896

Browse files
committed
Added timer support for STM32F7
1 parent 3d04d40 commit ef98896

File tree

8 files changed

+43
-2
lines changed

8 files changed

+43
-2
lines changed

include/unicore-mx/stm32/f4/timer.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,6 @@ LGPL License Terms @ref lgpl_license
3232
#ifndef UNICOREMX_TIMER_H
3333
#define UNICOREMX_TIMER_H
3434

35-
#include <unicore-mx/stm32/common/timer_common_f24.h>
35+
#include <unicore-mx/stm32/common/timer_common_f247.h>
3636

3737
#endif

include/unicore-mx/stm32/f7/timer.h

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
/** @defgroup timer_defines Timer Defines
2+
3+
@brief <b>unicore-mx Defined Constants and Types for the STM3274xx Timers</b>
4+
5+
@ingroup STM32F7xx_defines
6+
7+
@version 1.0.0
8+
9+
@date 8 March 2013
10+
11+
@author @htmlonly &copy; @endhtmlonly 2011 Fergus Noble <[email protected]>
12+
13+
LGPL License Terms @ref lgpl_license
14+
*/
15+
/*
16+
* Copyright (C) 2011 Fergus Noble <[email protected]>
17+
*
18+
* This library is free software: you can redistribute it and/or modify
19+
* it under the terms of the GNU Lesser General Public License as published by
20+
* the Free Software Foundation, either version 3 of the License, or
21+
* (at your option) any later version.
22+
*
23+
* This library is distributed in the hope that it will be useful,
24+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
25+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
26+
* GNU Lesser General Public License for more details.
27+
*
28+
* You should have received a copy of the GNU Lesser General Public License
29+
* along with this library. If not, see <http://www.gnu.org/licenses/>.
30+
*/
31+
32+
#ifndef UNICOREMX_TIMER_H
33+
#define UNICOREMX_TIMER_H
34+
35+
#include <unicore-mx/stm32/common/timer_common_f247.h>
36+
37+
#endif

include/unicore-mx/stm32/timer.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@
3030
# include <unicore-mx/stm32/f3/timer.h>
3131
#elif defined(STM32F4)
3232
# include <unicore-mx/stm32/f4/timer.h>
33+
#elif defined(STM32F7)
34+
# include <unicore-mx/stm32/f7/timer.h>
3335
#elif defined(STM32L0)
3436
# include <unicore-mx/stm32/l0/timer.h>
3537
#elif defined(STM32L1)

lib/stm32/f4/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ OBJS += crc_common_all.o dac_common_all.o dma_common_f247.o \
4343
gpio_common_all.o gpio_common_f0234.o i2c_common_all.o \
4444
iwdg_common_all.o pwr_common_all.o rtc_common_l1f024.o \
4545
spi_common_all.o spi_common_l1f124.o timer_common_all.o \
46-
timer_common_f234.o timer_common_f24.o usart_common_all.o \
46+
timer_common_f2347.o timer_common_f247.o usart_common_all.o \
4747
usart_common_f124.o flash_common_f234.o flash_common_f24.o \
4848
hash_common_f24.o crypto_common_f24.o exti_common_all.o \
4949
rcc_common_all.o rng_common_f247.o

lib/stm32/f7/Makefile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,8 @@ OBJS = rcc.o gpio.o gpio_common_all.o gpio_common_f0234.o
4343
OBJS += rcc_common_all.o flash_common_f234.o flash_common_f24.o usart_f7.o \
4444
i2c_common_all.o dma_common_f247.o usart_common_all.o exti_common_all.o rng_common_f247.o
4545

46+
OBJS += timer_common_all.o timer_common_f2347.o timer_common_f247.o
47+
4648
OBJS += usbd.o usbd_ep0.o usbd_transfer.o
4749
OBJS += usbd_dwc_otg.o usbd_stm32_otg_fs.o usbd_stm32_otg_hs.o
4850
OBJS += usbd_msc.o

0 commit comments

Comments
 (0)