AN370
Rev. 1.0
89
Outputs
:
Master Time: (LWORD) Current master time.
vSys_IncMasterTime
Description
: Increments the master time. User application is responsible for calling this
function in regular fashion. It is up to the user application to implement that, by using RTC
timer or any of the TMR2 or TMR3 timers. The function just adds value to the master time
variable. It is up to the user timer ISR to call this function appropriately.
Inputs
:
biIncAmount: (BYTE) Value to add to the master time counter.
Outputs
:
None
vSys_SetMasterTime
Description
: Sets the master time variable to a specific value.
Inputs
:
liSetAmount
: (LWORD) Value to set master time to.
Outputs
:
None
vSys_LedIntensity
Description
: Sets the intensity of the LED on GPIO5. The user then can control the LED
on and off at the preset intensity level by controlling GPIO_LED bit, which is an alias for
P0.5 bit.
Inputs
:
biLedIntensity
: (BYTE) Only bottom two bits of this byte are used, the rest are
ignored and should be set to 0. The following table shows the LED current accord-