mirror of
git://soft.sys114.com/klipper
synced 2026-02-09 14:04:23 +09:00
17 lines
341 B
C
17 lines
341 B
C
#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
|