VSF Documented
Functions
vsf_test_port_stdio.c File Reference
#include "../vsf_test.h"

Functions

void vsf_test_stdio_wdt_init (vsf_test_wdt_t *wdt, uint32_t timeout_ms)
 Initialize external watchdog via stdio (requires assist device support)
 
void vsf_test_stdio_wdt_feed (vsf_test_wdt_t *wdt)
 Reset watchdog timeout (requires assist device support)
 
void vsf_test_stdio_reboot (void)
 Reboot watchdog timeout (requires assist device support)
 
void vsf_test_stdio_data_init (vsf_test_data_t *data)
 initialize the peripherals needed to synchronize the data
 
void vsf_test_stdio_data_sync (vsf_test_data_t *data, vsf_test_data_cmd_t index)
 Synchronize data via stdio's printf and scanf.
 

Function Documentation

◆ vsf_test_stdio_wdt_init()

void vsf_test_stdio_wdt_init ( vsf_test_wdt_t wdt,
uint32_t  timeout_ms 
)

Initialize external watchdog via stdio (requires assist device support)

Parameters
[in]wdta pointer to structure vsf_test_wdt_t
[in]timeout_mstimeout (in milliseconds)

◆ vsf_test_stdio_wdt_feed()

void vsf_test_stdio_wdt_feed ( vsf_test_wdt_t wdt)

Reset watchdog timeout (requires assist device support)

Parameters
[in]wdta pointer to structure vsf_test_wdt_t

◆ vsf_test_stdio_reboot()

void vsf_test_stdio_reboot ( void  )

Reboot watchdog timeout (requires assist device support)

◆ vsf_test_stdio_data_init()

void vsf_test_stdio_data_init ( vsf_test_data_t data)

initialize the peripherals needed to synchronize the data

Parameters
[in]dataa pointer to structure vsf_test_data_t
Note
Its default implementation is an empty weak function, which the user can re-implement as needed. After initialization, we need to make sure that printf and scanf can be used properly.

◆ vsf_test_stdio_data_sync()

void vsf_test_stdio_data_sync ( vsf_test_data_t data,
vsf_test_data_cmd_t  cmd 
)

Synchronize data via stdio's printf and scanf.

Parameters
[in]dataa pointer to structure vsf_test_data_t
[in]cmdstructure vsf_test_data_cmd_t
Note
This is a synchronized blocking API.