ArduinoMega2560_SPI 1.0
Cargando...
Buscando...
Nada coincide
Referencia del archivo app_api.h

Ir al código fuente de este archivo.

defines

#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. */

Funciones

uint8_t dboot_init_api (void)
uint8_t dboot_get_api_version (uint8_t *ver)
uint8_t dboot_get_version (uint16_t *ver)
uint8_t dboot_led_toggle (void)
uint8_t dboot_led_init (void)
uint8_t dboot_safe_pgm_write (const void *ram_addr, uint16_t rom_addr, uint16_t sz)
uint8_t dboot_handle_xload (void)

Documentación de «define»

◆ BOOT_API_VERSION

#define BOOT_API_VERSION   (2) /* Version of the API expected by this code. */

Definición en la línea 34 del archivo app_api.h.

◆ BOOT_ERROR

#define BOOT_ERROR   (1) /* unspecified error */

Definición en la línea 28 del archivo app_api.h.

◆ BOOT_FUNCTION_INVALID

#define BOOT_FUNCTION_INVALID   (2) /* The function address in jump table was not valid */

Definición en la línea 29 del archivo app_api.h.

◆ BOOT_ID_INVALID

#define BOOT_ID_INVALID   (4) /* The ID of the bootloader API does not match the ID expected by this code */

Definición en la línea 31 del archivo app_api.h.

◆ BOOT_OK

#define BOOT_OK   (0) /* no error, success */

Definición en la línea 27 del archivo app_api.h.

◆ BOOT_VERSION_INVALID

#define BOOT_VERSION_INVALID   (3) /* The version of the jump table in bootloader does not match the version of this code */

Definición en la línea 30 del archivo app_api.h.

Documentación de funciones

◆ 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.