diff options
| author | Miguel <m.i@gmx.at> | 2018-09-21 12:56:51 +0200 |
|---|---|---|
| committer | Miguel <m.i@gmx.at> | 2018-09-21 12:56:51 +0200 |
| commit | c298ca7e6beaad0bcc32af6d4cf50d41b79f13b7 (patch) | |
| tree | b28e9c052cff3264439cad3c41b29262c60ba6ac /userspace/test_sysfs.c | |
| parent | f5281689c95758f17628f0286e0265ecf3385a8e (diff) | |
fix framebufffer/ textmode and clean userspace a little bit more
Diffstat (limited to 'userspace/test_sysfs.c')
| -rw-r--r-- | userspace/test_sysfs.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/userspace/test_sysfs.c b/userspace/test_sysfs.c new file mode 100644 index 0000000..9f91632 --- /dev/null +++ b/userspace/test_sysfs.c @@ -0,0 +1,9 @@ +#include <stdio.h> +int main() +{ + FILE *f=fopen("/sys/mem","w"); + uint32_t data=0xaabbccdd; + fwrite(&data,4,1,f); +// fclose(f); // not automatically by newlib? +// fflush(f); +} |
