fix multithread logic in template app, update gpio HAL (#250)

* fix multithread logic
* more buffer for dallas id string
* update apps to use new logic
* delay_us small speedup
* add consant qualifier to gpio records and some core api
* fix some apps to use simpler method of getting gpio record
* fix ibutton app, stupid stack problem
This commit is contained in:
DrZlo13
2020-11-19 15:25:32 +03:00
committed by GitHub
parent ccd40497eb
commit a96f23af9b
24 changed files with 137 additions and 88 deletions

View File

@@ -5,10 +5,10 @@
class OneWireGpio {
private:
GpioPin* gpio;
const GpioPin* gpio;
public:
OneWireGpio(GpioPin* one_wire_gpio);
OneWireGpio(const GpioPin* one_wire_gpio);
~OneWireGpio();
bool reset(void);
bool read_bit(void);
@@ -20,7 +20,7 @@ public:
void stop(void);
};
OneWireGpio::OneWireGpio(GpioPin* one_wire_gpio) {
OneWireGpio::OneWireGpio(const GpioPin* one_wire_gpio) {
gpio = one_wire_gpio;
}