Make gpio number argument 'unsigned int', there are no negative GPIOs.
This commit is contained in:
parent
0fa4cbbdad
commit
c62ca6143d
@ -58,8 +58,8 @@
|
|||||||
#define GPIO_CNF_OUTPUT_ALTFN_PUSHPULL 0x02
|
#define GPIO_CNF_OUTPUT_ALTFN_PUSHPULL 0x02
|
||||||
#define GPIO_CNF_OUTPUT_ALTFN_OPENDRAIN 0x03
|
#define GPIO_CNF_OUTPUT_ALTFN_OPENDRAIN 0x03
|
||||||
|
|
||||||
void gpio_set(int gpio);
|
void gpio_set(unsigned int gpio);
|
||||||
void gpio_clear(int gpio);
|
void gpio_clear(unsigned int gpio);
|
||||||
void gpio_toggle(int gpio);
|
void gpio_toggle(unsigned int gpio);
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@ -18,19 +18,19 @@
|
|||||||
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "libopenstm32/gpio.h"
|
#include "libopenstm32.h"
|
||||||
|
|
||||||
void gpio_set(int gpio)
|
void gpio_set(unsigned int gpio)
|
||||||
{
|
{
|
||||||
/* TODO */
|
/* TODO */
|
||||||
}
|
}
|
||||||
|
|
||||||
void gpio_clear(int gpio)
|
void gpio_clear(unsigned int gpio)
|
||||||
{
|
{
|
||||||
/* TODO */
|
/* TODO */
|
||||||
}
|
}
|
||||||
|
|
||||||
void gpio_toggle(int gpio)
|
void gpio_toggle(unsigned int gpio)
|
||||||
{
|
{
|
||||||
/* TODO */
|
/* TODO */
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user