bsp_tdk.c File Reference

Board support package for Touch Display Kit.

License

Copyright 2018 Silicon Labs, http://www.silabs.com

This file is licensensed 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 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 141 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 163 of file bsp_tdk.c .