#define UEXT_MOD_HAS_SPI (1 << 2)
struct module_desc {
- uint16_t uart_number;
+ uint16_t serial_number;
uint8_t version;
uint8_t header_size;
uint8_t capabilities; /* Bit mask of UEXT_MOD_HAS_* */
/* Send the content of the header and the module name */
uprintf(uart_num, "Module : %s\n", buff);
uprintf(uart_num, "serial number: %d, version: %d, capabilities: 0x%04x\n",
- desc.uart_number, desc.version, desc.capabilities);
+ desc.serial_number, desc.version, desc.capabilities);
mod_gpio_demo_eeprom_cs_release();
}
{
int ret = 0;
struct module_desc desc = {
- .uart_number = serial_num,
+ .serial_number = serial_num,
.version = module_version,
.capabilities = (UEXT_MOD_HAS_UART | UEXT_MOD_HAS_I2C | UEXT_MOD_HAS_SPI),
.name_offset = sizeof(struct module_desc),