# Includes that should take precedence come first.  Platforms come before
# chips because they may override files.  These must be specified as
# @includes instead of -I's to @opts, otherwise the %T won't be processed
# by ncc.  And because of that, the current platform's include directory
# must be specified, otherwise its search order is last instead of first.

push( @includes, qw(

  %T/platforms/tinynode/chips/xe1205
  %T/platforms/tinynode/chips/mm74hc595
  %T/platforms/tinynode/chips/at45db

  %T/chips/xe1205/conf
  %T/chips/xe1205/phy
  %T/chips/xe1205/mac
  %T/chips/xe1205

  %T/chips/mm74hc595

  %T/chips/msp430
  %T/chips/msp430/adc12
  %T/chips/msp430/dma
  %T/chips/msp430/pins
  %T/chips/msp430/timer
  %T/chips/msp430/usart
  %T/chips/msp430/sensors
  %T/chips/at45db
  %T/lib/timer
  %T/lib/serial
  %T/lib/adc
  %T/lib/power

) );


@opts = qw(
	-gcc=msp430-gcc
	-mmcu=msp430x1611
        -fnesc-target=msp430
        -fnesc-no-debug
	-fnesc-scheduler=TinySchedulerC,TinySchedulerC.TaskBasic,TaskBasic,TaskBasic,runTask,postTask);

push @opts, "-mingw-gcc" if $cygwin;

#@commonplatforms = ("msp430");

