Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: azonenberg/stm32-cpp
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: b2170cd11064
Choose a base ref
...
head repository: azonenberg/stm32-cpp
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 08b45ac4e18c
Choose a head ref
  • 1 commit
  • 2 files changed
  • 1 contributor

Commits on Nov 22, 2021

  1. Copy the full SHA
    08b45ac View commit details
Showing with 19 additions and 3 deletions.
  1. +5 −0 devices/inc/stm32fxxx.h
  2. +14 −3 devices/link/stm32f031.ld
5 changes: 5 additions & 0 deletions devices/inc/stm32fxxx.h
Original file line number Diff line number Diff line change
@@ -72,4 +72,9 @@ extern "C" uint32_t EnterCriticalSection();
*/
extern "C" void LeaveCriticalSection(uint32_t cpu_sr);

//Linker variables
extern uint8_t __data_romstart;
extern uint8_t __data_start;
extern uint8_t __data_end;

#endif
17 changes: 14 additions & 3 deletions devices/link/stm32f031.ld
Original file line number Diff line number Diff line change
@@ -19,10 +19,21 @@ SECTIONS
*(.text.*)
*(.rodata)
*(.ctors)

. = ALIGN(4);
KEEP(*(.init))

. = ALIGN(4);
__ctor_start = .;
*(.init_array)
__ctor_end = .;
__preinit_array_start = .;
KEEP(*(.preinit_array))
__preinit_array_end = .;

. = ALIGN(4);
__init_array_start = .;
KEEP(*(SORT(.init_array.*)))
KEEP(*(.init_array))
__init_array_end = .;

__dtor_start = .;
*(.fini_array)
__dtor_end = .;