4 ms·
OALIoCtlHalInitRTC -- yeah, there's a great function name.
by frisco 18y ago
OALIoCtlHalInitRTC -- yeah, there's a great function name.
- mseebach 18y agoOAL is obviously a module name, though I can't figure out what it is. "Io Ctl" seems to be something with "IO control", although I can't figure out what IO has to do with it. The rest reads "HAL (hardware abstraction layer) initialize RTC (real-time clock)".. and that's what it does. This is from five minutes looking at the source. Very little college embedded programming. What more do you want?
- a-priori 18y agohttp://en.wikipedia.org/wiki/Ioctl http://en.wikipedia.org/wiki/Ioctl
- JesseAldridge 18y agoFrom that function's comments: // This function is called by WinCE OS to initialize the time after boot. So how about calling it: init_time or maybe init_time_after_boot
- sounddust 18y agoThe reason it's not calleld init_time_after_boot - well, first of all Microsoft coding standards call for CamelCase. But secondly, there are several "times", and there are several ways to "initialize" something, and there are several meanings to "boot." You're either going to have a naming conflict, or you're going to have a bunch of idiots who wanted to initialize a different clock, who start posting to forums saying "i don't understand???! i called init_time waht's wrong???" Sure, they could call it SendTheIOCTLCommandToInitializeTheRealTimeClockForTheOEMAbstractionLayer but sometimes the names of functions are going to be ugly.
- sounddust 18y agoOAL is "OEM abstraction layer" and IOCTL probably means that the RTC is set by sending an IOCTL command.