sceptic-biomem/ScEpTIC/config/interrupts_config.py
2026-07-10 10:38:57 +02:00

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