19 #ifndef _DISPLAY_PAL_H_
20 #define _DISPLAY_PAL_H_
34 #define PAL_EMSTATUS_OK (0)
35 #define PAL_EMSTATUS_INVALID_PARAM (PAL_EMSTATUS_BASE | 1)
36 #define PAL_EMSTATUS_REPEAT_FAILED (PAL_EMSTATUS_BASE | 2)
65 EMSTATUS PAL_GpioInit (
void);
76 EMSTATUS PAL_GpioShutdown (
void);
98 EMSTATUS PAL_GpioPinModeSet(
unsigned int port,
101 unsigned int platformSpecific);
119 EMSTATUS PAL_GpioPinOutSet(
unsigned int port,
unsigned int pin);
137 EMSTATUS PAL_GpioPinOutClear(
unsigned int port,
unsigned int pin);
155 EMSTATUS PAL_GpioPinOutToggle(
unsigned int port,
unsigned int pin);
166 EMSTATUS PAL_GpioPinAutoToggle (
unsigned int gpioPort,
167 unsigned int gpioPin,
168 unsigned int frequency);
179 EMSTATUS PAL_SpiInit (
void);
190 EMSTATUS PAL_SpiShutdown (
void);
201 EMSTATUS PAL_SpiTransmit (uint8_t* data,
unsigned int len);
212 EMSTATUS PAL_TimerInit (
void);
223 EMSTATUS PAL_TimerShutdown (
void);
233 EMSTATUS PAL_TimerMicroSecondsDelay(
unsigned int usecs);
236 #ifdef PAL_TIMER_REPEAT_FUNCTION
247 EMSTATUS PAL_TimerRepeat (
void(*pFunction)(
void*),
249 unsigned int frequency);