mirror of
https://github.com/Ralim/IronOS.git
synced 2025-02-26 07:53:55 +00:00
Refactor BSP
Magic BSP -> PinecilV2 Pine64 BSP -> Pinecil Update Makefile
This commit is contained in:
24
source/Core/BSP/Pinecilv2/preRTOS.cpp
Normal file
24
source/Core/BSP/Pinecilv2/preRTOS.cpp
Normal file
@@ -0,0 +1,24 @@
|
||||
/*
|
||||
* preRTOS.c
|
||||
*
|
||||
* Created on: 29 May 2020
|
||||
* Author: Ralim
|
||||
*/
|
||||
|
||||
#include "BSP.h"
|
||||
#include "Pins.h"
|
||||
#include "Setup.h"
|
||||
#include "bflb_platform.h"
|
||||
#include "hal_gpio.h"
|
||||
#include <I2C_Wrapper.hpp>
|
||||
|
||||
void preRToSInit() {
|
||||
// Normal system bringup -- GPIO etc
|
||||
bflb_platform_init(0);
|
||||
|
||||
hardware_init();
|
||||
gpio_write(OLED_RESET_Pin, 0);
|
||||
delay_ms(10);
|
||||
gpio_write(OLED_RESET_Pin, 1);
|
||||
FRToSI2C::FRToSInit();
|
||||
}
|
||||
Reference in New Issue
Block a user