Fix backlight support for some boards (#21554)

This commit is contained in:
Ryan 2023-07-21 09:41:02 +10:00 committed by GitHub
parent 4137685f8e
commit 39679e055d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
17 changed files with 61 additions and 29 deletions

View file

@ -46,3 +46,8 @@ led_config_t g_led_config = {
};
#endif
void board_init(void) {
// Remap B11 AF to TIM2_CH4
AFIO->MAPR |= AFIO_MAPR_TIM2_REMAP_PARTIALREMAP2;
}