mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2026-11-24 21:57:54 +01:00
fixed misplaced volatile on Beb_Read32
This commit is contained in:
1 parent
5500800503
commit
7b9f408df1
1 file changed
+1
-3
@@ -1379,9 +1379,7 @@ int Beb_open(u_int32_t **csp0base, u_int32_t offset) {
|
||||
}
|
||||
|
||||
u_int32_t Beb_Read32(u_int32_t *baseaddr, u_int32_t offset) {
|
||||
volatile u_int32_t value;
|
||||
value = *(u_int32_t *)(baseaddr + offset / (sizeof(u_int32_t)));
|
||||
return value;
|
||||
return *(volatile u_int32_t *)(baseaddr + offset / sizeof(u_int32_t));
|
||||
}
|
||||
|
||||
u_int32_t Beb_Write32(u_int32_t *baseaddr, u_int32_t offset, u_int32_t data) {
|
||||
|
||||
Reference in new issue
Block a user