Skip to content

Commit

Permalink
pipxtreme: Updated chconf.h and mcuconf.h, resolve variable conflict …
Browse files Browse the repository at this point in the history
…between cmsis_system.c and HAL.
  • Loading branch information
glowtape committed Jan 11, 2018
1 parent f211623 commit 017dde1
Show file tree
Hide file tree
Showing 3 changed files with 229 additions and 223 deletions.
6 changes: 6 additions & 0 deletions flight/targets/pipxtreme/board-info/cmsis_system.c
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@
*/

#include "stm32f10x.h"
#include "pios_config.h"

/**
* @}
Expand Down Expand Up @@ -152,6 +153,10 @@
/*******************************************************************************
* Clock Definitions
*******************************************************************************/
#if defined(PIOS_INCLUDE_CHIBIOS)
/* ChibiOS supplies and inits this via HAL. */
extern uint32_t SystemCoreClock;
#else
#ifdef SYSCLK_FREQ_HSE
uint32_t SystemCoreClock = SYSCLK_FREQ_HSE; /*!< System Clock Frequency (Core Clock) */
#elif defined SYSCLK_FREQ_24MHz
Expand All @@ -167,6 +172,7 @@
#else /*!< HSI Selected as System Clock source */
uint32_t SystemCoreClock = HSI_VALUE; /*!< System Clock Frequency (Core Clock) */
#endif
#endif // defined(PIOS_INCLUDE_CHIBIOS)

__I uint8_t AHBPrescTable[16] = {0, 0, 0, 0, 0, 0, 0, 0, 1, 2, 3, 4, 6, 7, 8, 9};
/**
Expand Down
Loading

0 comments on commit 017dde1

Please sign in to comment.