I'm looking through the example code for BLE_Proximity01 and in main.c noticed the code to start the watchdog timer (WDT). I opened the WDT's datasheet and didn't see any reference about a Start() function. So, I searched the generated source for "CySysWdtUnlock" using GREP and found that it is defined in CyLFClk.c. Where did that come from? So, I looked at the Clocks resources and found a number of references to "LFCLK". I assume that setting them there added the code to the generated source: CyLFClk.h and CyLFClk.c, but am not sure. Then I search CyLFClk.h and find a large number of WDT functions in the WDT API section. Why wouldn't they be listed in the WDT datasheet?
My question is, if I was going to create this from scratch, I wouldn't have a clue as to how I would do this. Is there anything that explains what is going on here? The PDF with the example code doesn't explain much about the nuts and bolts and the BLE datasheet says:
"Note The LFCLK is used in the BLE Component only during Deep Sleep Mode and hence the ILO inaccuracy does not affect the BLE communication."
Or, are we supposed to just use the code as supplied and not worry about being able to write this from scratch after we gain a much better understanding?