mirror of
https://github.com/justinian/jsix.git
synced 2025-12-11 08:54:31 -08:00
[project] Lose the battle between tabs & spaces
I'm a tabs guy. I like tabs, it's an elegant way to represent indentation instead of brute-forcing it. But I have to admit that the world seems to be going towards spaces, and tooling tends not to play nice with tabs. So here we go, changing the whole repo to spaces since I'm getting tired of all the inconsistent formatting.
This commit is contained in:
committed by
Justin C. Miller
parent
d36b2d8057
commit
8f529046a9
@@ -12,35 +12,35 @@ uint64_t hpet_clock_source(void *);
|
||||
class hpet
|
||||
{
|
||||
public:
|
||||
/// Constructor.
|
||||
/// \arg index The index of the HPET out of all HPETs
|
||||
/// \arg base The base address of the HPET for MMIO
|
||||
hpet(uint8_t index, uint64_t *base);
|
||||
/// Constructor.
|
||||
/// \arg index The index of the HPET out of all HPETs
|
||||
/// \arg base The base address of the HPET for MMIO
|
||||
hpet(uint8_t index, uint64_t *base);
|
||||
|
||||
/// Configure the timer and start it running.
|
||||
void enable();
|
||||
/// Configure the timer and start it running.
|
||||
void enable();
|
||||
|
||||
/// Get the timer rate in ticks per us
|
||||
inline uint64_t rate() const { return 1000000000/m_period; }
|
||||
/// Get the timer rate in ticks per us
|
||||
inline uint64_t rate() const { return 1000000000/m_period; }
|
||||
|
||||
/// Get the current timer value
|
||||
uint64_t value() const;
|
||||
/// Get the current timer value
|
||||
uint64_t value() const;
|
||||
|
||||
private:
|
||||
friend void hpet_irq_callback(void *);
|
||||
friend uint64_t hpet_clock_source(void *);
|
||||
friend void hpet_irq_callback(void *);
|
||||
friend uint64_t hpet_clock_source(void *);
|
||||
|
||||
void setup_timer_interrupts(unsigned timer, uint8_t irq, uint64_t interval, bool periodic);
|
||||
void enable_timer(unsigned timer);
|
||||
void disable_timer(unsigned timer);
|
||||
void setup_timer_interrupts(unsigned timer, uint8_t irq, uint64_t interval, bool periodic);
|
||||
void enable_timer(unsigned timer);
|
||||
void disable_timer(unsigned timer);
|
||||
|
||||
void callback();
|
||||
void callback();
|
||||
|
||||
uint8_t m_timers;
|
||||
uint8_t m_index;
|
||||
uint8_t m_timers;
|
||||
uint8_t m_index;
|
||||
|
||||
uint64_t m_period;
|
||||
volatile uint64_t *m_base;
|
||||
uint64_t m_period;
|
||||
volatile uint64_t *m_base;
|
||||
};
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user