Merge pull request #165 from prife/jffs2-fix

DFS/jffs2: fix file mode init bug in jffs2_open/opendir
Merge pull request #166 from prife/simulator

scons script: support to generate vs2012 project xml
fix the line too long issue
add BGR565 definition
Merge branch 'master' of https://github.com/RT-Thread/rt-thread
components/utilities: add ymodem

Real-YModem implemented a flexible YModem support. It use callback-based
structure to let the user application to deal with the data. It contains
3 examples:

    1. echo.c: write the data recieved on YModem to an other device
    2. null.c: discard the YModem data
    3. tofile.c: write the data to the file system

Currently, it does not support batch file transmission.
Merge pull request #167 from grissiom/ymodem

components/utilities: add ymodem
Add tap netif driver
Merge branch 'master' of https://github.com/RT-Thread/rt-thread
DFS: add dfs_file_flush prototype in dfs_file.h
log_trace: fix the memmove use

The first parameter of memmove is the dst, not src. Besides, fix the
wrong move size.
Merge pull request #169 from grissiom/log_trace-fix

log_trace: fix the memmove use
Merge pull request #168 from grissiom/dfs-fix

DFS: add dfs_file_flush prototype in dfs_file.h
kernel: add RT_DEBUG_IN_THREAD_CONTEXT

In thread context means: 1) the scheduler has been started; 2) not in
interrupt context. It is more stronger than RT_DEBUG_NOT_IN_INTERRUPT.
With this commit, you will catch the error on situations like taking
mutex before scheduling instead of crashing on NULL pointer reference.
Merge pull request #170 from grissiom/rtt-next

kernel: add RT_DEBUG_IN_THREAD_CONTEXT
kernel: fix compiling error when RT_DEBUG is not defined

Define RT_DEBUG_IN_THREAD_CONTEXT when RT_DEBUG is not defined.
Merge pull request #172 from grissiom/rtt-next

kernel: fix compiling error when RT_DEBUG is not defined
simulator: add createdef.py to generate def file for VS

Now we can get rid off Mingw to create def file. To create def file, one
should run:

    scons --def

in the bsp/simulator.