#
# FILE: emote/.platform
# 
# 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.  
#
# $Id: .platform,v 1.8 2008/06/17 19:36:21 kusy Exp $
#

push ( @includes, qw(

  %T/platforms/emote
#  %T/platforms/emote/chips/rf230
#  %T/lib/timer
#  %T/lib/serial
  %T/lib/gpio
  %T/chips/stm32
  %T/chips/stm32/gpio
  %T/chips/stm32/usb-serial
#  %T/chips/stm32/timer
#  %T/chips/stm32/spi
  %T/chips/stm32/fwlib
  %T/chips/stm32/fwlib/inc
#  %T/chips/rf2xx/rf230
#  %T/chips/rf2xx/layers
#  %T/chips/rf2xx/util
) );

@opts = qw(

  -gcc=arm-none-eabi-gcc
  -nostartfiles
  -fnesc-target=env
  -fnesc-no-debug

);

push @opts, "-fnesc-scheduler=TinySchedulerC,TinySchedulerC.TaskBasic,TaskBasic,TaskBasic,runTask,postTask" if !$with_scheduler_flag;
push @opts, "-mingw-gcc" if $cygwin;

$ENV{NESC_MACHINE} = "structure_size_boundary=32, pointer=4,4 float=4,4 double=8,4 long_double=8,4 short=2,2 int=4,4 long=4,4 long_long=8,4 int1248_align=1,2,4,4 wchar_size_size=4,4 char_wchar_signed=false,true";


