Skip to content

Commit

Permalink
add central system header
Browse files Browse the repository at this point in the history
  • Loading branch information
bkleiner committed Nov 7, 2024
1 parent 6cbdb9a commit b656b0e
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 12 deletions.
14 changes: 2 additions & 12 deletions src/core/project.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,9 @@
#include "config/config.h"
#include "config/feature.h"

#include "core/target.h"

#ifdef STM32
#include "driver/mcu/stm32/system.h"
#endif
#include "driver/mcu/system.h"

#ifdef AT32
#include "driver/mcu/at32/system.h"
#endif

#ifdef SIMULATOR
#include "driver/mcu/native/system.h"
#endif
#include "core/target.h"

#ifdef USE_FAST_RAM
#define FAST_RAM __attribute__((section(".fast_ram"), aligned(4)))
Expand Down
13 changes: 13 additions & 0 deletions src/driver/mcu/system.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#pragma once

#ifdef STM32
#include "driver/mcu/stm32/system.h"
#endif

#ifdef AT32
#include "driver/mcu/at32/system.h"
#endif

#ifdef SIMULATOR
#include "driver/mcu/native/system.h"
#endif

0 comments on commit b656b0e

Please sign in to comment.