PORTWELL NANO-6063 User's Guide
Copyright © Portwell 2022 NANO-6063 User's Guide
28
5.2 Signal GPIO Signal
#include <stdio.h>
#include <unistd.h>
#include <stdint.h>
#include <sys/io.h>
#define EC_IOSpace 0xE300 // EC IO Space Base Addr = 0xE000
// EC Internal Offset = 0x300
// EC IO Address = IO Space Base Addr + Internal offset
#define GPCR 0x2B
// GPIO Coutrol Register, Bit7 = GPO3, Bit6 = GPO2, ...,
// Bit3 = GPI3, Bit2 = GPI2, ...,
// 0: Output; 1: Input
#define GPDR 0x2C
// GPIO Status Register, Bit7 = GPO3, Bit6 = GPO2, ...,
// Bit3 = GPI3, Bit2 = GPI2, ...,
// 0: Low; 1: High
int Read_EC_SRAM(int offset)
{
int Temp;
Temp = inb_p(EC_offset);
return Temp;
}
void Write_EC_SRAM(int offset, int value)
Summary of Contents for NANO-6063
Page 55: ...PORTWELL NANO 6063 User s Guide Copyright Portwell 2022 NANO 6063 User s Guide 55 HW Monitor ...
Page 61: ...PORTWELL NANO 6063 User s Guide Copyright Portwell 2022 NANO 6063 User s Guide 61 ...
Page 62: ...PORTWELL NANO 6063 User s Guide Copyright Portwell 2022 NANO 6063 User s Guide 62 Security ...
Page 80: ...PORTWELL NANO 6063 User s Guide Copyright Portwell 2022 NANO 6063 User s Guide 80 Serial ATA ...