fixed undefined reference to usb1WireInitialize()

This commit is contained in:
4712 2015-09-02 12:45:31 +02:00
parent 6e37b352e7
commit f6d99f356c
1 changed files with 2 additions and 3 deletions

View File

@ -73,9 +73,6 @@ static void gpio_set_mode(GPIO_TypeDef* gpio, uint16_t pin, GPIO_Mode mode) {
gpioInit(gpio, &cfg); gpioInit(gpio, &cfg);
} }
#ifdef STM32F10X
static volatile uint32_t in_cr_mask, out_cr_mask;
void usb1WireInitialize() void usb1WireInitialize()
{ {
for (volatile uint8_t i = 0; i<ESC_COUNT ; i++){ for (volatile uint8_t i = 0; i<ESC_COUNT ; i++){
@ -83,6 +80,8 @@ void usb1WireInitialize()
} }
} }
#ifdef STM32F10X
static volatile uint32_t in_cr_mask, out_cr_mask;
static __IO uint32_t *cr; static __IO uint32_t *cr;
static void gpio_prep_vars(uint16_t escIndex) static void gpio_prep_vars(uint16_t escIndex)
{ {