bsp_tdk.c File Reference

Board support package for Touch Display Kit.

License

Copyright 2018 Silicon Laboratories Inc. www.silabs.com

SPDX-License-Identifier: Zlib

The licensor of this software is Silicon Laboratories Inc.

This software is provided 'as-is', without any express or implied warranty. In no event will the authors be held liable for any damages arising from the use of this software.

Permission is granted to anyone to use this software for any purpose, including commercial applications, and to alter it and redistribute it freely, subject to the following restrictions:

  1. The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment in the product documentation would be appreciated but is not required.
  2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software.
  3. This notice may not be removed or altered from any source distribution.

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 157 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
baseAddressInStart address for the TFT display. This has to be in the memory space corresponding to BSP_CONFIG_SRAM_EBI_BANK.

Definition at line 179 of file bsp_tdk.c.