Updated minor details in io.h
This commit is contained in:
parent
ffa9776a46
commit
9ba08bb630
@ -1,10 +1,6 @@
|
|||||||
#ifndef _IO_H_
|
#ifndef _IO_H_
|
||||||
#define _IO_H_
|
#define _IO_H_
|
||||||
|
|
||||||
#ifdef __cplusplus
|
|
||||||
extern "C" {
|
|
||||||
#endif
|
|
||||||
|
|
||||||
//------------------------------------------------------------------------------
|
//------------------------------------------------------------------------------
|
||||||
/* GPIO pin mask definitions */
|
/* GPIO pin mask definitions */
|
||||||
enum io_pin {
|
enum io_pin {
|
||||||
@ -81,6 +77,7 @@ enum io_conf {
|
|||||||
//
|
//
|
||||||
typedef void (*OnIO)();
|
typedef void (*OnIO)();
|
||||||
|
|
||||||
|
//------------------------------------------------------------------------------
|
||||||
/* io_configure
|
/* io_configure
|
||||||
*
|
*
|
||||||
* configure pins referenced in 'pin_mask' of specified port
|
* configure pins referenced in 'pin_mask' of specified port
|
||||||
@ -88,7 +85,8 @@ typedef void (*OnIO)();
|
|||||||
* function 'cb' if not NULL.
|
* function 'cb' if not NULL.
|
||||||
* returns 0 if success
|
* returns 0 if success
|
||||||
*/
|
*/
|
||||||
int io_configure(GPIO_TypeDef *gpio, uint16_t pin_mask, uint8_t pin_cfg, OnIO cb);
|
int io_configure(GPIO_TypeDef *gpio, uint16_t pin_mask, uint8_t pin_cfg,
|
||||||
|
OnIO cb);
|
||||||
|
|
||||||
/* io_read
|
/* io_read
|
||||||
*
|
*
|
||||||
@ -117,7 +115,5 @@ void io_write_n(GPIO_TypeDef *gpio, uint16_t val, uint16_t mask);
|
|||||||
void io_set(GPIO_TypeDef *gpio, uint16_t mask);
|
void io_set(GPIO_TypeDef *gpio, uint16_t mask);
|
||||||
void io_clear(GPIO_TypeDef *gpio, uint16_t mask);
|
void io_clear(GPIO_TypeDef *gpio, uint16_t mask);
|
||||||
|
|
||||||
#ifdef __cplusplus
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user