Change exception handling structure.
Exception from lower level modules (i2c, spi, onewire, etc...) are forwarded to the upper layer by the device modules (ds18b20, ltc217x, etc...). Each layer is adding specific informations to the error message (e.g. wishbone core base address, spi slave number or i2c address, etc...). This will simplify the exception handling in the higher level modules.
Showing
- common/csr.py 3 additions, 2 deletionscommon/csr.py
- common/ds18b20.py 65 additions, 47 deletionscommon/ds18b20.py
- common/eeprom_24aa64.py 64 additions, 45 deletionscommon/eeprom_24aa64.py
- common/gn4124.py 3 additions, 3 deletionscommon/gn4124.py
- common/i2c.py 8 additions, 7 deletionscommon/i2c.py
- common/ltc217x.py 21 additions, 8 deletionscommon/ltc217x.py
- common/max5442.py 16 additions, 6 deletionscommon/max5442.py
- common/onewire.py 9 additions, 8 deletionscommon/onewire.py
- common/si57x.py 37 additions, 12 deletionscommon/si57x.py
- common/spi.py 6 additions, 3 deletionscommon/spi.py
Please register or sign in to comment