Files
IronOS/source/Core/BSP/Miniware/preRTOS.cpp
2023-10-24 08:27:05 +11:00

29 lines
529 B
C++

/*
* preRTOS.c
*
* Created on: 29 May 2020
* Author: Ralim
*/
#include "BSP.h"
#include "I2CBB1.hpp"
#include "I2CBB2.hpp"
#include "Pins.h"
#include "Setup.h"
#include "configuration.h"
#include <I2C_Wrapper.hpp>
void preRToSInit() {
/* Reset of all peripherals, Initializes the Flash interface and the Systick.
*/
HAL_Init();
Setup_HAL(); // Setup all the HAL objects
BSPInit();
#ifdef I2C_SOFT_BUS_2
I2CBB2::init();
#endif
#ifdef I2C_SOFT_BUS_1
I2CBB1::init();
#endif
}