image/svg+xml
Brteve's API for EveApps
Version 0.0.1
The reference document for common folder of EveApps project.
 
Loading...
Searching...
No Matches
Logo.c File Reference

Draw BRT logo. More...

#include "Platform.h"
#include "Logo.h"

Go to the source code of this file.

Macros

#define FORCE_BRT_LOGO   0
 Show BRT logo even if running on FT8x platform (1)
 

Functions

void Logo_Showup (EVE_HalContext *phost)
 Show logo on screen.
 

Detailed Description

Draw BRT logo.

Author
Tuan Nguyen tuan..nosp@m.nguy.nosp@m.en@br.nosp@m.tchi.nosp@m.p.com
Date
2019

MIT License

Copyright (c) [2019] [Bridgetek Pte Ltd (BRTChip)]

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Definition in file Logo.c.

Macro Definition Documentation

◆ FORCE_BRT_LOGO

#define FORCE_BRT_LOGO   0

Show BRT logo even if running on FT8x platform (1)

Definition at line 36 of file Logo.c.

Function Documentation

◆ Logo_Showup()

void Logo_Showup ( EVE_HalContext phost)

Show logo on screen.

Parameters
phost

Definition at line 132 of file Logo.c.

132 {
133 EVE_CoCmd_dlStart(phost);
134 EVE_Cmd_wr32(phost, CLEAR_TAG(1));
135 EVE_Cmd_wr32(phost, CLEAR_COLOR_RGB(255, 255, 255));
136 EVE_Cmd_wr32(phost, CLEAR(1, 1, 1));
137
138 EVE_CoCmd_logo(phost);
139
140 EVE_Cmd_wr32(phost, DISPLAY());
141 EVE_Cmd_waitFlush(phost);
142 EVE_sleep(150);
143}
EVE_HAL_EXPORT bool EVE_Cmd_wr32(EVE_HalContext *phost, uint32_t value)
Write 4 bytes to Coprocessor's command fifo.
Definition EVE_Cmd.c:394
static void EVE_CoCmd_logo(EVE_HalContext *phost)
Send CMD_LOGO.
Definition EVE_CoCmd.h:1714
static void EVE_CoCmd_dlStart(EVE_HalContext *phost)
Send CMD_DLSTART.
Definition EVE_CoCmd.h:159
#define CLEAR(c, s, t)
#define DISPLAY()
#define CLEAR_TAG(s)
#define CLEAR_COLOR_RGB(red, green, blue)
EVE_HAL_EXPORT void EVE_sleep(uint32_t ms)
Sleep in milisecond.
void EVE_Cmd_waitFlush(EVE_HalContext *host)
Definition Gpu_Hal.cpp:775