-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathOptoGPIOConfig.h
More file actions
31 lines (25 loc) · 849 Bytes
/
Copy pathOptoGPIOConfig.h
File metadata and controls
31 lines (25 loc) · 849 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
/*
* OptoGPIOConfig.h
*
*
* Author: Caroline
*/
#ifndef OPTOGPIOCONFIG_H_
#define OPTOGPIOCONFIG_H_
#include "avr32\gpio_211.h"
/************************************************************************/
/* Enable module for a given GPIO pin
/*
/* Parameters:
/* unsigned int pin_num - pin number
/* unsigned int pin_mod - module to enable
/************************************************************************/
void assign_gpio_module(unsigned int pin_num, unsigned int pin_mod);
/************************************************************************/
/* Enable GPIO functionality for a given GPIO pin (useful for debugging)
/*
/* Parameters:
/* unsigned int pin_num - pin number
/************************************************************************/
void enable_gpio_pin(unsigned int pin_num);
#endif /* OPTOGPIOCONFIG_H_ */