software/libbase/hyperram: Add missing #ifdef.
This commit is contained in:
parent
eb29b40e07
commit
3a37d3ba98
|
@ -7,6 +7,8 @@
|
||||||
|
|
||||||
#include <generated/csr.h>
|
#include <generated/csr.h>
|
||||||
|
|
||||||
|
#ifdef CSR_HYPERRAM_BASE
|
||||||
|
|
||||||
static void hyperram_write_reg(uint16_t reg_addr, uint16_t data) {
|
static void hyperram_write_reg(uint16_t reg_addr, uint16_t data) {
|
||||||
/* Write data to the register */
|
/* Write data to the register */
|
||||||
hyperram_reg_wdata_write(data);
|
hyperram_reg_wdata_write(data);
|
||||||
|
@ -87,3 +89,5 @@ void hyperram_init(void) {
|
||||||
hyperram_configure_latency();
|
hyperram_configure_latency();
|
||||||
printf("\n");
|
printf("\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#endif
|
Loading…
Reference in New Issue