STM32F10x_StdPeriph_Examples/FLASH/Dual_Boot/main.c File Reference

Main program body. More...

#include "main.h"
#include "stm32f10x.h"
#include "stm32_eval.h"
#include "stm3210e_eval_lcd.h"

Go to the source code of this file.

Defines

#define BANK1_START_ADDRESS   0x08000000
#define BANK2_START_ADDRESS   0x08080000
#define MESSAGE1   " STM32 XL Density "
#define MESSAGE10   " 0x0 the base @ of Bank1/2"
#define MESSAGE11   " Operation Failed !"
#define MESSAGE12   "Bank 1/2 base @ -> 0"
#define MESSAGE2   " Device running on "
#define MESSAGE3   " STM3210E-EVAL "
#define MESSAGE5   " Joystick-DOWN: reset BFB2"
#define MESSAGE6   " bit to Boot from Bank2 "
#define MESSAGE7   " Joystick-UP: set BFB2 "
#define MESSAGE8   " bit to Boot from Bank1 "
#define MESSAGE9   " Joystick-SEL: program to "

Enumerations

enum  TestStatus {
  FAILED = 0, PASSED = !FAILED, FAILED = 0, PASSED = !FAILED,
  FAILED = 0, PASSED = !FAILED, FAILED = 0, PASSED = !FAILED,
  FAILED = 0, PASSED = !FAILED, FAILED = 0, PASSED = !FAILED,
  FAILED = 0, PASSED = !FAILED, FAILED = 0, PASSED = !FAILED,
  FAILED = 0, PASSED = !FAILED, FAILED = 0, PASSED = !FAILED,
  FAILED = 0, PASSED = !FAILED, FAILED = 0, PASSED = !FAILED,
  FAILED = 0, PASSED = !FAILED, FAILED = 0, PASSED = !FAILED,
  FAILED = 0, PASSED = !FAILED, FAILED = 0, PASSED = !FAILED,
  FAILED = 0, PASSED = !FAILED, FAILED = 0, PASSED = !FAILED,
  FAILED = 0, PASSED = !FAILED, FAILED = 0, PASSED = !FAILED,
  FAILED = 0, PASSED = !FAILED, FAILED = 0, PASSED = !FAILED,
  FAILED = 0, PASSED = !FAILED, FAILED = 0, PASSED = !FAILED,
  FAILED = 0, PASSED = !FAILED, FAILED = 0, PASSED = !FAILED
}

Functions

void Delay (__IO uint32_t nTime)
 Inserts a delay time.
int main (void)
 Main program.
void TimingDelay_Decrement (void)
 Decrements the TimingDelay variable.

Variables

RCC_ClocksTypeDef RCC_Clocks
static __IO uint32_t TimingDelay
USART_InitTypeDef USART_InitStructure

Detailed Description

Main program body.

Author:
MCD Application Team
Version:
V3.4.0
Date:
10/15/2010

THE PRESENT FIRMWARE WHICH IS FOR GUIDANCE ONLY AIMS AT PROVIDING CUSTOMERS WITH CODING INFORMATION REGARDING THEIR PRODUCTS IN ORDER FOR THEM TO SAVE TIME. AS A RESULT, STMICROELECTRONICS SHALL NOT BE HELD LIABLE FOR ANY DIRECT, INDIRECT OR CONSEQUENTIAL DAMAGES WITH RESPECT TO ANY CLAIMS ARISING FROM THE CONTENT OF SUCH FIRMWARE AND/OR THE USE MADE BY CUSTOMERS OF THE CODING INFORMATION CONTAINED HEREIN IN CONNECTION WITH THEIR PRODUCTS.

© COPYRIGHT 2010 STMicroelectronics

Definition in file STM32F10x_StdPeriph_Examples/FLASH/Dual_Boot/main.c.

STM32F10x Standard Peripherals Library: Footer

 

 

 

      For complete documentation on STM32(CORTEX M3) 32-bit Microcontrollers platform visit  www.st.com/STM32