changed a lot of small clang-tidy warnings
This commit is contained in:
@ -13,15 +13,15 @@
|
||||
#define __ISR_include__
|
||||
|
||||
class ISR {
|
||||
|
||||
|
||||
private:
|
||||
ISR (const ISR ©); // Verhindere Kopieren
|
||||
ISR(const ISR& copy) = delete; // Verhindere Kopieren
|
||||
|
||||
public:
|
||||
ISR () {}
|
||||
|
||||
ISR() {}
|
||||
|
||||
// Unterbrechungsbehandlungsroutine
|
||||
virtual void trigger () = 0;
|
||||
virtual void trigger() = 0;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
@ -94,7 +94,7 @@ int IntDispatcher::report(unsigned int vector) {
|
||||
ISR* isr = this->map[vector];
|
||||
|
||||
if (isr == 0) {
|
||||
if constexpr (DEBUG) kout << "No ISR registered for vector " << vector << endl;
|
||||
if constexpr (DEBUG) { kout << "No ISR registered for vector " << vector << endl; }
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
||||
@ -18,7 +18,7 @@
|
||||
class IntDispatcher {
|
||||
|
||||
private:
|
||||
IntDispatcher(const IntDispatcher& copy); // Verhindere Kopieren
|
||||
IntDispatcher(const IntDispatcher& copy) = delete; // Verhindere Kopieren
|
||||
|
||||
enum { size = 256 };
|
||||
ISR* map[size];
|
||||
|
||||
@ -20,12 +20,11 @@
|
||||
class PIC {
|
||||
|
||||
private:
|
||||
PIC(const PIC& copy); // Verhindere Kopieren
|
||||
PIC(const PIC& copy) = delete; // Verhindere Kopieren
|
||||
|
||||
public:
|
||||
PIC() {}
|
||||
|
||||
public:
|
||||
// IRQ-Nummern von Geraeten
|
||||
enum {
|
||||
timer = 0, // Programmable Interrupt Timer (PIT)
|
||||
|
||||
Reference in New Issue
Block a user