Commit graph

1897 commits

Author SHA1 Message Date
adamdunkels 558ebf3c5d Renamed suc_send_uc() to suc_send(), fixed debug output 2007-03-20 12:27:32 +00:00
adamdunkels d937ff8d16 Fixed compilation problem, added send() call so that a packet is sent out immediately 2007-03-20 12:26:57 +00:00
adamdunkels 516f9316ab Added functions for accessing the data and length of a queued buffer 2007-03-20 12:26:23 +00:00
adamdunkels accea52d88 New Rime module: unique anonymous best effort broadcast 2007-03-20 11:59:55 +00:00
adamdunkels 8147f47aab Trickle implementation for Rime 2007-03-19 23:26:18 +00:00
adamdunkels e4a739a76c Added *_close() function to all Rime modules 2007-03-19 22:10:16 +00:00
adamdunkels aa1389e873 Removed unused files 2007-03-19 22:07:48 +00:00
adamdunkels 43326b5ae6 API change for Rime: *_setup() renamed to *_open() 2007-03-19 19:24:36 +00:00
adamdunkels a97285863e + energest.h 2007-03-19 00:33:11 +00:00
adamdunkels bba0485797 Experimental energy estimation code 2007-03-19 00:30:13 +00:00
adamdunkels 31a4d8504a Initial code for a Contiki real-time scheduler 2007-03-19 00:16:13 +00:00
adamdunkels 943a12613f + memb_inmemb 2007-03-16 16:53:33 +00:00
bg- cb6bda5378 * Support longer lease times. 2007-03-16 12:16:16 +00:00
adamdunkels cc87617ef2 Removed inclusion of non-existant file rime-types.h 2007-03-16 09:16:40 +00:00
adamdunkels 91fc3c3917 Renamed Rime output function 2007-03-15 22:11:06 +00:00
adamdunkels 786d0d1892 Copyright update 2007-03-15 21:46:07 +00:00
adamdunkels ec9ea6d366 Button sensor header 2007-03-15 21:42:09 +00:00
adamdunkels 92a5b01bed Radio sensor header file 2007-03-15 21:27:09 +00:00
adamdunkels c29eb96219 A Rime driver for the simple-cc2420 driver 2007-03-15 21:26:18 +00:00
adamdunkels 638640113e A very simple CC2420 driver that can only send and receive raw packets. No extra CC2420 functionality is enabled or used. 2007-03-15 21:26:00 +00:00
adamdunkels 2e6dbad62b node_id -> rimeaddr_node_addr 2007-03-15 21:25:06 +00:00
adamdunkels e4e57fca96 Renamed input function to rime_input() and the output function to rime_driver_send() 2007-03-15 21:24:11 +00:00
adamdunkels 833d098096 New Rime module: tree, a converge cast / tree data collection protocol 2007-03-15 20:04:30 +00:00
adamdunkels cc60843e8b New Rime module: mesh, a mesh routing protocol 2007-03-15 19:52:51 +00:00
adamdunkels ab0d556353 Added a new type for all addresses in Rime: rimeaddr_t. This is an abstract type that currently is defined as a 16-bit quantity but that most likely will be redefined in the future 2007-03-15 19:43:07 +00:00
adamdunkels 2b119b054e const qualifiers 2007-03-15 19:41:29 +00:00
adamdunkels fd33a89214 Renamed ulayer -> callbacks 2007-03-15 10:01:04 +00:00
adamdunkels 26a681cf37 rimebuf_totle() prototype & documentation 2007-03-15 09:57:00 +00:00
adamdunkels 16bdd2f18c Sequence number now reported 2007-03-15 09:56:30 +00:00
adamdunkels 168765a205 Compiler warning fix 2007-03-15 09:56:15 +00:00
adamdunkels 537ecb9198 UDP initialization fixed 2007-03-15 09:56:00 +00:00
adamdunkels fb23363a70 Removed abc-udp.c 2007-03-15 09:54:58 +00:00
adamdunkels 548e4ce556 New rime module: best-effort network flooding (nf) 2007-03-14 00:30:46 +00:00
adamdunkels 674f373f76 Renamed function for compacting the data in the rimebuf: rimebuf_compact 2007-03-14 00:30:11 +00:00
adamdunkels 91f8c4b8e4 Renamed driver output function to abc_driver_send 2007-03-14 00:29:05 +00:00
adamdunkels 355724669e Default channel allocations 2007-03-14 00:27:36 +00:00
adamdunkels 11627c2406 Added generic abc layer 2007-03-13 13:05:30 +00:00
adamdunkels ba1dc7105f Rime driver running over UDP 2007-03-13 13:02:33 +00:00
adamdunkels 358259105e Generic abc module 2007-03-13 13:01:48 +00:00
adamdunkels 6930910cd3 Renamed old netbuf -> rimebuf 2007-03-13 10:28:52 +00:00
adamdunkels ca359a6314 Removed the explicit header buffer; both the header and data are not in the same 'physical' buffer. Added function for copying referenced data into the rimebuf. 2007-03-13 10:28:16 +00:00
adamdunkels 21ef887f07 +Documentation 2007-03-13 10:27:36 +00:00
adamdunkels 2d7aab3ffe Initial import of the experimental Rime code into the SourceForge CVS. 2007-02-28 16:38:51 +00:00
bg- 429d41defd * General stuff for different baudrates:
- ubr argument to slip_arch_int

    - macros for calculating ubr

    - argument -Bbaudrate to tools tunslip and scat
