Commit Graph

59 Commits

Author SHA1 Message Date
George Oikonomou
b6bd556805 Fix clock.h warnings caused by multiple, conflicting documentation blocks of clock functions 2015-02-15 21:48:30 +01:00
Simon Duquennoy
722b3258d1 Cleanup of the Contiki network layer configuration. Now using CONTIKI_WITH_IPV6, CONTIKI_WITH_IPV4, and CONTIKI_WITH_RIME in makefiles, and UIP_CONF_IPV6, UIP_CONF_IPV4, UIP_CONF_RIME in c code. Now only the stacks that are used are compiled (via makefile MODULES). Make IPv6 the default network stack. 2014-12-01 20:13:09 +01:00
Niclas Finne
1fdb04e10c Added stub for extended radio API for cc2430 2014-04-03 13:38:21 +02:00
Adam Dunkels
7846eb2e2f Split the cc2430 custom rules into its own file 2014-01-26 23:20:40 +01:00
Adam Dunkels
bb2dcaa057 A massive all-tree automated update of all double inclusion guard #defines that changes from using two underscores as a prefix, which are reserved, to not using two underscores as a prefix 2013-11-24 20:20:11 +01:00
George Oikonomou
cb075dec65 Disable SDCC warnings 110 and 126
Those two warnings are optimisation-related
* 110 warns that an always-false if branch has been optimised out
* 126 warns about unreachable code which also gets optimised out

In disabling those warnings, we make the build less cluttered
2013-08-09 15:57:49 +01:00
George Oikonomou
20f06e3271 Support verbosity control for 8051-based platforms 2013-08-09 15:57:21 +01:00
George Oikonomou
c89450a233 Change to sdar from the now deprecated sdcclib 2013-08-09 15:56:16 +01:00
George Oikonomou
b025759665 Don't redirect sdld output to dev/null
This was used in the past because sdld was
very verbose when linking banked hex files. New
sdld versions do not exhibit this level of
verbosity and therefore the redirect can be
stopped
2013-08-09 15:56:15 +01:00
George Oikonomou
0a7094bc39 Remove leftover make targets
The sensinode platform does not support .upload and .serialdump
Their presence in the makefile has confused in the past confused
some users. This commit removes them

The commit also removes the $(OBJECTDIR)/%.rel: %.cS recipe which
is not used by either 8051 platform and is probably broken anyway,
since it has been unmaintained for years
2013-08-09 15:48:05 +01:00
Peter A. Bigot
5fc0575e99 Makefile.include: support make clean all
Historically $(OBJECTDIR) was created when Makefile.include is read.  A
consequence is that combining "clean" with "all" (or any other build
target) results in an error because the clean removes the object
directory that is required to exist when building dependencies.
Creating $(OBJECTDIR) on-demand ensures it is present when needed.

Removed creation of $(OBJECTDIR) on initial read, and added an order-only
dependency forcing its creation all Makefile* rules where the target is
explicitly or implicitly in $(OBJECTDIR).
2013-06-20 17:45:41 -05:00
George Oikonomou
874bec26a5 Code style fixes: cc2430 2012-12-16 19:28:55 +00:00
Adam Dunkels
944537fccf Removed all old RCS tags in the Contiki source tree. Those RCS tags are not used any more, as we are now using git to manage the Contiki source tree 2012-10-26 15:54:49 +02:00
George Oikonomou
d84a97103f cc2x3x stack debugging macro fix 2012-09-20 15:12:02 +01:00
George Oikonomou
3b0e92168b Copied cc2530 stack functions to the cc2430 port 2012-09-20 15:09:15 +01:00
George Oikonomou
95b9d4ee29 Sensinode/cc2430 stack depth optimisation
This replicates the method used by the cc2530 port
2012-09-20 15:09:15 +01:00
George Oikonomou
cb168da729 Changed the cc2430 sleep_flag to uint8_t 2012-09-20 15:09:15 +01:00
George Oikonomou
fa5a38666b Removed redundant #else blocks 2012-09-20 15:09:15 +01:00
George Oikonomou
88c6689e38 cc2430: Build with --fomit-frame-pointer 2012-09-20 15:09:15 +01:00
George Oikonomou
26a87ee9cb Improved handling of cc2x3x rf_flags 2012-07-11 10:53:14 +01:00
George Oikonomou
43f2790357 Added channel_get() to the cc2x3x RF drivers 2012-07-11 10:53:14 +01:00
George Oikonomou
259b497122 Minor Sensinode build cleanup 2012-05-16 15:22:31 +01:00
George Oikonomou
1f7171f943 Adjust cc2x3x ports to the new clock API 2012-05-16 15:22:31 +01:00
George Oikonomou
dd26accc07 We can now use SDCC's __nonbanked feature
This allows us to reduce CODE footprint of SDCC projects
built with --model-huge. Use carefully!

* Added a facility which allows us to enable/disable the
  feature from the CPU dir (CC_CONF_NON_BANKED_OPTIMIZATION)
* Added the CC_NON_BANKED keyword to some platform files
  (expands to __nonbanked)
