1234567891011121314151617181920212223 |
- #ifndef __IO_PIN_H__
- #define __IO_PIN_H__
- typedef struct
- {
- void * io_register;
- unsigned short pin_mask;
- unsigned short valid_value;
- } hw_io_infomation_t;
- #define IO_PIN_INPUT_NUMBER 8
- #define IO_PIN_OUTPUT_NUMBER 6
- void hw_io_pin_init(void);
- void hw_io_pin_output(unsigned short index, int sta);
- int hw_io_pin_input(unsigned short index);
- void hw_io_output_enable(void);
- void hw_io_output_disable(void);
- int hw_io_get_input_pin_infomation(unsigned short index, hw_io_infomation_t * info);
- //int hw_io_power_is_off(void);
- //void hw_io_close_all(void);
- #endif
|