2007-02-02 13:26:48 +00:00
bg- abbde5d8fa * Use convince macro uip_ipaddr_to_quad.
* Printf format check and fix format strings.

* More info in some printfs.

* Be conservative about keeping working routes in RREQ (forward) path.

* Put some spacing between forwarded packet and RREQ.
2007-02-01 14:33:05 +00:00
bg- 539ad552bd * Convince macro uip_ipaddr_to_quad. 2007-02-01 14:27:17 +00:00
bg- 7d5a6d6558 * Check for ip_id zero senders and low cost update of zero ip_id. 2007-02-01 14:04:06 +00:00
bg- 85fd100263 * PRINTF macro.
* Update printf on failed transmission.
2007-02-01 14:02:19 +00:00
bg- 95164eb39f * Perform RXFIFO overflow check as late as possible when sending. 2007-02-01 14:00:27 +00:00
bg- 44f81a5625 * s/_DEF_/_/g
* Value is not const and of unknown type.
2007-01-30 18:04:59 +00:00
bg- e80af3ed34 * Remove include. 2007-01-25 18:19:57 +00:00
bg- 90cbfbba9c * Conditional compilation on CC2420_RADIO rather than TMOTE_SKY. 2007-01-24 16:32:34 +00:00
bg- 2a879202a2 * Initial AVR port.
* Check for RXFIFO overflow before sending.

* Fix in loop that waits for SFD start.
2007-01-24 16:26:55 +00:00
adamdunkels 83b348631f Changed the generation of symbols to the mknmlist script. Now symbols.h is not automatically generated so we can use it as a normal include file and remove symbols-def.h. 2007-01-24 16:11:48 +00:00
bg- bea6aa5b3d * Don't request MAC level ACKs for packets we "try" to forward before
we have a route.
2007-01-24 16:08:27 +00:00
bg- 58bbd0b4da * Don't include signal.h. 2007-01-24 16:07:20 +00:00
bg- a88f797455 * Constness and voidness. 2007-01-23 12:29:50 +00:00
bg- f6936bfd51 * Comment. 2007-01-12 18:18:23 +00:00
bg- f8d7943735 * Switch from linear search to binary ditto.
* Symbol names is "const char *" but symbol values are "void *" (not
  "const char *").
2007-01-12 13:55:04 +00:00
bg- f888f4784c * Fix an miscalculation.
* Changing naming to be more explicit about file offsets.
2007-01-12 13:36:27 +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- 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
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
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- 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
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 71940f287f new symbols definition header.
should be included from autogenerated symbols.h
2006-12-18 15:23:04 +00:00
fros4943 060225a97a added parameter to relocate method
+ renamed write_text() to write_rom()
+ added parameter to write_rom()
2006-12-18 14:54:04 +00:00
fros4943 ea0e2c0f7d moved elfloader-tmp.h -> elfloader.h 2006-12-18 14:45:49 +00:00
fros4943 6d93716fba removed old -tmp header 2006-12-18 14:39:55 +00:00
adamdunkels 5ab475498a Removed old elfloader.h and replaced with the current code (previously in elfloader-tmp.h) 2006-12-18 12:11:15 +00:00
adamdunkels 70170b65b6 Removed old elfloader.c and replaced with the current code (previously in elfloader-tmp.c) 2006-12-18 11:55:42 +00:00
adamdunkels 5d3baef0d2 Removed old elfloader.c and replaced with the current code (previously in elfloader-tmp.c) 2006-12-18 11:45:47 +00:00
bg- 4e62a35e83 * Backwards compatible with elfloader.c but uses the new Contiki
link-editor. Taken together cle and elfloader_compat requires less
  ROM and RAM than the old version.
2006-12-01 15:15:08 +00:00
bg- 4f592bfc88 Small and modular dynamic link-editor. 2006-12-01 15:12:27 +00:00
bg- 0191c11595 Fix constness problems. 2006-12-01 15:05:20 +00:00
bg- 5d970109c8 * If broadcast transmission never starts, retry with (nearly)
exponential backoff.

