⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 readme.txt

📁 AT91SAM7 SWI, Remap, GPIO, PIT and stdio Example ( Gamma )
💻 TXT
字号:
General Example for Atmel AT91SAM7S controllers - "GAMMA"

by Martin Thomas, Kaiserslautern, Germany
   <eversmith@heizung-thomas.de>
   http://www.siwawi.arubi.uni-kl.de/avr_projects/arm_projects

Code is prepared for the GNU-Toolchain (arm-elf-gcc, 
arm-elf-binutils, newlib as in WinARM, Yagato or GNUARM).
Tested with WinARM.
  
No guarantees, warrantees, or promises, implied or otherwise.
May be used for hobby or commercial purposes. 
A credit in the comments of the source or the documentation 
of projects which use (parts of) this code would be nice.


Changelog:


20070830:
- Makefile: updated
- swi_handler.s: - restore of registers corrected. some reorganistaion

20070517
- main.c: adjusted iprintf parameters to avoid warnings
- dbg.c: parameter to printk const to avoid warning

20061101
- swi_handler.S: - .weak SWI_Handler_User so assembler replacment will be used 
                 - "automaticly" when C-function SWI_Handler_User is not provided
- Cstartup.S: - IRQ_Handler_Entry update (save one "push" and "pop") 
              - FIQ-stack init
- Cstartup_SAM7.C : update with code from Atmel USB_UART example
- support-files for flash-programming with OpenOCD (precompiled oocd for Win32 available from www.yagarto.de)
- Makefile: - update for target program/OPENOCD (FLASH_TOOL=OPENOCD and FORMAT=binary now default)
            - Cstartup_SAM7.c can be compiled in thumb-mode: moved from SRCARM to SRC

20061030
- added support for AT91SAM7S128
- Update of AT91*.h and lib_*.h with files from Atmel USB AppNote

20060910
- fixed start-address of flash in Board.h
- made link-register in swi-call-macros a "clobber"

20060904
- do_SWI() in swi.h does not compile with optimization disable (-O0).
  Currently no real workaround (you could use -O1 or higher),
  so this function and the demo in main.c can now be disabled by
  a define in swi.h (disabled by default).

20060902
- modifided memory-postion/sections for IRQ-Assembler-Wrapper
  and SWI-Assembler-Handler (now only the Exception-vectors
  reside in the vectorg/vectmapped sections) see CStartup.S,
  swi_handler.S
- PIT Interrupt-Handler in RAM (__ramfunc), modified parameter
  to configuer-interrupt functions ((void*)) to avoid warning
- used defined values for memory-dump (main.c/main())
- fixed typos in Board.h, some modified comments

20060804
- added support for AT91SAM7S256, target can be selected
  in makefile. 
- Additional definition of Submodel passed to the compiler 
  (see Makefile/__WINARMSUBMDL_*)
- Modified linker-scripts to support both targets without
  providing 4 complete scripts. Split of memory- and section-
  definitions in separate files to be included from the
  "real" linker-script
- Support of the SAM7-P evaulation board. The demo now
  supports the Atmel- and OX-boards. Configuration in 
  Board.h

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -