Ir al código fuente de este archivo.
|
| #define | BOOT_OK (0) /* no error, success */ |
| #define | BOOT_ERROR (1) /* unspecified error */ |
| #define | BOOT_FUNCTION_INVALID (2) /* The function address in jump table was not valid */ |
| #define | BOOT_VERSION_INVALID (3) /* The version of the jump table in bootloader does not match the version of this code */ |
| #define | BOOT_ID_INVALID (4) /* The ID of the bootloader API does not match the ID expected by this code */ |
| #define | BOOT_API_VERSION (2) /* Version of the API expected by this code. */ |
◆ BOOT_API_VERSION
| #define BOOT_API_VERSION (2) /* Version of the API expected by this code. */ |
◆ BOOT_ERROR
| #define BOOT_ERROR (1) /* unspecified error */ |
◆ BOOT_FUNCTION_INVALID
| #define BOOT_FUNCTION_INVALID (2) /* The function address in jump table was not valid */ |
◆ BOOT_ID_INVALID
| #define BOOT_ID_INVALID (4) /* The ID of the bootloader API does not match the ID expected by this code */ |
◆ BOOT_OK
| #define BOOT_OK (0) /* no error, success */ |
◆ BOOT_VERSION_INVALID
| #define BOOT_VERSION_INVALID (3) /* The version of the jump table in bootloader does not match the version of this code */ |
◆ dboot_get_api_version()
| uint8_t dboot_get_api_version |
( |
uint8_t * | ver | ) |
|
Read the verison of the API. This is the value of the "ver" field in the jump table struct avrdbgboot_jump_table_s
- Parámetros
-
| ver | (out) - the version of the API |
- Devuelve
- BOOT_OK on success.
◆ dboot_get_version()
| uint8_t dboot_get_version |
( |
uint16_t * | ver | ) |
|
Read the version of the bootloader from bootloader memory. This is the version of the bootloader, not the version of the API. The bootloader verison is (AVRDBG_BOOT_VERSION_MAJOR << 8) | (AVRDBG_BOOT_VERSION_MINOR) as defined in bootapi.c
- Parámetros
-
| ver | (out) - the version of the bootloader |
- Devuelve
- BOOT_OK on success.
◆ dboot_handle_xload()
| uint8_t dboot_handle_xload |
( |
void | | ) |
|
Handle X load command from GDB that is load new application to memory
◆ dboot_init_api()
| uint8_t dboot_init_api |
( |
void | | ) |
|
Must be called to initialize the API and verify that it is OK before using any other function of this API.
◆ dboot_led_init()
| uint8_t dboot_led_init |
( |
void | | ) |
|
Initialize the pin for on-board LED (PB5) This is only available if AVR8_STUB_DEBUG is defined. If not defined, it just returns BOOT_VERSION_INVALID.
- Devuelve
- BOOT_OK on success.
◆ dboot_led_toggle()
| uint8_t dboot_led_toggle |
( |
void | | ) |
|
Toggle the on-board LED This is only available if AVR8_STUB_DEBUG is defined. If not defined, it just returns BOOT_VERSION_INVALID.
- Devuelve
- BOOT_OK on success.
◆ dboot_safe_pgm_write()
| uint8_t dboot_safe_pgm_write |
( |
const void * | ram_addr, |
|
|
uint16_t | rom_addr, |
|
|
uint16_t | sz ) |
Write to program memory from RAM buffer. rom_addr - in words, sz - in bytes and must be multiple of two.