Skip to content

Commit

Permalink
simplify clock config
Browse files Browse the repository at this point in the history
  • Loading branch information
bkleiner committed May 1, 2024
1 parent 426de16 commit a88badb
Show file tree
Hide file tree
Showing 15 changed files with 355 additions and 2,750 deletions.
1 change: 0 additions & 1 deletion src/driver/at32/system.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#pragma once

#ifdef AT32F4
#include <at32f435_437_clock.h>
#include <at32f435_437_conf.h>
#endif

Expand Down
1 change: 0 additions & 1 deletion src/driver/at32/time.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ static void debug_time_init() {
}

void time_init() {
system_clock_config();
crm_periph_clock_enable(CRM_SCFG_PERIPH_CLOCK, TRUE);

// interrupt only every 1ms
Expand Down
2 changes: 0 additions & 2 deletions src/driver/stm32/time.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,6 @@ static void debug_time_init() {
}

void time_init() {
SystemCoreClockUpdate();

#ifndef STM32H7
__HAL_RCC_PWR_CLK_ENABLE();
#endif
Expand Down
141 changes: 0 additions & 141 deletions src/system/at32f435/at32f435_437_clock.c

This file was deleted.

45 changes: 0 additions & 45 deletions src/system/at32f435/at32f435_437_clock.h

This file was deleted.

Loading

0 comments on commit a88badb

Please sign in to comment.