view stm32f10x_conf.h @ 24:1e2fa7396f98

Reduce prescaler to 2, the flash is capable of 25MHz reads (although the touch screen is limited to ~2.5MHz)
author Daniel O'Connor <darius@dons.net.au>
date Sat, 17 Nov 2012 12:17:58 +1030
parents 74e9b3baac1e
children
line wrap: on
line source

/* Used to control which peripheral code is used */

/* Define to prevent recursive inclusion -------------------------------------*/
#ifndef __STM32F10x_CONF_H
#define __STM32F10x_CONF_H

/* Includes ------------------------------------------------------------------*/
/* Uncomment the line below to enable peripheral header file inclusion */
#ifdef STM32F10X_ADC_EN
#include "stm32f10x_adc.h"
#endif
#ifdef STM32F10X_BKP_EN
#include "stm32f10x_bkp.h"
#endif
#ifdef STM32F10X_CAN_EN
#include "stm32f10x_can.h"
#endif
#ifdef STM32F10X_CRC_EN
#include "stm32f10x_crc.h"
#endif
#ifdef STM32F10X_DAC_EN
#include "stm32f10x_dac.h"
#endif
#ifdef STM32F10X_DBGMCU_EN
#include "stm32f10x_dbgmcu.h"
#endif
#ifdef STM32F10X_DMA_EN
#include "stm32f10x_dma.h"
#endif
#ifdef STM32F10X_EXTI_EN
#include "stm32f10x_exti.h"
#endif
#ifdef STM32F10X_FLASH_EN
#include "stm32f10x_flash.h"
#endif
#ifdef STM32F10X_FSMC_EN
#include "stm32f10x_fsmc.h"
#endif
#ifdef STM32F10X_GPIO_EN
#include "stm32f10x_gpio.h"
#endif
#ifdef STM32F10X_I2C_EN
#include "stm32f10x_i2c.h"
#endif
#ifdef STM32F10X_IWDG_EN
#include "stm32f10x_iwdg.h"
#endif
#ifdef STM32F10X_PWR_EN
#include "stm32f10x_pwr.h"
#endif
#ifdef STM32F10X_RCC_EN
#include "stm32f10x_rcc.h"
#endif
#ifdef STM32F10X_RTC_EN
#include "stm32f10x_rtc.h"
#endif
#ifdef STM32F10X_SDIO_EN
#include "stm32f10x_sdio.h"
#endif
#ifdef STM32F10X_SPI_EN
#include "stm32f10x_spi.h"
#endif
#ifdef STM32F10X_TIM_EN
#include "stm32f10x_tim.h"
#endif
#ifdef STM32F10X_USART_EN
#include "stm32f10x_usart.h"
#endif
#ifdef STM32F10X_WWDG_EN
#include "stm32f10x_wwdg.h"
#endif

#include "misc.h"  /* High level functions for NVIC and SysTick (add-on to CMSIS functions) */


/* Exported types ------------------------------------------------------------*/
/* Exported constants --------------------------------------------------------*/
/* Uncomment the line below to expanse the "assert_param" macro in the
   Standard Peripheral Library drivers code */
/* #define USE_FULL_ASSERT    1 */

/* Exported macros -----------------------------------------------------------*/
#ifdef  USE_FULL_ASSERT
/**
  * @brief  The assert_param macro is used for function's parameters check.
  * @param expr: If expr is false, it calls assert_failed function
  *   which reports the name of the source file and the source
  *   line number of the call that failed.
  *   If expr is true, it returns no value.
  * @retval : None
  */
  #define assert_param(expr) ((expr) ? (void)0 : assert_failed((const uint8_t *)__FILE__, (const uint8_t *)__FUNCTION__, __LINE__))
/* Exported functions ------------------------------------------------------- */
  void assert_failed(const uint8_t* file, const uint8_t* function, uint32_t line);
#else
  #define assert_param(expr) ((void)0)
#endif /* USE_FULL_ASSERT */

// mthomas:
#ifdef __GNUC__
#define RAMFUNC __attribute__ ((long_call, section(".ramfunc")))
#else
#define RAMFUNC
#endif

#endif /* __STM32F10x_CONF_H */

/******************* (C) COPYRIGHT 2009 STMicroelectronics *****END OF FILE****/