Commit graph

185 commits

Author SHA1 Message Date
nvt-se 8c040be133 Changed the name of the declaration of the default block size. Reduced the OCR reading timeout. 2009-11-07 01:05:23 +00:00
nvt-se 7aac2d90fb specify that energest.h is in the sys directory. 2009-11-06 17:18:47 +00:00
nvt-se 31850d2e29 wait for RX before reading, and ensure that the byte is read out by using a volatile dummy variable 2009-11-06 15:40:15 +00:00
nvt-se 731e1da844 increase the I/O rate and use etimer_restart to maintain a uniform wait time between iterations 2009-11-06 15:11:52 +00:00
nvt-se f59e89cfb9 Fixed the problem of reads from the SPI where the first byte was sometimes lost.The SPI read function now only generates an idle symbol if there is not a byte
already in the reception buffer.
2009-11-06 14:02:59 +00:00
nvt-se 84f2a077de the return value should be checked against the size of sd_buf instead of buf 2009-11-03 16:18:37 +00:00
nvt-se 9b4cd05e1f Patch from David Gustafsson: break out SPI functions and fix bug in capacity
calculation.

Removed expensive modulo operations from sd_read and sd_write because the block size is now a variable. (nvt)
2009-11-03 15:21:43 +00:00
nvt-se 4a0973a95f specify the number of queuebufs that we want to use in the MSB430 platform by default 2009-10-26 16:11:24 +00:00
nvt-se ed4ee1b5af continue the test by resetting the etimer even if sd_write returns an error. 2009-10-01 16:40:25 +00:00
nvt-se 3e41c7d564 removed the immaterial sd_get_block_size function. 2009-09-24 12:09:26 +00:00
nvt-se fc34a4572b Removed the deprecated COFFEE_DIR_CACHE_ENTRIES parameter. 2009-09-22 16:31:36 +00:00
nvt-se 3b205a8912 removed compiler warning about missing declaration. 2009-09-22 16:27:17 +00:00
nvt-se 19d697fd37 use megabyte unit for printing SD card capacity. 2009-09-22 16:24:03 +00:00
nvt-se aef32d8144 moved synchronization word definition to the right place.
removed memcpy call for a two byte copy. also led to a relocation error
in some versions of the mspgcc linker.
2009-09-22 16:20:39 +00:00
nvt-se ce32792812 define U1IFG if it is missing. 2009-09-22 16:04:03 +00:00
nvt-se f698ce2577 Adapted the simple SD test to the new driver and its interface. 2009-09-22 15:37:18 +00:00
nvt-se 12c6dbb7c6 switched to emulated random I/O functions in the SD driver 2009-09-22 15:36:33 +00:00
nvt-se 1fb5841454 introduced WITH_SD parameter. added missing variable. 2009-09-22 15:35:45 +00:00
nvt-se ea56edc5c2 added a simple driver for using SD devices through the SPI. 2009-09-22 15:20:51 +00:00
nvt-se 4fd4cb1238 Architecture-dependent Coffee functions for SD cards. 2009-09-17 14:37:32 +00:00
nvt-se 20f449c3e8 micro logs are not needed in SD memory. 2009-09-17 14:19:06 +00:00
nvt-se 519532183f do not enable Coffee until the new SD driver is in place. 2009-09-17 13:28:41 +00:00
nvt-se 84b0ec7798 Removed unstable SD driver (to be replaced.) 2009-09-17 13:24:49 +00:00
nvt-se cd96248306 only turn off if we are not in CC1020_OFF state. (patch by Jesper Karlsson) 2009-09-04 11:00:48 +00:00
nifi e41de15c85 use nodeid 0 if no nodeid has been set 2009-08-24 15:44:45 +00:00
nvt-se 5e0d762e79 Call BIC_SR_IRQ to properly go switch of IRQ mode in the saved flag in the stack. 2009-08-17 11:32:17 +00:00
nvt-se 34a6fc82a3 Backup all the infomem before erasing the segment. Thanks to Frederik Hermans for reporting this. 2009-07-21 16:56:33 +00:00
nvt-se 828439c922 code style compliancy 2009-06-29 12:46:49 +00:00
nvt-se a7faaa9aaa a bit more documentation. 2009-05-26 14:34:22 +00:00
nvt-se cd00bd3fdc switched to calm mode as default. 2009-05-26 13:23:59 +00:00
nvt-se 06a2fc40ec switched to 32-bit iteration variable for long-running tests. 2009-05-26 13:03:44 +00:00
nvt-se 0f6954cc43 added test options for stressing the card and for switching blocks randomly. 2009-05-26 13:00:37 +00:00
nvt-se 28619eabc0 bug fix with sdspi select.
code style fixes.
2009-05-26 13:00:07 +00:00
nvt-se e9d279620f more protection against interrupts that might spoil SPI sequences.
made coding style more like that of contiki.
2009-05-26 12:15:46 +00:00
nvt-se 09a1c115fe initial test port of Coffee for the MSB-430 platform. 2009-05-25 14:14:32 +00:00
nvt-se 8f7f7fb896 enabled random I/O in the SD driver. 2009-05-25 14:13:47 +00:00
nvt-se da91d87ae6 switch of interrupts while writing and reading to the SPI. avoids
desynchronization problems.
2009-05-25 13:19:04 +00:00
nvt-se bcc5084564 removed delay because while loop waits until completion anyway. 2009-05-15 13:54:08 +00:00
nvt-se f9b35795c7 minor refactoring. 2009-05-14 12:18:49 +00:00
nvt-se 172ffb74c7 fix compiler warnings. patch from Jesper Karlsson. 2009-04-08 14:56:00 +00:00
nvt-se e90149b7b4 avoid switching mode when tx or rx is active.
based on suggestions from Frederik Hermans and some code from Jesper Karlsson.
2009-03-30 14:07:34 +00:00
nvt-se 04bd414e1c enabled LPP by default. 2009-03-26 12:51:55 +00:00
nvt-se 90b9b9bae3 configure LPP parameters with slightly longer listen time since the CC1020
driver switches from TX mode to RX mode rather slowly.

decreased CCA check timeout.
2009-03-26 12:47:12 +00:00
nvt-se 25cc327acc avoid hanging in TX mode after CCA check failed.
minor memory savings.
2009-03-25 15:25:05 +00:00
nvt-se 96fbf3b853 use old style C comments.
convert printf to PRINTF.
remove unnecessary MS_DELAY calls from setupTX and setupRX.
2009-03-24 15:32:26 +00:00
nvt-se 15c447e57e remove some unnecessary instructions and function calls. patch from Jesper Karlsson. 2009-03-24 15:13:11 +00:00
nvt-se 143c7f9cea switched from serial to serial_line. patch from Jesper Karlsson. 2009-03-24 15:02:03 +00:00
nvt-se 6b22fa60e8 - avoid costly rx state initialization if the radio is already on.
- code formatting.
2009-03-19 14:43:31 +00:00
nvt-se 8f85355f02 print the MAC protocol name when starting the node 2009-03-19 14:14:06 +00:00
nvt-se b9ef907690 enable serial line tools using the same commands as the sky platform's Makefile 2009-03-17 22:27:14 +00:00