Compare commits

..

1 Commits

Author SHA1 Message Date
Thomas Klaehn
371b4c0e80 Re-organize build system 2020-03-30 11:46:29 +02:00
3 changed files with 1 additions and 7 deletions

View File

@ -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 $@)

View File

@ -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;

View File

@ -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;