STM32F1 BusVoodoo application.
More...
Go to the source code of this file.
STM32F1 BusVoodoo application.
- Author
- King Kévin kingk.nosp@m.evin.nosp@m.@cuvo.nosp@m.odoo.nosp@m..info
- Date
- 2016-2018
Definition in file application.c.
◆ command_help()
static void command_help |
( |
void * |
argument | ) |
|
|
static |
command to show help
- Parameters
-
[in] | argument | no argument required |
Definition at line 160 of file application.c.
◆ command_mode()
static void command_mode |
( |
void * |
argument | ) |
|
|
static |
command to select mode
- Parameters
-
[in] | argument | mode to select |
Definition at line 169 of file application.c.
◆ command_quit()
static void command_quit |
( |
void * |
argument | ) |
|
|
static |
command to quit current BusVoodoo mode
- Parameters
-
[in] | argument | no argument required |
Definition at line 191 of file application.c.
◆ command_reset()
static void command_reset |
( |
void * |
argument | ) |
|
|
static |
command to reset board
- Parameters
-
[in] | argument | no argument required |
Definition at line 197 of file application.c.
◆ process_command()
static void process_command |
( |
char * |
str | ) |
|
|
static |
process user command
- Parameters
-
[in] | str | user command string (\0 ended) |
Definition at line 207 of file application.c.
◆ putc()
print a single character on user output
- Warning
- this must be implemented by the user (using the desired output interface)
- Parameters
-
[in] | c | character to be printed |
- Returns
- number of characters printed
Definition at line 58 of file application.c.
◆ switch_mode()
switch BusVoddoo mode
- Parameters
-
[in] | mode | mode to switch to |
Definition at line 79 of file application.c.
◆ busvoodoo_modes
Initial value:= {
}
struct busvoodoo_mode_t busvoodoo_i2c_mode
I2C mode interface definition.
struct busvoodoo_mode_t busvoodoo_hiz_mode
HiZ mode interface definition.
struct busvoodoo_mode_t busvoodoo_spi_mode
SPI mode interface definition.
struct busvoodoo_mode_t busvoodoo_uart_mode
UART mode interface definition.
all supported BusVoodoo modes
Definition at line 46 of file application.c.
◆ menu_commands
command to reboot into bootloader
- Parameters
-
[in] | argument | no argument requiredlist of all supported commands |
Definition at line 125 of file application.c.