You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
804 B
31 lines
804 B
#ifndef __GPIO_SUBSYSTEM_HEADER__
|
|
#define __GPIO_SUBSYSTEM_HEADER__
|
|
|
|
#include <stdio.h>
|
|
#include <fcntl.h>
|
|
#include <unistd.h>
|
|
#include <errno.h>
|
|
#include <string.h>
|
|
#include <sys/mman.h>
|
|
#include <sys/types.h>
|
|
#include <sys/stat.h>
|
|
|
|
#include "../../general/sitara-am437x.h"
|
|
#include "gpio_regs.h"
|
|
|
|
|
|
bool init_GPIO_0( void );
|
|
bool init_GPIO_1( void );
|
|
bool init_GPIO_2( void );
|
|
bool init_GPIO_3( void );
|
|
bool init_GPIO_4( void );
|
|
bool init_GPIO_5( void );
|
|
void setGPIO_Bit( uint8_t system, uint8_t bit );
|
|
uint32_t getInputsGPIO( uint8_t system );
|
|
uint32_t getOutputsGPIO( uint8_t system );
|
|
uint32_t getOutputMode( uint8_t system );
|
|
void setOutputMode( uint8_t system, uint32_t mode );
|
|
void setOutputDirect( uint8_t system, uint32_t mode );
|
|
void close_GPIO( void );
|
|
|
|
#endif
|