mirror of
https://github.com/Ralim/IronOS.git
synced 2025-02-26 07:53:55 +00:00
./workspace/TS100 -> ./source/
This commit is contained in:
22
source/Core/BSP/Pine64/preRTOS.cpp
Normal file
22
source/Core/BSP/Pine64/preRTOS.cpp
Normal file
@@ -0,0 +1,22 @@
|
||||
/*
|
||||
* preRTOS.c
|
||||
*
|
||||
* Created on: 29 May 2020
|
||||
* Author: Ralim
|
||||
*/
|
||||
|
||||
#include "gd32vf103_libopt.h"
|
||||
#include "BSP.h"
|
||||
#include "Pins.h"
|
||||
#include "Setup.h"
|
||||
#include <I2C_Wrapper.hpp>
|
||||
void preRToSInit() {
|
||||
//Normal system bringup -- GPIO etc
|
||||
|
||||
hardware_init();
|
||||
delay_ms(5);
|
||||
gpio_bit_reset(OLED_RESET_GPIO_Port, OLED_RESET_Pin);
|
||||
delay_ms(50);
|
||||
gpio_bit_set(OLED_RESET_GPIO_Port, OLED_RESET_Pin);
|
||||
FRToSI2C::FRToSInit();
|
||||
}
|
||||
Reference in New Issue
Block a user