stm32f1: Move ADC and SPI code from gpio.c to spi.c and adc.c
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
11
src/stm32f1/internal.h
Normal file
11
src/stm32f1/internal.h
Normal file
@@ -0,0 +1,11 @@
|
||||
#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[];
|
||||
|
||||
#endif // internal.h
|
||||
Reference in New Issue
Block a user