aboutsummaryrefslogtreecommitdiffstats
path: root/src/stm32f1/internal.h
blob: 73aa179b5f179a70632f3a364aad615aeea96c20 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#ifndef __STM32F1_INTERNAL_H
#define __STM32F1_INTERNAL_H
// Local definitions for STM32F1 code

#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