blob: ed126a94705e40117061071a0699b82e16d64c60 [file] [edit]
/*
* Copyright 2017, Data61, CSIRO (ABN 41 687 119 230)
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#include <camkes.h>
#include <string.h>
int count = 0;
static inline void udelay(uint32_t us)
{
volatile int i;
for (; us > 0; us--)
for (i = 0; i < 100; i++);
}
void s__init(void)
{
}
int s_echo_int(void)
{
const char *str = "This string is in the dataport.";
udelay(100000);
strcpy((char *)d, str);
e_emit();
return count++;
}