Skip to content

Commit b96dedb

Browse files
committed
altera: max_10 -> max10
1 parent 2347b03 commit b96dedb

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

src/altera.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -401,7 +401,7 @@ void Altera::max10_program()
401401

402402

403403
// Start!
404-
max_10_flow_enable();
404+
max10_flow_enable();
405405

406406
max10_flow_erase();
407407
max10_dsm_verify();
@@ -454,7 +454,7 @@ void Altera::max10_program()
454454
max10_dsm_verify();
455455

456456
/* disable ISC flow */
457-
max_10_flow_disable();
457+
max10_flow_disable();
458458
_jtag->set_state(Jtag::RUN_TEST_IDLE);
459459
}
460460

@@ -563,7 +563,7 @@ uint32_t Altera::verifyxFM(const uint8_t *cfg_data, uint32_t base_addr, uint32_t
563563
return errors;
564564
}
565565

566-
void Altera::max_10_flow_enable()
566+
void Altera::max10_flow_enable()
567567
{
568568
const int enable_delay = 350000120 / _clk_period; // must be 1 tck
569569
const uint8_t cmd[2] = MAX10_ISC_ENABLE;
@@ -573,7 +573,7 @@ void Altera::max_10_flow_enable()
573573
_jtag->toggleClk(enable_delay);
574574
}
575575

576-
void Altera::max_10_flow_disable()
576+
void Altera::max10_flow_disable()
577577
{
578578
// ISC_DISABLE WAIT 100.0e-3)
579579
// BYPASS WAIT 305.0e-6
@@ -751,7 +751,7 @@ bool Altera::max10_dump()
751751
return false;
752752
}
753753

754-
max_10_flow_enable();
754+
max10_flow_enable();
755755

756756
/* UFM 1 -> 0 */
757757
base_addr = mem.ufm_addr;
@@ -769,7 +769,7 @@ bool Altera::max10_dump()
769769
base_addr += mem.cfm_len[i];
770770
}
771771

772-
max_10_flow_disable();
772+
max10_flow_disable();
773773

774774
fclose(fd);
775775
return true;

src/altera.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,8 +103,8 @@ class Altera: public Device, SPIInterface {
103103
void max10_dsm_program_success(const uint32_t pgm_success_addr);
104104
void max10_flow_program_donebit(const uint32_t done_bit_addr);
105105
void max10_addr_shift(uint32_t addr);
106-
void max_10_flow_enable();
107-
void max_10_flow_disable();
106+
void max10_flow_enable();
107+
void max10_flow_disable();
108108
void max10_flow_erase();
109109
void max10_dsm_program(const uint8_t *dsm_data, const uint32_t dsm_len);
110110
bool max10_dsm_verify();

0 commit comments

Comments
 (0)