Skip to content

FUTURE_SEQUANA: missing serial_free #11057

@fkjagodzinski

Description

@fkjagodzinski

Description

FUTURE_SEQUANA (also FUTURE_SEQUANA_M0) does not have the serial_free implemented.

This was exposed by #10965 (comment) and may be reproduced with any code calling serial_free() such as:

#if !DEVICE_SERIAL
#error [NOT_SUPPORTED] SERIAL not supported for this target
#endif

#include "hal/serial_api.h"

int main()
{
    serial_t serial;
    serial_init(&serial, USBTX, USBRX);
    serial_baud(&serial, 9600);
    serial_format(&serial, 8, ParityNone, 1);

    const int msg[] = {'t', 'e', 's', 't', '\r', '\n'};
    for (size_t i = 0; i < sizeof msg; i++) {
        serial_putc(&serial, msg[i]);
    }

    serial_free(&serial);
}

Issue request type

[ ] Question
[ ] Enhancement
[x] Bug

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions