This function sets the key to be used to power on.

Syntax

unsigned char SetPoweronKey(
  unsigned char mode
);

Parameters

mode
[in] ]Specify the key to be used to power on.
ValueDescription
POWERON_ANYKEY Turn on the power with any keys.
POWERON_POWERKEY Turn on the power only with the power key. (Default)

Return value

Returns the setting value before this function is called.

Remarks

This function is for compatibility with older OS,
but it is not recommended as it may cause malfunction.

Requirements

Header file:
lib.h
Library file:
libSTARTUPOPH5000.a

Last updated: 2020/10/07