Skip to content

Commit

Permalink
Fixed: PS2ControllerClass::begin() ignores parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
fdivitto committed Mar 26, 2019
1 parent accbca1 commit 87aa5b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ps2controller.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -506,7 +506,7 @@ void PS2ControllerClass::begin(gpio_num_t clkGPIO, gpio_num_t datGPIO)
// process, load and execute ULP program
size_t size = sizeof(ULPCode) / sizeof(ulp_insn_t);
ulp_process_macros_and_load(RTC_MEM_PROG_START, ULPCode, &size); // convert macros to ULP code
replace_placeholders(RTC_MEM_PROG_START, size, GPIO_NUM_33, GPIO_NUM_32); // replace GPIO placeholders
replace_placeholders(RTC_MEM_PROG_START, size, clkGPIO, datGPIO); // replace GPIO placeholders
REG_SET_FIELD(SENS_SAR_START_FORCE_REG, SENS_PC_INIT, RTC_MEM_PROG_START); // set entry point
SET_PERI_REG_MASK(SENS_SAR_START_FORCE_REG, SENS_ULP_CP_FORCE_START_TOP); // enable FORCE START
SET_PERI_REG_MASK(SENS_SAR_START_FORCE_REG, SENS_ULP_CP_START_TOP); // start
Expand Down

0 comments on commit 87aa5b7

Please sign in to comment.