|
EFR32 Blue Gecko 1 Software Documentation
efr32bg1-doc-5.1.2
|
Provide stdio retargeting to TFT address mapped mode.
Copyright 2015 Silicon Labs, Inc. http://www.silabs.com
This file is licensed under the Silabs License Agreement. See the file "Silabs_License_Agreement.txt" for details. Before using this software for any purpose, you must agree to the terms of that agreement.
Definition in file retargettft.c.
#include <stdio.h>#include <stdint.h>#include "em_device.h"#include "em_cmu.h"#include "em_ebi.h"#include "em_gpio.h"#include "dmd/ssd2119/dmd_ssd2119.h"#include "bsp.h"#include "retargettft.h"#include "displayfont8x8.h"Go to the source code of this file.
Macros | |
| #define | CHARS 40 |
| #define | fontBits chars_8x8_bits |
| #define | LINES 30 |
Functions | |
| int | RETARGET_ReadChar (void) |
| Receive a byte No input method from TFT is possible, thus we always return -1. More... | |
| void | RETARGET_TftCrLf (int on) |
| Toggle LF to CRLF conversion. More... | |
| void | RETARGET_TftInit (void) |
| Intializes TFT text display. | |
| void | RETARGET_TFTTX (int c) |
| Transmit/display a character. More... | |
| void | RETARGET_TFTUpdate (bool fullFrame) |
| Display framebuffer. More... | |
| int | RETARGET_WriteChar (char c) |
| Transmit single byte to the TFT. More... | |
| static void | tftTextReset (void) |
| Reset TFT text display state. | |
| static void | tftTextScrollUp (void) |
| Scroll one line of characters up on the screen. | |
Variables | |
| static bool | bufferReset = true |
| static uint8_t | charBuffer [LINES][CHARS] |
| static bool | fullUpdate = true |
| static bool | initialized = false |
| static bool | LFtoCRLF = 0 |
| static uint8_t | rgbColor [3] |
| static bool | tftReset = true |
| static int | xpos |
| static int | ypos |
| #define CHARS 40 |
Definition at line 30 of file retargettft.c.
Referenced by RETARGET_TFTTX(), RETARGET_TFTUpdate(), tftTextReset(), and tftTextScrollUp().
| #define fontBits chars_8x8_bits |
| #define LINES 30 |
Definition at line 31 of file retargettft.c.
Referenced by RETARGET_TFTTX(), RETARGET_TFTUpdate(), tftTextReset(), and tftTextScrollUp().
|
static |
Reset buffer
Definition at line 40 of file retargettft.c.
Referenced by RETARGET_WriteChar(), and tftTextReset().
Character buffer
Definition at line 33 of file retargettft.c.
Referenced by RETARGET_TFTTX(), RETARGET_TFTUpdate(), tftTextReset(), and tftTextScrollUp().
|
static |
Display updated
Definition at line 39 of file retargettft.c.
Referenced by RETARGET_WriteChar(), and tftTextScrollUp().
|
static |
Intialize TFT stdio retarget
Definition at line 43 of file retargettft.c.
Referenced by RETARGET_WriteChar(), and tftTextReset().
|
static |
LF to CRLF conversion disabled
Definition at line 42 of file retargettft.c.
Referenced by RETARGET_TftCrLf(), and RETARGET_WriteChar().
|
static |
Color for font
Definition at line 34 of file retargettft.c.
Referenced by RETARGET_TFTTX(), RETARGET_TFTUpdate(), and tftTextReset().
|
static |
Reset TFT
Definition at line 41 of file retargettft.c.
Referenced by RETARGET_WriteChar(), and tftTextReset().
|
static |
Cursor position
Definition at line 37 of file retargettft.c.
Referenced by RETARGET_TFTTX(), RETARGET_TFTUpdate(), tftTextReset(), and tftTextScrollUp().
|
static |
Cursor position
Definition at line 37 of file retargettft.c.
Referenced by RETARGET_TFTTX(), RETARGET_TFTUpdate(), tftTextReset(), and tftTextScrollUp().