Jump to content

Recommended Posts

Posted

You have to write what's called a Toggle driver for the GINPUT module.

There's no way to register an IRQ in the upper levels. You'll find information about this on this forum. It's still possible to hack it into the GINPUT driver though.

Posted

You mean this ???? :

example of ginput_lld_toggle_board.h

#ifndef _GDISP_LLD_TOGGLE_BOARD_H
#define _GDISP_LLD_TOGGLE_BOARD_H

static bool_t init_board(GToggle* t, unsigned instance) {
	
}

static GFXINLINE void aquire_bus(GToggle* m) {
    (void)m;
}

static GFXINLINE void release_bus(GToggle* m) {
    (void)m;
}

static void write_reg(GToggle* m, uint8_t reg, uint8_t val) {
    (void)m;

    
}

static uint8_t read_byte(GToggle* m, uint8_t reg) {
    (void)m;
    
    return 0;
}

static uint16_t read_word(GToggle* m, uint8_t reg) {
	(void)m;
	
	return 0;
}



#endif /* _GDISP_LLD_TOGGLE_BOARD_H */

this work  ???

 

 

 

  • 2 weeks later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...