pl011.hh (11168:f98eb2da15a4) | pl011.hh (11294:a368064a2ab5) |
---|---|
1/* 2 * Copyright (c) 2010-2015 ARM Limited 3 * All rights reserved 4 * 5 * The license below extends only to copyright in the software and shall 6 * not be construed as granting a license to any other intellectual 7 * property including but not limited to intellectual property relating 8 * to a hardware implementation of the functionality of the software --- 96 unchanged lines hidden (view full) --- 105 * Convenience function to clear interrupts 106 * 107 * @see setInterrupts 108 * @param ints Set of interrupts to clear 109 */ 110 void clearInterrupts(uint16_t ints) { setInterrupts(rawInt & ~ints, imsc); } 111 112 /** Masked interrupt status register */ | 1/* 2 * Copyright (c) 2010-2015 ARM Limited 3 * All rights reserved 4 * 5 * The license below extends only to copyright in the software and shall 6 * not be construed as granting a license to any other intellectual 7 * property including but not limited to intellectual property relating 8 * to a hardware implementation of the functionality of the software --- 96 unchanged lines hidden (view full) --- 105 * Convenience function to clear interrupts 106 * 107 * @see setInterrupts 108 * @param ints Set of interrupts to clear 109 */ 110 void clearInterrupts(uint16_t ints) { setInterrupts(rawInt & ~ints, imsc); } 111 112 /** Masked interrupt status register */ |
113 const inline uint16_t maskInt() const { return rawInt & imsc; } | 113 inline uint16_t maskInt() const { return rawInt & imsc; } |
114 115 /** Wrapper to create an event out of the thing */ 116 EventWrapper<Pl011, &Pl011::generateInterrupt> intEvent; 117 118 protected: // Registers 119 static const uint64_t AMBA_ID = ULL(0xb105f00d00341011); 120 static const int UART_DR = 0x000; 121 static const int UART_FR = 0x018; --- 64 unchanged lines hidden --- | 114 115 /** Wrapper to create an event out of the thing */ 116 EventWrapper<Pl011, &Pl011::generateInterrupt> intEvent; 117 118 protected: // Registers 119 static const uint64_t AMBA_ID = ULL(0xb105f00d00341011); 120 static const int UART_DR = 0x000; 121 static const int UART_FR = 0x018; --- 64 unchanged lines hidden --- |