-
Notifications
You must be signed in to change notification settings - Fork 3k
Closed
Labels
Description
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