Skip to content

Commit

Permalink
Merge branch 'fix/c6_bootloader_rng_enable_v5.1' into 'release/v5.1'
Browse files Browse the repository at this point in the history
fix(bootloader_support): Fixed pattern in RNG enable function to avoid output on IO0 (v5.1)

See merge request espressif/esp-idf!31907
  • Loading branch information
mahavirj committed Jul 5, 2024
2 parents a5686fb + 1070c75 commit f4b38d0
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ void bootloader_random_enable(void)

// create patterns and set them in pattern table
uint32_t pattern_one = (SAR2_CHANNEL << 2) | SAR2_ATTEN; // we want channel 9 with max attenuation
uint32_t pattern_two = SAR1_ATTEN; // we want channel 0 with max attenuation, channel doesn't really matter here
uint32_t pattern_two = (SAR2_CHANNEL << 2) | SAR1_ATTEN; // we want channel 9 with max attenuation
uint32_t pattern_table = 0 | (pattern_two << 3 * PATTERN_BIT_WIDTH) | pattern_one << 2 * PATTERN_BIT_WIDTH;
REG_WRITE(APB_SARADC_SAR_PATT_TAB1_REG, pattern_table);

Expand Down

0 comments on commit f4b38d0

Please sign in to comment.