浏览代码

Document code

Alex Voinea 4 年之前
父节点
当前提交
e985d17bd1
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      Firmware/optiboot_w25x20cl.cpp

+ 2 - 0
Firmware/optiboot_w25x20cl.cpp

@@ -99,6 +99,8 @@ struct block_t;
 extern struct block_t *block_buffer;
 extern struct block_t *block_buffer;
 
 
 //! @brief Enter an STK500 compatible Optiboot boot loader waiting for flashing the languages to an external flash memory.
 //! @brief Enter an STK500 compatible Optiboot boot loader waiting for flashing the languages to an external flash memory.
+//! @return 1 if "start\n" was not sent. Optiboot was skipped
+//! @return 0 if "start\n" was sent. Optiboot ran normally. No need to send "start\n" in setup()
 uint8_t optiboot_w25x20cl_enter()
 uint8_t optiboot_w25x20cl_enter()
 {
 {
   if (boot_app_flags & BOOT_APP_FLG_USER0) return 1;
   if (boot_app_flags & BOOT_APP_FLG_USER0) return 1;