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>
44 lines
879 B
C
44 lines
879 B
C
#pragma once
|
|
|
|
#include <stdbool.h>
|
|
#include <stdint.h>
|
|
#include <furi-hal-resources.h>
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
void furi_hal_i2c_init();
|
|
|
|
bool furi_hal_i2c_tx(
|
|
I2C_TypeDef* instance,
|
|
const uint8_t address,
|
|
const uint8_t* data,
|
|
const uint8_t size,
|
|
uint32_t timeout);
|
|
|
|
bool furi_hal_i2c_rx(
|
|
I2C_TypeDef* instance,
|
|
const uint8_t address,
|
|
uint8_t* data,
|
|
const uint8_t size,
|
|
uint32_t timeout);
|
|
|
|
bool furi_hal_i2c_trx(
|
|
I2C_TypeDef* instance,
|
|
const uint8_t address,
|
|
const uint8_t* tx_data,
|
|
const uint8_t tx_size,
|
|
uint8_t* rx_data,
|
|
const uint8_t rx_size,
|
|
uint32_t timeout);
|
|
|
|
#define with_furi_hal_i2c(type, pointer, function_body) \
|
|
{ \
|
|
*pointer = ({ type __fn__ function_body __fn__; })(); \
|
|
}
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|