1
0
forked from me/IronOS
Files
IronOS/source/Core/BSP/MHP30/preRTOS.cpp
Ben V. Brown e84717765a Basic OLED working
* OLED
* Buttons
2021-04-26 22:22:32 +10:00

26 lines
541 B
C++

/*
* preRTOS.c
*
* Created on: 29 May 2020
* Author: Ralim
*/
#include "BSP.h"
#include "I2CBB.hpp"
#include "Model_Config.h"
#include "Pins.h"
#include "Setup.h"
#include "fusbpd.h"
#include <I2C_Wrapper.hpp>
void preRToSInit() {
/* Reset of all peripherals, Initializes the Flash interface and the Systick.
*/
SCB->VTOR = FLASH_BASE; //Set vector table offset
HAL_Init();
Setup_HAL(); // Setup all the HAL objects
BSPInit();
I2CBB::init();
/* Init the IPC objects */
FRToSI2C::FRToSInit();
}