mirror of https://github.com/ARMmbed/mbed-os.git
Removing feature names from the "allowed feature" config list.
These features have all been removed from Mbed OS in the past. This prevents their use in the future.pull/7799/head
parent
e635613b28
commit
0af1a4bcd2
|
@ -63,12 +63,7 @@ BOOTLOADER_OVERRIDES = ROM_OVERRIDES | RAM_OVERRIDES
|
|||
|
||||
|
||||
ALLOWED_FEATURES = [
|
||||
"BOOTLOADER","UVISOR", "BLE", "CLIENT", "IPV4", "LWIP", "COMMON_PAL", "STORAGE",
|
||||
"NANOSTACK","CRYPTOCELL310",
|
||||
# Nanostack configurations
|
||||
"LOWPAN_BORDER_ROUTER", "LOWPAN_HOST", "LOWPAN_ROUTER", "NANOSTACK_FULL",
|
||||
"THREAD_BORDER_ROUTER", "THREAD_END_DEVICE", "THREAD_ROUTER",
|
||||
"ETHERNET_HOST",
|
||||
"BOOTLOADER", "BLE", "LWIP", "STORAGE", "NANOSTACK", "CRYPTOCELL310",
|
||||
]
|
||||
|
||||
# Base class for all configuration exceptions
|
||||
|
@ -749,7 +744,7 @@ class Config(object):
|
|||
if start > rom_start + rom_size:
|
||||
raise ConfigException("Not enough memory on device to fit all "
|
||||
"application regions")
|
||||
|
||||
|
||||
@staticmethod
|
||||
def _find_sector(address, sectors):
|
||||
target_size = -1
|
||||
|
@ -762,13 +757,13 @@ class Config(object):
|
|||
if (target_size < 0):
|
||||
raise ConfigException("No valid sector found")
|
||||
return target_start, target_size
|
||||
|
||||
|
||||
@staticmethod
|
||||
def _align_floor(address, sectors):
|
||||
target_start, target_size = Config._find_sector(address, sectors)
|
||||
sector_num = (address - target_start) // target_size
|
||||
return target_start + (sector_num * target_size)
|
||||
|
||||
|
||||
@staticmethod
|
||||
def _align_ceiling(address, sectors):
|
||||
target_start, target_size = Config._find_sector(address, sectors)
|
||||
|
|
Loading…
Reference in New Issue