main.h 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. //*----------------------------------------------------------------------------
  2. //* ATMEL Microcontroller Software Support - ROUSSET -
  3. //*----------------------------------------------------------------------------
  4. //* The software is delivered "AS IS" without warranty or condition of any
  5. //* kind, either express, implied or statutory. This includes without
  6. //* limitation any warranty or condition with respect to merchantability or
  7. //* fitness for any particular purpose, or against the infringements of
  8. //* intellectual property rights of others.
  9. //*----------------------------------------------------------------------------
  10. //* File Name : main.h
  11. //* Object :
  12. //*
  13. //* 1.0 27/03/03 HIi : Creation
  14. //* 1.01 03/05/04 HIi : AT9C_VERSION incremented to 1.01
  15. //* 1.02 15/06/04 HIi : AT9C_VERSION incremented to 1.02 ==>
  16. //* Add crc32 to verify dataflash download
  17. //* 1.03 18/04/05 MLC : AT91C_VERSION incremented to 1.03g
  18. //* Repeat boot on CRC Failure
  19. //* Change Page Size to 1056
  20. //* Reduce SPI speed to 4 Mbit
  21. //* Change U-Boot boot address to a 1056 byte page boundary
  22. //* 1.04 30/04/05 USA : AT91C_VERSION incremented to 1.04
  23. //* 1.05 07/08/06 USA : AT91C_VERSION incremented to 1.05
  24. //* Will only support loading Dataflashboot.bin and U-Boot
  25. //*----------------------------------------------------------------------------
  26. #ifndef main_h
  27. #define main_h
  28. #include "embedded_services.h"
  29. #define AT91C_DOWNLOAD_BASE_ADDRESS 0x20000000
  30. #define AT91C_DOWNLOAD_MAX_SIZE 0x00040000
  31. #define AT91C_OFFSET_VECT6 0x14 //* Offset for ARM vector 6
  32. #define AT91C_VERSION "VER 1.05"
  33. // Global variables and functions definition
  34. extern unsigned int GetTickCount(void);
  35. #endif