aboutsummaryrefslogtreecommitdiffstats
path: root/src/stm32f0/internal.h
blob: 5247a9c7b9e9349925b370d81452a86288900f4b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#ifndef __STM32F0_INTERNAL_H
#define __STM32F0_INTERNAL_H
// Local definitions for STM32F0 code

#include "stm32f0xx.h"

#define GPIO(PORT, NUM) (((PORT)-'A') * 16 + (NUM))
#define GPIO2PORT(PIN) ((PIN) / 16)

extern uint8_t const avail_pins[];

void udelay(uint32_t usecs);
void gpio_init(void);
void TimerInit(void);

#endif // internal.h