Toggle navigation
Documentation
The friendly Operating System for the Internet of Things
serial.h
Go to the documentation of this file.
1
/*
2
* SPDX-FileCopyrightText: 2020 Benjamin Valentin
3
* SPDX-License-Identifier: LGPL-2.1-only
4
*/
5
6
#pragma once
7
21
#ifdef __cplusplus
22
extern
"C"
{
23
#endif
24
41
#define RIOTBOOT_CMD_BOOT 'b'
42
49
#define RIOTBOOT_CMD_ERASE 'e'
50
58
#define RIOTBOOT_CMD_WRITE 'w'
59
69
#define RIOTBOOT_CMD_GET_PAGE 'P'
77
#define RIOTBOOT_STAT_OK '.'
79
#define RIOTBOOT_STAT_BAD_CRC '?'
81
#define RIOTBOOT_STAT_ILLEGAL '!'
88
/* sent to stop auto-boot */
89
#define RIOTBOOT_ENTER_LOADER 'B'
90
/* sent to probe if auto-boot is paused and riotboot is active */
91
#define RIOTBOOT_PROBE '?'
92
93
/* continuously sent by riotboot before booting */
94
#define RIOTBOOT_STAT_WAITING 'b'
95
/* indicates riotboot is ready to accept commands */
96
#define RIOTBOOT_STAT_READY '>'
102
#ifndef RIOTBOOT_CRC8_POLY
103
#define RIOTBOOT_CRC8_POLY (0x31)
104
#endif
105
110
int
riotboot_serial_loader
(
void
);
111
112
#ifdef __cplusplus
113
}
114
#endif
riotboot_serial_loader
int riotboot_serial_loader(void)
Start interactive serial bootloader.
Generated on Mon Nov 24 2025 18:43:16 by
1.9.1