aboutsummaryrefslogtreecommitdiffstats
path: root/src/stm32f0/internal.h
blob: 35c3000fa04d01ad5ac1a7b294a801e07c174088 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#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 gpio_init(void);
void TimerInit(void);

#endif // internal.h