Merge pull request #7 from DrTon/strncpy_fix

strncpy bug fix
Fixes for sim for CLANG
Minor adjustment to make CLANG assembler happy
Fixed location of DMA console reinitialization
Merge branch 'master' of github.com:PX4/NuttX
STM32F10xxx single wire usart support
small whitespace correction
nsh env variables expanding
Revert "nsh env variables expanding"

This reverts commit cb7f30317a655f620dfc905069c9066494e99161.
nsh: env variables expansion
nsh: don’t try to expand env variables in nsh_argument
nsh: fixed syntax checking in env variables expanding
nsh: code style fixed
FAT: cope with files of size equal to multiple of cluster size

when the file size is 4096 we should use 1 cluster, not two
FAT: fixed start cluster of .. directory entry

this should be 0 on FAT32 as well (tested on Windows8 and Linux)
Merge branch 'master' into env_expand
Abort after N retries, propagate error throughout driver layers
ramtron: give errors for IO operations immediately

waiting for write completion and checking the status register on read
will improve the chance that we catch IO errors immediately rather
than on the next IO. This improves the chance that callers will be
able to take reasonable action on IO errors.

We have one example board that does give intermittent IO errors, and
this change helps for that board
ramtron: the driver has been tested now
mtd: added timeouts to at24xx eeprom driver