mirror of
https://github.com/tillitis/tillitis-key1.git
synced 2025-04-25 09:29:21 -04:00

- Move GPIO functions to gpio.c and gpio.h - Move string handling functions for debug to lib.c and lib.h - Add config.h and move config defines there - Add debug print functionality via FPGA with framing protocol - Add Flash Code and Flash Data functions to flash.c and flash.h
19 lines
370 B
C
19 lines
370 B
C
#ifndef __GPIO_H__
|
|
#define __GPIO_H__
|
|
|
|
#include <stdint.h>
|
|
|
|
// Set pin p1.4 and p1.5 to GPIO output mode.
|
|
void gpio_init(void);
|
|
void gpio_set(uint8_t pin);
|
|
void gpio_unset(uint8_t pin);
|
|
uint8_t gpio_get(uint8_t pin);
|
|
|
|
void gpio_init_p1_4_in(void);
|
|
void gpio_init_p1_5_out(void);
|
|
uint8_t gpio_p1_4_get(void);
|
|
void gpio_p1_5_set(void);
|
|
void gpio_p1_5_unset(void);
|
|
|
|
#endif
|