DemoPublic/MCU/DevDriverDemo/main.c

26 lines
406 B
C

/**
* @file main.c
* @author Rick Chan
* @brief
* @version 0.1
* @date 2020-08-01
*
* @copyright Copyright (c) 2020
*
*/
#include "Device.h"
int main(void)
{
uint8_t data[32];
// Demo Device 0 obj 0 write.
DevOpen(EC_DEV_DEMO00);
DevWrite(EC_DEV_DEMO00, NULL, data, 32, 0);
// Demo Device 1 obj 1 write.
DevOpen(EC_DEV_DEMO11);
DevWrite(EC_DEV_DEMO11, NULL, data, 32, 0);
reutn 0;
}