MEM_AP checks supported transfer sizes.
MEM_AP checks supported transfer sizes.

- Added flags param to AP ctors.
- AP_TYPE_MAP includes flags.
- AccessPort.create() can create a generic MEM_AP if the type map
  lookup fails.
- MEM_AP init checks if the AP supports 8- and 16-bit transfers, unless
  the AP_ALL_TX_SZ flag is set indicating known support.
- TransferError is raised if transfer of unsupported size requested.
- Cleaned up AP_TYPE_MAP.
- Moved related constants close to AP_TYPE_MAP.

mesheven/pyOCD,mbedmicro/pyOCD,flit/pyOCD,mbedmicro/pyOCD,pyocd/pyOCD,flit/pyOCD,mesheven/pyOCD,mbedmicro/pyOCD,mesheven/pyOCD,pyocd/pyOCD