/* This file is part of the Simba project.  */
static int test_read(void)
/* This file is part of the Simba project.  */
static int test_read(void)
{
    struct chipid_t id;
    BTASSERT(chipid_read(&id) == 0);
    std_printf(FSTR("version = %d\r\n"
                    "embedded_processor = %d\r\n"
                    "non_volatile_program_memory_size[0] = %d\r\n"
                    "non_volatile_program_memory_size[1] = %d\r\n"
                    "internal_sram_size = %d\r\n"
                    "architecture = %d\r\n"
                    "non_volatile_program_memory_type = %d\r\n"),
               id.version,
               id.embedded_processor,
               id.non_volatile_program_memory_size[0],
               id.non_volatile_program_memory_size[1],
               id.internal_sram_size,
               id.architecture,
               id.non_volatile_program_memory_type);
    return (0);
}