Compare commits
1 Commits
2e01aa6877
...
371b4c0e80
Author | SHA1 | Date | |
---|---|---|---|
|
371b4c0e80 |
2
Makefile
2
Makefile
@ -71,7 +71,7 @@ distclean:
|
||||
|
||||
.PHONY:
|
||||
check: $(C_SRCS)
|
||||
$(CHECK) $(CHECK_FLAGS) $(CC_SRCS)
|
||||
$(CHECK) $(CHECK_FLAGS) --check-config $(CC_SRCS)
|
||||
|
||||
$(TARGET): $(OBJS) $(THIS_MAKEFILE)
|
||||
@mkdir -p $(dir $@)
|
||||
|
@ -38,11 +38,6 @@ void Gpio::set_direction(direction dir)
|
||||
GPIO_REGS->PIN_CNF[pin_number] = direct | input | pull | drive | sense;
|
||||
}
|
||||
|
||||
void Gpio::set_pin_number(uint32_t pin)
|
||||
{
|
||||
this->pin_number = pin;
|
||||
}
|
||||
|
||||
uint32_t Gpio::get()
|
||||
{
|
||||
uint32_t res = (GPIO_REGS->IN >> pin_number) & 1UL;
|
||||
|
@ -10,7 +10,6 @@ class Gpio : public interfaces::GpioInterface
|
||||
public:
|
||||
inline Gpio() {}
|
||||
Gpio(uint32_t);
|
||||
void set_pin_number(uint32_t);
|
||||
void set_direction(direction) override;
|
||||
uint32_t get() override;
|
||||
void set() override;
|
||||
|
Loading…
Reference in New Issue
Block a user