Skip to content

Instantly share code, notes, and snippets.

.text:000003CA loc_3CA
.text:000003CA LDRH R6, [R2,#0xE]
.text:000003CC LDRH R5, [R2,#4]
.text:000003CE LDRH.W LR, [R2,#0x10]
.text:000003D2 LDRH R1, [R2]
.text:000003D4 LDRH.W R10, [R2,#-2]
.text:000003D8 LDRH R0, [R2,#6]
.text:000003DA LDRH.W R9, [R2,#-4]
.text:000003DE LDRH.W R8, [R2,#2]
.text:000003E2 LDRH.W R12, [R2,#8]
@bvernoux
bvernoux / tokenline.patch
Created December 30, 2014 12:40
tokenline remove T_ARG_FREQ and improve T_ARG_FLOAT/T_ARG_INT with optional 'k'(Kilo), 'm'(Mega) or 'g'(Giga) suffix
tokenline.c | 48 ++++++++++++++++++++++++++----------------------
tokenline.h | 6 ++----
2 files changed, 28 insertions(+), 26 deletions(-)
diff --git a/tokenline.c b/tokenline.c
index 24049eb..c9db559 100644
--- a/tokenline.c
+++ b/tokenline.c
@@ -289,8 +289,6 @@ static char *arg_type_to_string(int arg_type)
return "<integer>";
// Converts a floating point number to string.
void ftoa(float n, char *res, int afterpoint)
{
// Extract integer part
int ipart = (int)n;
// Extract floating part
float fpart = n - (float)ipart;
// convert integer part to string
drv/stm32cube/bsp_gpio.c | 12 ++++++------
drv/stm32cube/bsp_gpio.h | 15 +++++++--------
hydrabus/gpio.c | 30 +++++++++++++++++++-----------
hydrafwEm.ebp | 14 +++++++-------
4 files changed, 39 insertions(+), 32 deletions(-)
diff --git a/drv/stm32cube/bsp_gpio.c b/drv/stm32cube/bsp_gpio.c
index fce7541..f656f0d 100644
--- a/drv/stm32cube/bsp_gpio.c
+++ b/drv/stm32cube/bsp_gpio.c
@bvernoux
bvernoux / hydrafw tl2 command help adc
Created December 1, 2014 17:03
hydrafw tl2 command help adc
> adc
This command requires parameter(s):
adc <adc_type> [samples <nb_samples>] [period <nb_period>] [continuous]
Read analog values
adc1 <adc_type> ADC1
tempsensor <adc_type> Temperature sensor
vrefint <adc_type> Internal reference voltage
vbat <adc_type> VBAT voltage
samples <nb_samples> Number of samples
period <nb_period> Delay between samples (msec)
@bvernoux
bvernoux / f
Created December 1, 2014 16:45
hydrafw tl2 spi bug last command
> mode spi
spi1> [ 10 ]
/CS ENABLED
WRITE: 0x0A
spi1>
=> shall be
> mode spi
spi1> [ 10 ]
/CS ENABLED
D:\_proj\airspy\airspy_host\libairspy\Win32\Release>airspy_info
Found AirSpy board 1
Board ID Number: 0 (AIRSPY)
Firmware Version: AirSpy NOS v1.0.0-beta-2-g605528c 605528c 2014-11-17
Part ID Number: 0x6906002B 0x000000B0
Serial Number: 0x16C463C8290C4EC7
Close board 1
Found AirSpy board 2
C:\WINDOWS\system32>D:\_proj\airspy\airspy_host\libairspy\Win32\Release\airspy_info.exe
Found AirSpy board 1
Board ID Number: 0 (AIRSPY)
Firmware Version: AirSpy NOS v1.0.0-beta-2-g605528c 605528c 2014-11-17
Part ID Number: 0x6906002B 0x000000B0
Serial Number: 0x16C463C8290C4EC7
Close board 1
Found AirSpy board 2
@bvernoux
bvernoux / openocd_hydrabus.cfg
Created November 9, 2014 01:47
HydraBus OpenOCD configuration
# This is an STM32F4 discovery board with a single STM32F407VGT6 chip.
# http://www.st.com/internet/evalboard/product/252419.jsp
source [find interface/stlink-v2.cfg]
source [find target/stm32f4x_stlink.cfg]
# use hardware reset, connect under reset
reset_config srst_only srst_nogate
@bvernoux
bvernoux / r820t.c
Created November 2, 2014 17:53
AirSpy r820t.c
/*
* Rafael Micro R820T driver for AIRSPY
*
* Copyright (C) 2013 Youssef Touil <youssef@airspy.com>
* Copyright (C) 2013 Steve Markgraf <steve@steve-m.de>
* Copyright (C) 2013 Mauro Carvalho Chehab <mchehab@redhat.com>
* Copyright (C) 2014 Benjamin Vernoux <bvernoux@airspy.com>
*
* This driver is a heavily lifted version of the driver found in the rtlsdr repository:
* http://cgit.osmocom.org/rtl-sdr/tree/src/tuner_r82xx.c