Commit graph

7811 commits

Author SHA1 Message Date
fros4943 1fbce051c3 remade the use of symbols.[c,h].
symbols will now always be included in compilation
2007-01-09 09:13:36 +00:00
oliverschmidt cada8d324f Up to now the DNS resolver relied on the uIP 1/2 second polling for its retry management (implementing a linear back-off). But Contiki 2.x uIP doesn't implement the 1/2 second polling for UDP connections anymore! Therefore I added an event timer to the DNS resolver for its retry management. I went for a 1 second interval (still with the same linear back-off) as compromise between officially recommended longer intervals (i.e. BIND with 5 seconds and exponential back-off) and a reasonable user experience for the self induced packet loss in ARP setups. 2007-01-07 13:52:25 +00:00
bg- 7993f46e76 * More control chars that needs binary output. 2007-01-05 18:05:21 +00:00
bg- e4305295f7 * First stab at loadable contiki modules in plural form. 2007-01-05 18:00:55 +00:00
bg- c367a49606 * Typedef for scratch buffer. 2007-01-05 17:47:53 +00:00
bg- 8944a3f6c8 More'or less a verbatim copy of the traditional elfloader but built
upon cmod and cle.
2007-01-05 17:46:26 +00:00
oliverschmidt 75f4408119 Autoload the WinPcap driver now that I consider it fully functional. 2007-01-03 10:36:58 +00:00
oliverschmidt 00101cc177 Added support for the cc65 target 'apple2enh' (Enhanced Apple //e). 2007-01-03 10:29:17 +00:00
oliverschmidt ef8ae0e158 Added an initial Makefile for the cc65 tool chain (www.cc65.org). For now it allows to build the statically linked hello-world example. 2007-01-03 10:26:40 +00:00
bg- 965342ff43 * Increase portability by avoiding "-" in regexp sets.
* Sort vector before use.
2007-01-02 12:39:48 +00:00
oliverschmidt 69492ff4ea Removed Contiki 1.x makefiles to avoid confusion on understanding the (already complex enough) Contiki 2.x build system. 2006-12-31 14:30:11 +00:00
oliverschmidt 6c4bcfb86f Moved 6502-specific implementation of local continuations into a 'sys' folder in order to allow the
#include "sys/lc.h"

in core/sys/pt.h to find it.
2006-12-31 14:26:02 +00:00
oliverschmidt 859ab1b706 Allow a target-specific makesfile to supply a custom rule for dependency file generation in the same way it is done for all other rules. 2006-12-31 14:16:32 +00:00
oliverschmidt 07a26c584a Introduced a new variable CONTIKI_OBJECTFILES in order to allow target-specific makesfile to add object files to the Contiki library which are not compiled from .c files but i.e. assembled from .S files. 2006-12-31 13:54:24 +00:00
oliverschmidt 355630f2d6 The whole Contiki 2.x CVS project doesn't contain a single usage of the Contiki preemptive multithreading library. Therefore I argue to remove it from the default build in order to lower the barrier to entry for new - or old ;-) targets - especially those without a timer interrupt.
If the Contiki preemptive multithreading library is desirable for a specific target it can be added with a simple

CONTIKIFILES += $(THREADS)

in the Makefile.$(TARGET).
2006-12-31 13:46:40 +00:00
oliverschmidt 99fd132d3c If we explicitly do a
ifndef LD
  LD = $(CC)
endif

we could as well use $(LD) for linking ;-)
2006-12-31 13:34:59 +00:00
oliverschmidt 074e74a584 Avoid generating new CTK events if process_exit() and LOADER_UNLOAD() was already called. 2006-12-29 23:05:19 +00:00
oliverschmidt 3229e5fa9d Minor source consistency improvement. 2006-12-29 00:06:32 +00:00
bg- 79899c69c1 * Change baudrate to 115200.
* Switch from use of select to blocking reads.

* Print non ascii bytes as hex.
2006-12-27 14:19:22 +00:00
barner 7f5c1fde0f Add 'cuad0' device. 2006-12-22 17:25:13 +00:00
barner 01983e2a77 Fix symbol table generation for the AVR platform. 2006-12-22 17:21:50 +00:00
barner d4b3436d21 Add new plattform definition for the STK 501 board featuring an
Atmel ATmega128.

Very brief instructions:

- Configure your programmer etc. in Makefile.stk501
- Use 'make upload' to flash your STK501.
- Setup a SLIP connection to your board (on the first serial port)
  and make sure you can ping it.
- Use 'make loadable_prg.ko' to build a demo module.
- gcc -ocodeprop ../../tools/codeprop.c
- ./codeprop <IP of STK> loadable_prg.ko
- Watch the module print "Tick, Tack, Tick, ..." on the second
  serial port.
