|
|
@@ -13,8 +13,8 @@ const uint32_t max2870_regs[] ={
|
|
|
void max2870_init(void *bar1) {
|
|
|
|
|
|
// Set the command to enter the 32-bit mode
|
|
|
- uint32_t *ptr = bar1 + RST_ADDR;
|
|
|
- *ptr = CURR_WIDTH_32_BIT;
|
|
|
+ uint32_t *ptr_cmd = bar1 + RST_ADDR;
|
|
|
+ *ptr_cmd = CURR_WIDTH_32_BIT;
|
|
|
//Init Header
|
|
|
uint32_t *ptr = bar1 + MAX2870_BASE_ADDR;
|
|
|
*ptr = InitMAX2870Header;
|
|
|
@@ -25,7 +25,7 @@ void max2870_init(void *bar1) {
|
|
|
}
|
|
|
usleep(1);
|
|
|
// Return to 24-bit mode
|
|
|
- uint32_t *ptr = bar1 + RST_ADDR;
|
|
|
- *ptr = CURR_WIDTH_24_BIT;
|
|
|
+ uint32_t *ptr_cmd_2 = bar1 + RST_ADDR;
|
|
|
+ *ptr_cmd_2 = CURR_WIDTH_24_BIT;
|
|
|
|
|
|
}
|