123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960 |
-
- #include "gpio_io.h"
- #include "gpio.h"
- #include <stdbool.h>
- #include "tinystdio.h"
- #ifdef SLAVEBRD_ENABLE
- void IO_SetDbBoot0(void)
- {
-
- GPIO_ResetBits(GPIOE, GPIO_Pin_8);
- }
- void IO_ClearDbBoot0(void)
- {
-
- GPIO_SetBits(GPIOE, GPIO_Pin_8);
- }
- void IO_SetDbReset(void)
- {
- GPIO_SetBits(GPIOE, GPIO_Pin_7);
- }
- void IO_ClearDbReset(void)
- {
- GPIO_ResetBits(GPIOE, GPIO_Pin_7);
- }
- #endif
- bool IO_BtnDefaultPressed(void)
- {
- return !gpio_get(KEY_DEF);
- }
|