Sha256: 3cf3cd0626967ff1b429361476f405ca05672e754f8a01eb2f382daf70c4376a
Contents?: true
Size: 1.21 KB
Versions: 2
Compression:
Stored size: 1.21 KB
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 "AdcModel.h" #include "TaskScheduler.h" #include "TemperatureCalculator.h" #include "TemperatureFilter.h" bool AdcModel_DoGetSample(void) { return TaskScheduler_DoAdc(); } void AdcModel_ProcessInput(uint16 millivolts) { TemperatureFilter_ProcessInput(TemperatureCalculator_Calculate(millivolts)); } bool AdcModel_DoNothingExceptTestASpecialType(EXAMPLE_STRUCT_T ExampleStruct) { //This doesn't really do anything. it's only here to make sure I can compare a struct. return FALSE; } bool AdModel_DoNothingExceptTestPointers(uint32* pExample) { //This doesn't really do anything. it's only here to make sure I can compare a pointer value. return FALSE; } EXAMPLE_STRUCT_T AdcModel_DoNothingExceptReturnASpecialType(void) { EXAMPLE_STRUCT_T example; //again, this just is here to test that I can return a struct example.x = 99; example.y = 1; return example; }
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
ceedling-1.0.1 | examples/temp_sensor/src/AdcModel.c |
ceedling-1.0.0 | examples/temp_sensor/src/AdcModel.c |