* Fine-tune check for transmission start.
2006-12-01 15:04:04 +00:00
bg- 09e5c8e09a * It is very useful to keep the rand_state across reboots. 2006-11-17 13:05:34 +00:00
bg- f3a6cee55b * Oops, some machine dependent changes was accidentally committed. 2006-11-17 13:03:51 +00:00
bg- 27e531baad * Set CC2420_RXCTRL1.RXBPF_LOCUR=1 as recommended in data sheet.
* Use PRINTF to disable debug printfs.
2006-11-17 12:27:23 +00:00
fros4943 b8bcf2ab59 x86 elf loader implementation (only 2 common types).
depends on a few not-yet-commited files
2006-10-25 10:53:31 +00:00
adamdunkels 35395c10e0 Added *experimental* module for sending raw (non-routed) packets from Contiki. The name of the module is likely to change. 2006-10-22 12:31:46 +00:00
nifi 755ee04e24 major bug fix: arithmetic was done incorrectly in update_time() + process already expired timers when adding timers 2006-10-09 16:05:58 +00:00
nifi 5528198929 fixed leds invert 2006-10-09 14:38:23 +00:00
adamdunkels 022b1ba742 Made LEDS not count 2006-10-09 11:55:02 +00:00
adamdunkels 20b05c6d22 Added PROCESS_PT_SPAWN, PROCESS_WAIT_UNTIL 2006-10-09 11:54:29 +00:00
adamdunkels 528760f924 Updated code 2006-10-09 11:53:56 +00:00
adamdunkels a2befb9dd0 Made headercompression work on external buffer 2006-10-09 11:53:43 +00:00
adamdunkels 17c32fa33e Updated documentation 2006-10-09 11:13:25 +00:00
adamdunkels 96c771250c Limit number of sensor events to avoid overflowing event queue 2006-10-06 09:18:52 +00:00
adamdunkels b9b8ef7da5 GCR encoding/decoding 2006-10-05 09:23:41 +00:00
adamdunkels e117830406 Must reset uip_slen to zero after transmit to avoid confusing uIP if it is invoked after this function 2006-09-26 22:12:59 +00:00
adamdunkels b9607d3be2 Fixed the order of the statistics fields, added UIP_APPDATA_PTR pointer that always points to the application data space in the uip_buf buffer, added the documentation for an uip_ipaddr_isbroadcast() function. 2006-09-26 21:02:35 +00:00
adamdunkels 1504f2836e Commented out unused functionality: the ability to create a process running a thread was never used. With the new code, only running 'bare' threads is supported. If support for creating processes with a thread is needed, it may be reneabled later but currently there doesn't seem to be a need for it 2006-09-26 20:59:51 +00:00
adamdunkels 6bd28132ed Fixed the behaviour of PT_SCHEDULE() so that it returns true if a protothread is still active (yielded or waiting). Thanks to Kevin Collins for fixing. 2006-09-26 20:57:58 +00:00
adamdunkels 25a132cff2 A module that allows Contiki processes to have subprocesses. A subprocess is defined within another process and is created on the fly when needed. 2006-09-26 20:53:27 +00:00
bg- 670f414594 * FASTSPI_READ_RAM_LE(p,a,c,n) for completeness. 2006-09-26 15:48:01 +00:00
bg- 3de6d787c9 * New function slip_write(u8_t *ptr, int len).
* Slip active detection and current address reporting.
2006-09-26 15:47:14 +00:00
oliverschmidt 9e9677b4f0 Added the CCIF (Contiki Core InterFace) declarations necessary for a loadable ARP handler. 2006-09-23 20:10:08 +00:00
oliverschmidt 3e92f843ba More uip_ipaddr_t fixes. 2006-09-18 23:27:42 +00:00
oliverschmidt 83561d8963 Added the CCIF (Contiki Core InterFace) declarations necessary for a loadable packet driver. 2006-09-09 23:24:39 +00:00
bg- 35e6053795 Use ticks for s.ticks. 2006-09-07 15:57:59 +00:00
adamdunkels ea13dd9179 #if 0:ed out unused code 2006-09-01 22:56:47 +00:00
adamdunkels 7bfd457bbc Fixed bug where instruction to be relocated was fetched from an incorrect location 2006-09-01 07:10:01 +00:00
adamdunkels 2380d63260 Added uip-udp-packet.h 2006-08-31 09:36:46 +00:00
adamdunkels b8bf33f53f Functions for sending individual UDP datagrams 2006-08-31 09:35:27 +00:00
oliverschmidt d3d215d142 The special handling of mouse-over detection for bitmaps and icons seems unnecessary since the the member 'h' is always present and can always be assumed to be initialized. Furthermore the special handling prevented multiline textentries to be treated correctly. Therefore the special handling is now completely removed (and the handling of the 'h' member is adjusted). 2006-08-30 23:12:33 +00:00
oliverschmidt fba087810d Don't make assumptions on textentry contents beyond the first '\0'. 2006-08-30 22:24:12 +00:00
oliverschmidt 62a48a4138 Don't make assumptions on textentry contents beyond the first '\0'. 2006-08-30 22:15:25 +00:00
oliverschmidt 98bb911ffa Avoid compiler warnings. 2006-08-27 00:07:15 +00:00
oliverschmidt 424fde144d Added the CCIF (Contiki Core InterFace) declarations used by the applications which are currently part of the Win32 build. 2006-08-26 23:54:00 +00:00
oliverschmidt 3aa884cb20 Get uip_ethaddr declaration. 2006-08-26 23:40:46 +00:00
oliverschmidt 24e17a9ed1 Avoid compiler warnings. 2006-08-21 21:59:59 +00:00
bg- e4e3a11b8b New function process_nevents(). 2006-08-17 15:39:24 +00:00
bg- f0a14fbeae * Some ntohs stuff.
* Etimer package only allows you to sleep half as many ticks as one
  would expect. Adjust for this.
