gowin: Fix compilation on musl

This commit is contained in:
Marcus Comstedt 2025-03-07 15:38:14 +01:00
parent 3cf558ebe2
commit 6dbde4c368
1 changed files with 2 additions and 0 deletions

View File

@ -252,6 +252,8 @@ bool Gowin::send_command(uint8_t cmd)
#define le32toh(x) (x)
#endif
#endif
#else
#include <endian.h>
#endif
uint32_t Gowin::readReg32(uint8_t cmd)