- added IODevice support
- fixed some issues with the logger and stack sizes git-svn-id: https://svn.vbchaos.nl/svn/hsb/trunk@216 05563f52-14a8-4384-a975-3d1654cca0fa
This commit is contained in:
@@ -11,9 +11,9 @@
|
||||
// Email: support@microkey.nl
|
||||
// Web: www.microkey.nl
|
||||
// -----------------------------------------------------------------------------
|
||||
/// $Revision: $
|
||||
/// $Author: $
|
||||
/// $Date: $
|
||||
/// $Revision$
|
||||
/// $Author$
|
||||
/// $Date$
|
||||
// (c) 2017 Micro-Key bv
|
||||
// -----------------------------------------------------------------------------
|
||||
|
||||
@@ -32,12 +32,25 @@
|
||||
// Include files
|
||||
// -----------------------------------------------------------------------------
|
||||
|
||||
|
||||
#include "spi.h"
|
||||
|
||||
// -----------------------------------------------------------------------------
|
||||
// Constant and macro definitions
|
||||
// -----------------------------------------------------------------------------
|
||||
|
||||
#define NHD0420_SPI_MAX_CLK_HZ (100000)
|
||||
// SPI settings
|
||||
#define NHD0420_SPI_Direction (SPI_Direction_1Line_Tx)
|
||||
#define NHD0420_SPI_Mode (SPI_Mode_Master)
|
||||
#define NHD0420_SPI_DataSize (SPI_DataSize_8b)
|
||||
#define NHD0420_SPI_CPOL (SPI_CPOL_High)
|
||||
#define NHD0420_SPI_CPHA (SPI_CPHA_2Edge)
|
||||
#define NHD0420_SPI_NSS (SPI_NSS_Soft)
|
||||
#define NHD0420_SPI_FirstBit (SPI_FirstBit_MSB)
|
||||
#define NHD0420_SPI_CRCPolynomial (7)
|
||||
#define NHD0420_SPI_RX_QUEUE (32)
|
||||
#define NHD0420_SPI_TX_QUEUE (32)
|
||||
|
||||
#define NHD0420_NUMBER_OF_ROWS (4)
|
||||
#define NHD0420_NUMBER_OF_COLUMNS (20)
|
||||
|
||||
@@ -109,7 +122,7 @@
|
||||
|
||||
|
||||
/** ----------------------------------------------------------------------------
|
||||
* NHD0420_Init
|
||||
* NHD0420_construct
|
||||
* Initialises the NewHeaven Display 0420
|
||||
*
|
||||
* @param interface The interface to use
|
||||
@@ -123,6 +136,34 @@
|
||||
extern ErrorStatus NHD0420_construct(void* interface);
|
||||
|
||||
|
||||
/** ----------------------------------------------------------------------------
|
||||
* NHD0420_destruct
|
||||
* Destructor for the NHD0420 instance
|
||||
*
|
||||
* @param interface The interface to use
|
||||
*
|
||||
* @return void
|
||||
*
|
||||
* @todo
|
||||
* -----------------------------------------------------------------------------
|
||||
*/
|
||||
extern void NHD0420_destruct(void);
|
||||
|
||||
|
||||
/** ----------------------------------------------------------------------------
|
||||
* NHD0420_getSpiParameters
|
||||
* Function that assigns the NHD0420 SPI parameters to a spiParameters struct
|
||||
*
|
||||
* @param parameters
|
||||
*
|
||||
* @return ErrorStatus
|
||||
*
|
||||
* @todo
|
||||
* -----------------------------------------------------------------------------
|
||||
*/
|
||||
extern ErrorStatus NHD0420_getSpiParameters(struct SpiParameters* parameters);
|
||||
|
||||
|
||||
/** ----------------------------------------------------------------------------
|
||||
* NHD0420_setCursorToPosition
|
||||
* Sets the cursor of the display to the specified row and column
|
||||
|
||||
Reference in New Issue
Block a user