8073992925
* RFID: pull antenna down when emulating * Rfid: fixed HID emulation by adding zero pulse every 4 bits * Rfid: HID emulation fixed with DSP based FSK oscillator. * Rfid: receive 125KHz clock for emulation timer from antenna and comparator * Rfid: commented unused variable * Firmware: rollback changes in f6. * Add F7 target based on F6. * F7/F6: update cube projects, apply changes to the targets, update linker scripts with correct RAM start values. * FuriHal: RFID init routine. * Scripts: update OTP tool for v11 board Co-authored-by: Aleksandr Kutuzov <alleteam@gmail.com>
25 lines
600 B
C
25 lines
600 B
C
#include <furi-hal-ibutton.h>
|
|
#include <furi-hal-resources.h>
|
|
|
|
void furi_hal_ibutton_start() {
|
|
furi_hal_ibutton_pin_high();
|
|
hal_gpio_init(&ibutton_gpio, GpioModeOutputOpenDrain, GpioSpeedLow, GpioPullNo);
|
|
}
|
|
|
|
void furi_hal_ibutton_stop() {
|
|
furi_hal_ibutton_pin_high();
|
|
hal_gpio_init(&ibutton_gpio, GpioModeAnalog, GpioSpeedLow, GpioPullNo);
|
|
}
|
|
|
|
void furi_hal_ibutton_pin_low() {
|
|
hal_gpio_write(&ibutton_gpio, false);
|
|
}
|
|
|
|
void furi_hal_ibutton_pin_high() {
|
|
hal_gpio_write(&ibutton_gpio, true);
|
|
}
|
|
|
|
bool furi_hal_ibutton_pin_get_level() {
|
|
return hal_gpio_read(&ibutton_gpio);
|
|
}
|