mirror of
https://git.planet-casio.com/Lephenixnoir/gint.git
synced 2025-04-03 17:17:10 +02:00
keysc: add MPU module description for KEYSC
This commit is contained in:
parent
87fff59527
commit
e44e4fa14e
1 changed files with 34 additions and 0 deletions
34
include/gint/mpu/keysc.h
Normal file
34
include/gint/mpu/keysc.h
Normal file
|
@ -0,0 +1,34 @@
|
|||
//---
|
||||
// gint:mpu:keysc - Key Scan Controller
|
||||
//---
|
||||
|
||||
#ifndef GINT_MPU_KEYSC
|
||||
#define GINT_MPU_KEYSC
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#include <gint/defs/attributes.h>
|
||||
#include <gint/defs/types.h>
|
||||
|
||||
typedef volatile struct {
|
||||
uint16_t KIUDATA[6];
|
||||
uint16_t KIUCNTREG;
|
||||
uint16_t KIAUTOFIXREG;
|
||||
uint16_t KIUMODEREG;
|
||||
uint16_t KIUSTATEREG;
|
||||
uint16_t KIUINTREG;
|
||||
uint16_t KIUWSETREG;
|
||||
uint16_t KIUINTERVALREG;
|
||||
uint16_t KOUTPINSET;
|
||||
uint16_t KINPINSET;
|
||||
} GPACKED(4) sh7305_keysc_t;
|
||||
|
||||
#define SH7305_KEYSC (*(sh7305_keysc_t *)0xa44b0000)
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif /* GINT_MPU_KEYSC */
|
Loading…
Add table
Reference in a new issue