User Manual
LoryPlug/CPU SDK
Manual
19
Erase_Main_Flash
Function
Erases the sector before writing data on Flash Memory in STM
CPU
Format
void Erase_Main_Flash (uint32_t addr, int Sector_Ea)
Parameter
Addr
Sector_Ea
Absolute address of Flash Memory
Number of sectors to erase (Size of a sector is
1K Bytes)
Returns
None
Sleep_Mode
Function
Switch LoryPlug/CPU into Standby mode
Format
void Sleep_Mode ()
Parameter
None
Returns
None
Notice
Sleep mode provided by SDK supports Standby mode as
standard. Standby mode is a low power mode which stops all
functions except RTC. When waking up at the set time, all state
information before standby mode is cleared and runs again
from the beginning just as a power reset.
SB_Printf
Function
Output for debug, which is same as Printf provided by standard
C and outputted via Serial Port (Debug Port)
Format
void SB_Printf (char *Fmt, …)
Parameter
Fmt
Output format of standard Printf function
Returns
None
Notice
Same as the standard Printf and outputted via Serial Port
SB_msleep
Function
Makes process wait for the specified time
Format
void SB_msleep (unsigned int msec)