跳转到主要内容

Utility

Utility

The components of the GR-SAKURA Utility library can be found below.

system_reboot

Description
Reset
Syntax
void system_reboot(mode)
Parameters
mode: Specify the mode of reset (REBOOT_USERAPP or REBOOT_FIRMWARE).
Returns
None
Note
Specify #include <reboot.h> for use.

Sample Program

This example shows a reset every 1 second.


#include <Arduino.h>
#include <reboot.h>

void setup()
{
    pinMode(PIN_LED0, OUTPUT);
    digitalWrite(PIN_LED0, HIGH);
 
    delay(1000);
 
    system_reboot(REBOOT_USERAPP);
//    system_reboot(REBOOT_FIRMWARE);
 
}
 
void loop()
{
}

支持

支持社区

支持社区

在线询问瑞萨电子工程社群的技术人员,快速获得技术支持。
浏览常见问题解答

常见问题

浏览我们的知识库,了解常见问题的解答。
提交工单

提交工单

需要咨询技术性问题或提供非公开信息吗?