21 lines
582 B
Python
21 lines
582 B
Python
|
|
from ScEpTIC.config.base_config import ScEpTICBaseConfig
|
|
|
|
class InterruptsConfig(ScEpTICBaseConfig):
|
|
"""
|
|
Interrupts configuration
|
|
"""
|
|
|
|
_config_domain = {
|
|
'enabled': {'class': bool, 'mode': 'set'},
|
|
'nested_interrupts': {'class': bool, 'mode': 'set'},
|
|
'interrupts_queue_length': {'class': int, 'mode': 'set', 'value_check_function': lambda x: x > 0},
|
|
}
|
|
|
|
def __init__(self, main_config):
|
|
super().__init__(main_config)
|
|
|
|
self.enabled = True
|
|
self.nested_interrupts = False
|
|
self.interrupts_queue_length = 10
|