Fix hidapi interface. Return all available boards. Use USB path instead of serial number to identify board.
Update flash_nrf51822.py.
Use actual offset 0x16000.
Add "erase", "offset" and "skip" options for binary file for flexible operations.
Add "list" command line option to list available boards.
Add boardId to MbedBoard.listConnectedBoards() method.
Merge pull request #60 from anpilog/fix_hidapi_interface

Fix hidapi interface
Prevent flash security check from locking target

The function checkSecurityBits returns 0 when the flash settings would
lock the target processor.  This in turn causes programPage to return
without programming the current page.  The problem with this is
on Kinetis processors, if the security byte is erased it will lock the
part.

This patch renames checkSecurityBits to overrideSecurityBits.  Data
to be flashed is passed into this function which modifies the security
bits to a safe value, and then returns the new data.
Add resume parameter to Board.uninit

When uninitializing a board, it is not always desirable to let the
processor run.  This patch adds the parameter 'resume' to Board.uninit.
This allows the calling script to uninitialize the board without
letting it run.  This is useful if you want to keep the board halted
when running a series of scripts.
Add software reset to Cortex M processors

Add an optional software reset parameter to the functions reset and
resetStopOnReset.
Merge pull request #61 from c1728p9/master

Reset - add resume parameter and add software reset, Kinetis - flash security method protect a device from locking
Fixes for NRF51822:
- add options for gdb_server.py: SoftDevice flash protection, don't break at hard fault handler, correct resume procedure, add extra monitor command.
- mask interrupt when stepping. Required for NRF51. Otherwise GDB server can't step if any interrupt occured during halted state. In case of nrf51 with enabled BLE it happens all the time.
- fix nrf51 reset(), resetStopResume() functions.
- add nrf51 specific gdb_server server.
Fix 'mon help' commands in GDBServer. Cleanup after code review.
Align gdbserver options. Rename flash_protect_offset to flash_protect. Merge nrf51 gdb server.
Rename flash_offset to skip_bytes.
Merge pull request #62 from anpilog/update_nrf51822

A lot fixes for NRF51822. Make pyOCD usable with nRF51 CPU.