blob: e509927b622e75083b939a55887869df3132602f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
#ifndef __STM32F1_INTERNAL_H
#define __STM32F1_INTERNAL_H
// Local definitions for STM32F1 code
#include "stm32f1xx.h"
#define GPIO(PORT, NUM) (((PORT)-'A') * 16 + (NUM))
#define GPIO2PORT(PIN) ((PIN) / 16)
extern GPIO_TypeDef *const digital_regs[];
extern uint32_t const digital_pins[];
void udelay(uint32_t usecs);
#endif // internal.h
|