Toggle navigation
Documentation
The friendly Operating System for the Internet of Things
Loading...
Searching...
No Matches
serial.h
Go to the documentation of this file.
1
/*
2
* Copyright (C) 2020 Benjamin Valentin
3
*
4
* This file is subject to the terms and conditions of the GNU Lesser
5
* General Public License v2.1. See the file LICENSE in the top level
6
* directory for more details.
7
*/
8
9
#pragma once
10
23
24
#ifdef __cplusplus
25
extern
"C"
{
26
#endif
27
44
#define RIOTBOOT_CMD_BOOT 'b'
45
52
#define RIOTBOOT_CMD_ERASE 'e'
53
61
#define RIOTBOOT_CMD_WRITE 'w'
62
72
#define RIOTBOOT_CMD_GET_PAGE 'P'
74
80
#define RIOTBOOT_STAT_OK '.'
82
#define RIOTBOOT_STAT_BAD_CRC '?'
84
#define RIOTBOOT_STAT_ILLEGAL '!'
86
91
/* sent to stop auto-boot */
92
#define RIOTBOOT_ENTER_LOADER 'B'
93
/* sent to probe if auto-boot is paused and riotboot is active */
94
#define RIOTBOOT_PROBE '?'
95
96
/* continuously sent by riotboot before booting */
97
#define RIOTBOOT_STAT_WAITING 'b'
98
/* indicates riotboot is ready to accept commands */
99
#define RIOTBOOT_STAT_READY '>'
101
105
#ifndef RIOTBOOT_CRC8_POLY
106
#define RIOTBOOT_CRC8_POLY (0x31)
107
#endif
108
113
int
riotboot_serial_loader
(
void
);
114
115
#ifdef __cplusplus
116
}
117
#endif
riotboot_serial_loader
int riotboot_serial_loader(void)
Start interactive serial bootloader.
Generated on Thu Jul 3 2025 17:41:21 by
1.13.2