2020-11-22 13:21:51 -08:00
|
|
|
/* Copyright 2020 Matthew Tso (zoo)
|
|
|
|
*
|
|
|
|
* This program is free software: you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
* the Free Software Foundation, either version 2 of the License, or
|
|
|
|
* (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
*/
|
|
|
|
|
2023-04-05 15:50:56 +10:00
|
|
|
#include "quantum.h"
|
|
|
|
|
2021-08-24 16:28:26 +10:00
|
|
|
#ifdef OLED_ENABLE
|
2020-11-22 13:21:51 -08:00
|
|
|
|
|
|
|
void board_init(void) {
|
|
|
|
SYSCFG->CFGR1 |= SYSCFG_CFGR1_I2C1_DMA_RMP;
|
|
|
|
SYSCFG->CFGR1 &= ~(SYSCFG_CFGR1_SPI2_DMA_RMP);
|
|
|
|
}
|
|
|
|
|
2021-11-01 15:42:50 -07:00
|
|
|
oled_rotation_t oled_init_kb(oled_rotation_t rotation) {
|
2020-11-22 13:21:51 -08:00
|
|
|
return OLED_ROTATION_180;
|
|
|
|
}
|
|
|
|
#endif
|