STM32F0xx Standard Peripherals Firmware Library: main.c File Reference

STM32F0xx Standard Peripherals Library

STM32F0xx_StdPeriph_Examples/FLASH/Flash_WriteProtection/main.c File Reference
#include "main.h"

Go to the source code of this file.

Defines

#define BANK1_WRITE_END_ADDR   ((uint32_t)0x08008000)
#define BANK1_WRITE_START_ADDR   ((uint32_t)0x08006000)
#define FLASH_PAGE_PROGRAM
#define FLASH_PAGE_SIZE   ((uint16_t)0x400)
#define FLASH_PAGES_TO_BE_PROTECTED   (OB_WRP_Pages20to23 | OB_WRP_Pages44to47 | OB_WRP_Pages60to63)

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 = 1, 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

int main (void)
 Main program.

Variables

uint32_t Address = 0x0
uint16_t Data = 0x1753
uint32_t EraseCounter = 0x0
__IO FLASH_Status FLASHStatus = FLASH_COMPLETE
__IO TestStatus MemoryProgramStatus = PASSED
uint32_t NbrOfPage
uint32_t ProtectedPages = 0x0
uint32_t WRPR_Value = 0xFFFFFFFF
STM32L1xx Standard Peripherals Library: Footer

 

 

 For complete documentation on STM32 Microcontrollers visit www.st.com/STM32