2006-12-22 17:19:22 +00:00
barner 94eecb64f1 Respect MMEM_CONF_SIZE user option, otherwise default to 4096 byts
for MMEM_SIZE.
2006-12-22 17:14:06 +00:00
barner c4df71bb7e - AVR specific implementation of (linear) symbol table lookup, that uses the
necessary functions to load symbols from flash ROM.
- Implementing binary search is on my TODO list.
2006-12-22 17:12:31 +00:00
barner 54ac97990d - Fix / enhence AVR specific part of the ELF relocator. Some relocation types
are still unsupported and will write warings on the second serial port.

- Fix elfloader_arch_write_rom (), which has to reside in a special bootloader
  section of flash rom. The code is heavly inspired from avr-libc's documentation.

- Prelimiary implementation of elfloader_arch_allocate_rom: Code is
  flashed to fixed address 0x8000. Note that on the AVR, flash rom is adressed
  word (16bit)-wise, not byte wise!

- Preliminary implementation of elfloader_arch_allocate_ram using the mmem
  module. Current code does not free the memory.
2006-12-22 17:10:54 +00:00
barner 5d6abc4cfe Provide dummy implementations for the leds and minileds module in order
to unbreak the build.
2006-12-22 17:05:31 +00:00
barner 9735acb03f - Re-implementation of timing facility using timer0 and the internal clock
source. Using an external clock source (esp. the real-time clock) did not
  work. This  might as well be a local problem (e.g. hardware).
- Provide some dummy implementations in order to fix the build.
2006-12-22 17:04:38 +00:00
barner 6eb200cfc1 Fix build: location of eeprom.h changed. 2006-12-22 17:02:24 +00:00
barner 45cbcde797 - Fix/enhence support for RS232 interface on AVR (ATMega128):
* support for multiple ports: (extended interface with 'port' parameter)
 * new function: rs232_redirect_stdout that allows you to redirect stdout
   to a serial port
- In order to implement support for other MCUs, adopt a copy of
   rs232_atmega128.h
2006-12-22 17:00:45 +00:00
barner 86f37e7c1b AVR specific implementation of contiki multi-threating architecture
(supporting per-thread stacks).
2006-12-22 16:55:53 +00:00
barner 265f45feba - Fix build of contiki-2.x AVR port.
- Generate symbol tables for loadable modules.
2006-12-22 16:54:36 +00:00
bg- 98cea83de5 * Include loader/symbols-def.h and use extern declarations. 2006-12-20 14:41:28 +00:00
bg- d6b06f0661 * Add extern declarations. 2006-12-20 14:36:28 +00:00
bg- e5aef6ad8d * Typo in comment.
* Parse nm input and create namelist.
2006-12-20 13:50:15 +00:00
bg- 8adcee17c3 * Typo in comment.
* Use nm and awk to create namelist.
2006-12-20 13:46:14 +00:00
bg- 3c9fe59106 * Typo in comment.
* More info in printfs.
2006-12-20 13:43:47 +00:00
bg- 29572668ac * Typo in comment. 2006-12-20 13:42:55 +00:00
bg- e3a501a8c1 * Resurrect traditional elfloader interface. 2006-12-20 13:38:33 +00:00
adamdunkels 946e11a0fc Added optional binary search 2006-12-19 09:31:37 +00:00
adamdunkels 419c5f3c17 Symbol is const 2006-12-19 09:30:57 +00:00
adamdunkels bdb317274e Added generation of symbols.[ch], removed cfs-eeprom (should be in platform makefile instead) 2006-12-19 09:22:25 +00:00
adamdunkels 2e8431b3d9 Added generation of symbols.[ch] 2006-12-19 09:21:12 +00:00
adamdunkels b8b47d2cc9 Added cfs-eeprom 2006-12-19 09:19:14 +00:00
adamdunkels 163541eaf5 Added note on burn-nodeid 2006-12-19 09:18:11 +00:00
adamdunkels 36d204b992 Script for generating empty symbols.[ch] 2006-12-19 08:58:21 +00:00
adamdunkels 0cd74875da Updated script for generating symbols.[ch] 2006-12-19 08:57:26 +00:00
fros4943 1e23eb29ba added support for elf32_rel relocation entries (earlier only elf32_rela)
added support for rodata section

(x86 compability)
2006-12-18 15:35:16 +00:00
fros4943 98f8d160b3 removed symbols.h (now symbols-def.h)
symbols.h should be autogenerated at compile time
2006-12-18 15:28:49 +00:00
fros4943 1e254866d5 updated reference to symbols.h 2006-12-18 15:27:18 +00:00
fros4943 2978147e22 scripts for auto-generating symbols.[c,h]
may for example be called from a platform makefile
2006-12-18 15:25:01 +00:00