aboutsummaryrefslogtreecommitdiffstats
path: root/libmaple/stm32.h
blob: 21c18dfe7cfc1070e45a6b1a53cd0eea429ccbc7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/**
 *  @brief General STM32 specific definitions
 */

#ifndef _STM32_H_
#define _STM32_H_

#define PCLK1   36000000U
#define PCLK2   72000000U

#ifdef STM32_MEDIUM_DENSITY
    #define NR_INTERRUPTS 43
#else
#ifdef STM32_HIGH_DENSITY
    #define NR_INTERRUPTS 60
#else
#error "No STM32 board type defined!"
#endif
#endif

#endif