2006-08-17 12:51:07 +00:00
oliverschmidt 52947189d0 Added main header include. 2006-08-16 22:12:46 +00:00
nifi 649afd342b Avoid compiler warning. 2006-08-15 09:38:33 +00:00
oliverschmidt d4a00f67fe The program_handler_add() mechanism relied on being used after the initialization of the program_handler (and the ctk) process but before entering the event handling. In Contiki 2.x there's no such explicit process initialization anymore - and the implicit asynchronous initialization runs after program_handler_add(). Therefore the initialization of the data structures modified by program_handler_add() had to be removed from that asynchronous process initialization. Instead C-langugae global data.initialization is used. 2006-08-15 00:11:45 +00:00
oliverschmidt 43e9e3caa0 Added main header include. 2006-08-14 23:39:23 +00:00
oliverschmidt f429f73b59 Added PROCESS_NAME() for the CTK conio service. 2006-08-14 23:36:14 +00:00
oliverschmidt 5bd04b9c0d Avoid compiler warnings. 2006-08-14 23:31:40 +00:00
bg- eb7fcb54b4 * Change uip_ipaddr_t to be initialized from bytes rather than 2006-08-14 13:58:28 +00:00
oliverschmidt ffb4edc3e3 Removed designated union initializers from recent change to avoid dependence on ISO C99 compliant compilers. 2006-08-13 14:53:45 +00:00
oliverschmidt be675345ad Avoid compiler warnings. 2006-08-13 14:08:43 +00:00
oliverschmidt fab4acbfe4 Avoid compiler warning. 2006-08-13 14:06:24 +00:00
oliverschmidt 6973e29dfc Don't exit application on every _BUT_ exit messages ;-) 2006-08-13 14:05:20 +00:00
bg- 0bf3db5df7 Make malloc machine independent by relying on dependent sbrk(2). 2006-08-11 13:41:31 +00:00
bg- 361cd531b6 Assertions are useful. 2006-08-11 13:37:21 +00:00
bg- e8030141f2 More uip_ipaddr_t fixes. 2006-08-10 16:43:32 +00:00
bg- 5dacf0be11 Move misc. routines to new file. 2006-08-09 17:39:39 +00:00
bg- fb94d50410 Change typedef of uip_ipaddr_t from a vector type to a union.
typedef union uip_ip4addr_t {
  u16_t u16[2];
  u8_t  u8[4];
} uip_ip4addr_t;

typedef uip_ip4addr_t uip_ipaddr_t;

This implies that one must consistently pass pointers to
uip_ipaddr_t:s and not mix and match pointers with
uip_ipaddr_t:s as was done earlier.
2006-08-09 16:13:39 +00:00
bg- 4eee7b8bf4 Slightly outdated versions were imported to sf. 2006-08-02 14:33:36 +00:00
nifi 8ed2e44003 changed to use constant instead of numeric value 2006-07-07 06:45:45 +00:00
nifi a63bbe05ba changed to terminate the event data with a zero character instead of line feed character 2006-07-03 11:29:16 +00:00
gpz 82170f0015 added cast in line 254 to make cc65 happy 2006-06-24 17:59:28 +00:00
adamdunkels 5221a7b124 Moved PPP code that was inadvertedly put into the net/ directory into its own ppp/ subdirectory 2006-06-17 22:48:08 +00:00
adamdunkels c9e808d638 Import of the contiki-2.x development code from the SICS internal CVS server 2006-06-17 22:41:10 +00:00