remove redundant gpio clock enables

sipo
Ondřej Hruška 6 years ago
parent 5edbf1306f
commit d1e24608c7
Signed by: MightyPork
GPG Key ID: 2C5FD5035250423D
  1. 1
      platform/hw_utils.h
  2. 8
      platform/platform.c

@ -7,7 +7,6 @@
#ifndef GEX_PIN_UTILS_H
#define GEX_PIN_UTILS_H
#include <stm32f072xb.h>
#include "platform.h"
#include "resources.h"

@ -22,13 +22,7 @@ void plat_init_resources(void)
{
uint32_t rv = 0;
__HAL_RCC_GPIOA_CLK_ENABLE();
__HAL_RCC_GPIOB_CLK_ENABLE();
__HAL_RCC_GPIOC_CLK_ENABLE();
__HAL_RCC_GPIOD_CLK_ENABLE();
__HAL_RCC_GPIOE_CLK_ENABLE();
__HAL_RCC_GPIOF_CLK_ENABLE();
// enable clock for units we use
hw_periph_clock_enable(DMA1);
#ifdef DMA2
hw_periph_clock_enable(DMA2);

Loading…
Cancel
Save