stm32/f0: rcc.c Use common version instead of duplicate code.
Pulls out duplicate calls from f0/rcc.c and uses the common version which also means that f0 can use rcc_peripheral_enable() now which is in common but not the old rcc versions.
This commit is contained in:
committed by
Karl Palsson
parent
f51698fff4
commit
99f83eedcd
@@ -483,6 +483,8 @@ enum rcc_periph_rst {
|
||||
/* API Functions */
|
||||
/*****************************************************************************/
|
||||
|
||||
#include <libopencm3/stm32/common/rcc_common_all.h>
|
||||
|
||||
BEGIN_DECLS
|
||||
|
||||
void rcc_osc_ready_int_clear(enum rcc_osc osc);
|
||||
@@ -511,11 +513,6 @@ void rcc_clock_setup_in_hsi_out_24mhz(void);
|
||||
void rcc_clock_setup_in_hsi_out_32mhz(void);
|
||||
void rcc_clock_setup_in_hsi_out_40mhz(void);
|
||||
void rcc_clock_setup_in_hsi_out_48mhz(void);
|
||||
void rcc_periph_clock_enable(enum rcc_periph_clken periph);
|
||||
void rcc_periph_clock_disable(enum rcc_periph_clken periph);
|
||||
void rcc_periph_reset_pulse(enum rcc_periph_rst periph);
|
||||
void rcc_periph_reset_hold(enum rcc_periph_rst periph);
|
||||
void rcc_periph_reset_release(enum rcc_periph_rst periph);
|
||||
|
||||
END_DECLS
|
||||
|
||||
|
||||
Reference in New Issue
Block a user