Sha256: b56aab9b752826651058be92d4ea453f07ec6883ce1d86258c20c3559ffa323e
Contents?: true
Size: 719 Bytes
Versions: 2
Compression:
Stored size: 719 Bytes
Contents
/* ========================================================================= Ceedling - Test-Centered Build System for C ThrowTheSwitch.org Copyright (c) 2010-25 Mike Karlesky, Mark VanderVoord, & Greg Williams SPDX-License-Identifier: MIT ========================================================================= */ #include "Types.h" #include "TimerInterruptHandler.h" #include "TimerInterruptConfigurator.h" static uint32 systemTime; void Timer_SetSystemTime(uint32 time) { systemTime = time; } uint32 Timer_GetSystemTime(void) { return systemTime; } void Timer_InterruptHandler(void) { uint32 status = AT91C_BASE_TC0->TC_SR; if (status & AT91C_TC_CPCS) { systemTime += 10; } }
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
ceedling-1.0.1 | examples/temp_sensor/src/TimerInterruptHandler.c |
ceedling-1.0.0 | examples/temp_sensor/src/TimerInterruptHandler.c |