* Started using this for some examples
2012-04-26 15:28:43 +01:00
George Oikonomou
6fb48174ba Fixed a documentation typo 2012-04-20 16:03:37 +01:00
David Kopf
cac4e9a222 Add clock_delay_us and clock_set_seconds to clock.h. Modify clock_wait to use clock_time_t.
Remove the troublesome avr/dev/delay.* files.
Add PLATFORM_NAME and combine the confusing *_REVISION defines into a single PLATFORM_TYPE
2012-04-09 15:49:53 -04:00
George Oikonomou
57969259ce cc2x3x clock_delay(len) now delays for approx. len usecs 2012-04-03 16:26:11 +01:00
George Oikonomou
3cb26adeda Added an ASM(foo) macro for cc243x 2012-04-03 16:26:11 +01:00
George Oikonomou
11a7f644ac Comment rewording and formatting 2012-04-03 16:26:10 +01:00
George Oikonomou
ce17fa131c Stack-friendly cc243x clock ISR enabled by default
This new approach (CLOCK_CONF_ACCURATE=0) was not as inaccurate
as originally thought. In fact, it has pretty much the same
accuracy as the old, stack-hungry version.

* Renamed the define from CLOCK_CONF_ACCURATE (1: old) to
  CLOCK_CONF_STACK_FRIENDLY (1: new) to stop implying
  that one is more accurate than the other.
* Using CLOCK_CONF_STACK_FRIENDLY by default.
2012-04-03 16:26:10 +01:00
George Oikonomou
924fe934c1 Deleted obsolete macros. Minor formatting 2012-04-03 16:26:10 +01:00
George Oikonomou
ffa3a1c4c3 cc2x3x clock driver cleanup
* Bit-Addressable SFRs are now accessed as such,
  instead of (N)OR-ing the byte
* A routine was declared as CCIF but not defined as such. Fixed
* Deleted a leftover duplicate define
* Formatting
* Comment updates and clarifications
2012-04-03 16:26:10 +01:00
George Oikonomou
5240519dd9 Renamed a config define to better match contiki's naming philosophy 2012-04-02 11:38:54 +01:00
George Oikonomou
bce34e4b9a For cc2x30, moved CLOCK_CONF_SENCOND to the cpu dir.
The value is not really configurable by the platform so having it
in contiki-conf.h didn't make huge sense.
2012-04-02 11:22:19 +01:00
George Oikonomou
d958ee3125 Deleted the old Sensinode 'read mac from flash' routine.
Since the introduction of a purpose-written routine, the old
generic one (which was written in asm) was never being used.
There was a configuration directive which allowed us to switch
between the two. All references to this configuration directive
have also been removed.
2012-04-02 11:21:32 +01:00
George Oikonomou
5d8f63a61b We've not been using the cc2430 converter for a while now 2012-04-02 11:03:49 +01:00
George Oikonomou
7854ee499a Wrapped cc2x30 SOFT_RESET() macro inside do {...} while(0) 2012-03-29 13:11:04 +01:00
George Oikonomou
4f1e251603 Some uN_t had crept back in cc2530dk and sensinode.
Changed to uintN_t plus a bit of code formatting
2012-03-29 13:10:10 +01:00
George Oikonomou
b7674c3636 Reincarnate the sensinode/cc2430 port 2012-03-23 14:41:07 +00:00
Nicholas J Humfrey
1cda3da17e Converted u8_t to uint8_t and u16_t to uint16_t in the cpu directory. 2012-02-21 08:33:24 -05:00
adamdunkels
5585d72c86 A simple but substantial change: uIP used the htons()/HTONS() macro
functions for converting between host and network byte order. These
names are the de facto standard names for this functionality because
of the original BSD TCP/IP implementation. But they cause problems for
uIP/Contiki: some platforms define these names themselves (Mac OS,
most notably), causing compilation problems for Contiki on those
platforms.

This commit changes all htons to uip_htons instead. Same goes for
htonl, ntohs, and ntohl. All-caps versions as well.
2010-10-19 18:29:03 +00:00
adamdunkels
3fa8ffda1a Moved the modules packetbuf, queuebuf, and packetqueue from net/rime to net/, since they are not Rime-specific 2010-06-14 19:19:16 +00:00
anthony-a
04fb6e5b42 initial add. 2010-04-10 21:18:32 +00:00
anthony-a
3de90a9671 fix adc compile errors when HAVE_DMA is not true.
remove reference to brione_lcd.h
turn off DEBUG messages.
2010-04-10 19:59:37 +00:00
anthony-a
76749a382d move cc2430_process to home bank since it needs to be called from a function pointer.
disable led code to make room in home bank.
2010-01-29 19:15:44 +00:00
anthony-a
507460d29a update code bank assignments 2010-01-29 19:13:00 +00:00
anthony-a
dbdf9982a9 change bank assignments.
add missing header file.
add ihx converter
2010-01-26 02:37:51 +00:00
anthony-a
1427c79b7a include new files in source file list. 2010-01-25 23:24:03 +00:00
anthony-a
6280cea706 remove bank macros which are now in banked.h 2010-01-25 23:13:04 +00:00
anthony-a
9cfe29612a Modifications to support banked code. Interrupts and routines accessed through function pointers reside in independent files so they can be assigned to the HOME bank. Init code can be placed in any bank.
Also add adc init code and bank header files.
2010-01-25 23:12:09 +00:00