Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions gd32e10x/cmsis/gd/gd32e10x/include/gd32e10x.h
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,14 @@ OF SUCH DAMAGE.
#error "Please select the target board type used in your application (in gd32e10x.h file)"
#endif
#endif /* high speed crystal oscillator value */

#if HXTAL_VALUE == 8000000
#define HXTAL_VALUE_8M HXTAL_VALUE
#elif HXTAL_VALUE == 25000000
#define HXTAL_VALUE_25M HXTAL_VALUE
#else
#error "GD32E10X lib only support 8M and 25M oscillator (HXTAL)"
#endif

/* define startup timeout value of high speed crystal oscillator (HXTAL) */
#if !defined (HXTAL_STARTUP_TIMEOUT)
Expand Down
14 changes: 8 additions & 6 deletions gd32e10x/cmsis/gd/gd32e10x/source/system_gd32e10x.c
Original file line number Diff line number Diff line change
Expand Up @@ -129,12 +129,14 @@ void SystemInit (void)

/* configure the system clock source, PLL Multiplier, AHB/APBx prescalers and Flash settings */
system_clock_config();

#ifdef VECT_TAB_SRAM
nvic_vector_table_set(NVIC_VECTTAB_RAM,VECT_TAB_OFFSET);
#else
nvic_vector_table_set(NVIC_VECTTAB_FLASH,VECT_TAB_OFFSET);
#endif

/*
#ifdef VECT_TAB_SRAM
nvic_vector_table_set(NVIC_VECTTAB_RAM,VECT_TAB_OFFSET);
#else
nvic_vector_table_set(NVIC_VECTTAB_FLASH,VECT_TAB_OFFSET);
#endif
*/

}

Expand Down
Loading