MLC interface driver
Helper macros/functions of driver

Macros

#define CHECK_BTN_S5()   !GpioDataRegs.GPADAT.bit.GPIO28
 
#define CHECK_BTN_S5()   !GpioDataRegs.GPFDAT.bit.GPIOF8
 
#define CHECK_BTN_S5()   gioGetBit(gioPORTA, 3)
 
#define CHECK_BTN_S8()   !GpioDataRegs.GPADAT.bit.GPIO29
 
#define CHECK_BTN_S8()   !GpioDataRegs.GPFDAT.bit.GPIOF9
 
#define CHECK_BTN_S8()   gioGetBit(gioPORTA, 2)
 
#define CHECK_BTN_S6()   !GpioDataRegs.GPADAT.bit.GPIO30
 
#define CHECK_BTN_S6()   !GpioDataRegs.GPFDAT.bit.GPIOF10
 
#define CHECK_BTN_S6()   gioGetBit(gioPORTA, 4)
 
#define CHECK_BTN_S7()   0
 
#define CHECK_BTN_S7()   !GpioDataRegs.GPFDAT.bit.GPIOF11
 
#define CHECK_BTN_S7()   gioGetBit(gioPORTA, 0)
 

Functions

void DELAY_US (float us)
 

Detailed Description

Macro Definition Documentation

#define CHECK_BTN_S5 ( )    !GpioDataRegs.GPADAT.bit.GPIO28

This macro returns 1 when button S5 is pressed.

Definition at line 418 of file MLC_drv.h.

#define CHECK_BTN_S5 ( )    !GpioDataRegs.GPFDAT.bit.GPIOF8

This macro returns 1 when button S5 is pressed.

Definition at line 418 of file MLC_drv.h.

#define CHECK_BTN_S5 ( )    gioGetBit(gioPORTA, 3)

This macro returns 1 when button S5 is pressed.

Definition at line 418 of file MLC_drv.h.

#define CHECK_BTN_S6 ( )    !GpioDataRegs.GPADAT.bit.GPIO30

This macro returns 1 when button S6 is pressed.

Definition at line 420 of file MLC_drv.h.

#define CHECK_BTN_S6 ( )    !GpioDataRegs.GPFDAT.bit.GPIOF10

This macro returns 1 when button S6 is pressed.

Definition at line 420 of file MLC_drv.h.

#define CHECK_BTN_S6 ( )    gioGetBit(gioPORTA, 4)

This macro returns 1 when button S6 is pressed.

Definition at line 420 of file MLC_drv.h.

#define CHECK_BTN_S7 ( )    0

If we want use ext. RAM > 128kB, then it always returns 0.

This macro returns 1 when button S7 is pressed. Collide with ext. RAM > 128kB.

This macro returns 1 when button S7 is pressed.

Definition at line 421 of file MLC_drv.h.

#define CHECK_BTN_S7 ( )    !GpioDataRegs.GPFDAT.bit.GPIOF11

If we want use ext. RAM > 128kB, then it always returns 0.

This macro returns 1 when button S7 is pressed. Collide with ext. RAM > 128kB.

This macro returns 1 when button S7 is pressed.

Definition at line 421 of file MLC_drv.h.

#define CHECK_BTN_S7 ( )    gioGetBit(gioPORTA, 0)

If we want use ext. RAM > 128kB, then it always returns 0.

This macro returns 1 when button S7 is pressed. Collide with ext. RAM > 128kB.

This macro returns 1 when button S7 is pressed.

Definition at line 421 of file MLC_drv.h.

#define CHECK_BTN_S8 ( )    !GpioDataRegs.GPADAT.bit.GPIO29

This macro returns 1 when button S8 is pressed.

Definition at line 419 of file MLC_drv.h.

#define CHECK_BTN_S8 ( )    !GpioDataRegs.GPFDAT.bit.GPIOF9

This macro returns 1 when button S8 is pressed.

Definition at line 419 of file MLC_drv.h.

#define CHECK_BTN_S8 ( )    gioGetBit(gioPORTA, 2)

This macro returns 1 when button S8 is pressed.

Definition at line 419 of file MLC_drv.h.

Function Documentation

void DELAY_US ( float  us)

This function provides simple delay up to 330s with us resolution, however it is not much precise if delay < 10us.

Definition at line 225 of file MLC_drv.c.

Referenced by MLC_ADC_reset(), MLC_ADC_setup(), MLC_ADC_start_conv(), MLC_ADC_start_one_conv(), and MLC_DAC_reset().

Here is the caller graph for this function: