I enabled automatic Last-mile in initialization, but I don't know how to check if the device is in last-Mile.
static const Power_Ip_PMC_ConfigType Power_Ip_PMC_ConfigPB =
{
/* PMC Configuration Register (CONFIG). */
(
((uint32)0x00000000U) | PMC_CONFIG_LMBCTLEN_MASK| PMC_CONFIG_LMAUTOEN_MASK
)
};