RISCV_picorv32_fpga/sw/firmware/prng.c

18 lines
435 B
C
Raw Normal View History

// This is free and unencumbered software released into the public domain.
//
// Anyone is free to copy, modify, publish, use, compile, sell, or
// distribute this software, either in source code form or as a compiled
// binary, for any purpose, commercial or non-commercial, and by any
// means.
#include "firmware.h"
#define PRNG_PORT 0xffff0050
//volatile int n;
uint32_t prng()
{
return *((volatile uint32_t*)PRNG_PORT);
}