bsp_tdk.c File Reference
Board support package for Touch Display Kit.
License
Copyright 2018 Silicon Laboratories Inc. www.silabs.com
The licensor of this software is Silicon Laboratories Inc. Your use of this software is governed by the terms of Silicon Labs Master Software License Agreement (MSLA) available at www.silabs.com/about-us/legal/master-software-license-agreement. This software is distributed to you in Source Code format and is governed by the sections of the MSLA applicable to Source Code.
Definition in file
bsp_tdk.c
.
#include <stdint.h>
#include <stdbool.h>
#include "
bsp_tdk.h
"
#include "bspconfig.h"
#include "em_device.h"
#include "
em_cmu.h
"
#include "
em_gpio.h
"
#include "
em_ebi.h
"
Functions |
|
void * | BSP_getTftSRAMDirectDriveBaseAddress (void) |
Get the TFT SRAM base address.
|
|
void | BSP_initEbiFlash (void) |
Initialize the flash.
|
|
void | BSP_initEbiSram (void) |
Initialize the SRAM.
|
|
void | BSP_initEbiTftDirectDrive (void) |
Initialize the TFT display.
|
|
void | BSP_setTftSRAMDirectDriveBaseAddress (void *baseAddressIn) |
Set the TFT SRAM base address. The TFT address is updated according to the EBI_TFTCTRL_FBCTRIG bit. Default is every VSYNC.
|
|
static void | initEbiCommon (void) |
Initialize common EBI settings (GPIO, power and pin routing)
|
|
static void | initGpio (void) |
Initialize GPIO according to bsp_config.h.
|
|
Variables |
|
static bool | BSP_ebiInitialized = false |
static bool | BSP_flashInitialized = false |
static bool | BSP_sramInitialized = false |
static bool | BSP_tftInitialized = false |
Function Documentation
void* BSP_getTftSRAMDirectDriveBaseAddress | ( | void |
|
) |
Get the TFT SRAM base address.
- Returns
- Pointer to current TFT base address
Definition at line
144
of file
bsp_tdk.c
.
void BSP_setTftSRAMDirectDriveBaseAddress | ( | void * |
baseAddressIn
|
) |
Set the TFT SRAM base address. The TFT address is updated according to the EBI_TFTCTRL_FBCTRIG bit. Default is every VSYNC.
- Parameters
-
baseAddressIn
Start address for the TFT display. This has to be in the memory space corresponding to BSP_CONFIG_SRAM_EBI_BANK.
Definition at line
166
of file
bsp_tdk.c
.