mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-15 12:25:20 +03:00
fixed undefined reference to usb1WireInitialize()
This commit is contained in:
parent
6e37b352e7
commit
f6d99f356c
1 changed files with 2 additions and 3 deletions
|
@ -73,9 +73,6 @@ static void gpio_set_mode(GPIO_TypeDef* gpio, uint16_t pin, GPIO_Mode mode) {
|
|||
gpioInit(gpio, &cfg);
|
||||
}
|
||||
|
||||
#ifdef STM32F10X
|
||||
static volatile uint32_t in_cr_mask, out_cr_mask;
|
||||
|
||||
void usb1WireInitialize()
|
||||
{
|
||||
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 void gpio_prep_vars(uint16_t escIndex)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue