├── README.md ├── hardware ├── vna_sch.pdf ├── fp-lib-table └── vna.pretty │ ├── TP_1.00.kicad_mod │ ├── uwmiter_0.34_0.17_90.kicad_mod │ ├── uwmiter_0.34_0.17_45.kicad_mod │ ├── SRN4018.kicad_mod │ ├── XDFN-2.kicad_mod │ ├── PAT1220.kicad_mod │ ├── SOT-416.kicad_mod │ ├── CTX520.kicad_mod │ ├── SOD-123F.kicad_mod │ ├── XTAL_3.2x2.5.kicad_mod │ ├── 1748LP18A075.kicad_mod │ ├── SOT-23-5L.kicad_mod │ ├── SOT-23-5.kicad_mod │ ├── EVP-AWBA2A.kicad_mod │ ├── ASTRX-12.kicad_mod │ ├── SG-210STF.kicad_mod │ ├── LP0603A0902.kicad_mod │ ├── SRR6040A.kicad_mod │ ├── EJ508A.kicad_mod │ ├── C_0805b.kicad_mod │ ├── 5400BL15B050E.kicad_mod │ ├── SSOT-6.kicad_mod │ ├── C_0402b.kicad_mod │ ├── C_0603b.kicad_mod │ ├── R_0402b.kicad_mod │ └── TSOT-23.kicad_mod ├── firmware ├── common │ ├── rom_iap.h │ ├── mcp4022.h │ ├── mcp3021.h │ ├── mcp3021.c │ ├── rf_path.h │ ├── m0_sleep.c │ ├── LPC43xx_M0_memory.ld │ ├── m0_bin.s.cmake │ ├── streaming.h │ ├── sgpio.h │ ├── LPC43xx_M4_M0_image_from_text.ld │ └── max5864.h ├── libopencm3 │ ├── scripts │ │ ├── black_magic_probe_debug.scr │ │ ├── black_magic_probe_flash.scr │ │ ├── data │ │ │ └── lpc43xx │ │ │ │ ├── ritimer.csv │ │ │ │ ├── README │ │ │ │ ├── atimer.csv │ │ │ │ ├── spi.csv │ │ │ │ └── gen.py │ │ └── genlink.awk │ ├── lib │ │ ├── lm4f │ │ │ └── libopencm3_lm4f.ld │ │ ├── dispatch │ │ │ └── vector_chipset.c │ │ ├── efm32 │ │ │ ├── efm32g │ │ │ │ └── libopencm3_efm32g880f128.ld │ │ │ ├── efm32tg │ │ │ │ └── libopencm3_efm32tg840f32.ld │ │ │ └── efm32gg │ │ │ │ └── libopencm3_efm32gg990f1024.ld │ │ └── stm32 │ │ │ ├── f2 │ │ │ ├── gpio.c │ │ │ ├── dac.c │ │ │ ├── dma.c │ │ │ ├── i2c.c │ │ │ ├── spi.c │ │ │ ├── crc.c │ │ │ ├── usart.c │ │ │ ├── rtc.c │ │ │ └── iwdg.c │ │ │ ├── f4 │ │ │ ├── gpio.c │ │ │ ├── dac.c │ │ │ ├── dma.c │ │ │ ├── i2c.c │ │ │ ├── spi.c │ │ │ ├── crc.c │ │ │ ├── usart.c │ │ │ ├── iwdg.c │ │ │ └── vector_chipset.c │ │ │ ├── l1 │ │ │ ├── gpio.c │ │ │ ├── dac.c │ │ │ ├── i2c.c │ │ │ ├── spi.c │ │ │ ├── crc.c │ │ │ ├── usart.c │ │ │ ├── rtc.c │ │ │ ├── dma.c │ │ │ ├── iwdg.c │ │ │ ├── stm32l15xx6.ld │ │ │ ├── stm32l15xx8.ld │ │ │ ├── stm32l15xxb.ld │ │ │ ├── stm32l15xxc.ld │ │ │ └── stm32l15xxd.ld │ │ │ ├── f0 │ │ │ ├── i2c.c │ │ │ ├── syscfg.c │ │ │ ├── gpio.c │ │ │ ├── crc.c │ │ │ ├── dac.c │ │ │ ├── rtc.c │ │ │ ├── dma.c │ │ │ ├── iwdg.c │ │ │ └── timer.c │ │ │ ├── f3 │ │ │ ├── crc.c │ │ │ ├── pwr.c │ │ │ ├── timer.c │ │ │ ├── dac.c │ │ │ ├── vector_chipset.c │ │ │ ├── dma.c │ │ │ └── iwdg.c │ │ │ └── f1 │ │ │ ├── spi.c │ │ │ ├── crc.c │ │ │ ├── dac.c │ │ │ ├── dma.c │ │ │ ├── i2c.c │ │ │ ├── usart.c │ │ │ ├── iwdg.c │ │ │ ├── stm32f100x4.ld │ │ │ ├── stm32f100x6.ld │ │ │ ├── stm32f100x8.ld │ │ │ ├── stm32f100xb.ld │ │ │ ├── stm32f100xc.ld │ │ │ ├── stm32f100xd.ld │ │ │ └── stm32f100xe.ld │ ├── include │ │ ├── libopencm3 │ │ │ ├── cm3 │ │ │ │ ├── .common.h.swp │ │ │ │ ├── doc-cm3.h │ │ │ │ └── cortex.h │ │ │ ├── efm32 │ │ │ │ ├── efm32tg │ │ │ │ │ ├── irq.yaml │ │ │ │ │ └── doc-efm32tg.h │ │ │ │ ├── efm32g │ │ │ │ │ ├── irq.yaml │ │ │ │ │ └── doc-efm32g.h │ │ │ │ ├── efm32gg │ │ │ │ │ ├── doc-efm32gg.h │ │ │ │ │ └── irq.yaml │ │ │ │ └── efm32lg │ │ │ │ │ ├── doc-efm32lg.h │ │ │ │ │ └── irq.yaml │ │ │ ├── sam │ │ │ │ ├── 3n │ │ │ │ │ └── irq.yaml │ │ │ │ ├── 3x │ │ │ │ │ └── irq.yaml │ │ │ │ └── memorymap.h │ │ │ ├── docmain.dox │ │ │ ├── usb │ │ │ │ └── doc-usb.h │ │ │ ├── lm3s │ │ │ │ └── doc-lm3s.h │ │ │ ├── lm4f │ │ │ │ └── doc-lm4f.h │ │ │ ├── stm32 │ │ │ │ ├── f0 │ │ │ │ │ ├── irq.yaml │ │ │ │ │ ├── doc-stm32f0.h │ │ │ │ │ └── timer.h │ │ │ │ ├── f1 │ │ │ │ │ ├── doc-stm32f1.h │ │ │ │ │ └── exti.h │ │ │ │ ├── f4 │ │ │ │ │ ├── doc-stm32f4.h │ │ │ │ │ ├── rng.h │ │ │ │ │ ├── flash.h │ │ │ │ │ ├── exti.h │ │ │ │ │ └── syscfg.h │ │ │ │ ├── l1 │ │ │ │ │ ├── doc-stm32l1.h │ │ │ │ │ ├── exti.h │ │ │ │ │ ├── syscfg.h │ │ │ │ │ └── irq.yaml │ │ │ │ ├── f2 │ │ │ │ │ ├── doc-stm32f2.h │ │ │ │ │ ├── rng.h │ │ │ │ │ ├── flash.h │ │ │ │ │ ├── exti.h │ │ │ │ │ └── syscfg.h │ │ │ │ ├── f3 │ │ │ │ │ ├── doc-stm32f3.h │ │ │ │ │ └── syscfg.h │ │ │ │ ├── cec.h │ │ │ │ ├── tsc.h │ │ │ │ ├── comparator.h │ │ │ │ ├── hash.h │ │ │ │ ├── crypto.h │ │ │ │ └── adc.h │ │ │ ├── lpc13xx │ │ │ │ ├── doc-lpc13xx.h │ │ │ │ └── irq.yaml │ │ │ ├── lpc17xx │ │ │ │ ├── doc-lpc17xx.h │ │ │ │ └── irq.yaml │ │ │ ├── lpc43xx │ │ │ │ ├── doc-lpc43xx.h │ │ │ │ └── m0 │ │ │ │ │ └── irq.yaml │ │ │ └── license.dox │ │ └── libopencmsis │ │ │ ├── dispatch │ │ │ └── irqhandlers.h │ │ │ └── efm32 │ │ │ └── efm32tg │ │ │ └── irqhandlers.h │ ├── doc │ │ ├── index.html │ │ ├── stm32f0 │ │ │ └── index.html │ │ ├── stm32f1 │ │ │ └── index.html │ │ ├── stm32f2 │ │ │ ├── index.html │ │ │ ├── Doxyfile │ │ │ └── Doxyfile_latex │ │ ├── stm32f3 │ │ │ └── index.html │ │ ├── stm32f4 │ │ │ ├── index.html │ │ │ ├── Doxyfile │ │ │ └── Doxyfile_latex │ │ ├── stm32l1 │ │ │ └── index.html │ │ ├── cm3 │ │ │ └── Doxyfile │ │ ├── README │ │ ├── lm3s │ │ │ ├── Doxyfile │ │ │ └── Doxyfile_latex │ │ ├── lm4f │ │ │ ├── Doxyfile │ │ │ └── Doxyfile_latex │ │ ├── usb │ │ │ ├── Doxyfile │ │ │ └── Doxyfile_latex │ │ ├── lpc13xx │ │ │ ├── Doxyfile │ │ │ └── Doxyfile_latex │ │ ├── lpc17xx │ │ │ ├── Doxyfile │ │ │ └── Doxyfile_latex │ │ ├── lpc43xx │ │ │ ├── Doxyfile │ │ │ └── Doxyfile_latex │ │ ├── efm32g │ │ │ ├── Doxyfile │ │ │ └── Doxyfile_latex │ │ ├── efm32gg │ │ │ ├── Doxyfile │ │ │ └── Doxyfile_latex │ │ ├── efm32lg │ │ │ ├── Doxyfile │ │ │ └── Doxyfile_latex │ │ └── efm32tg │ │ │ ├── Doxyfile │ │ │ └── Doxyfile_latex │ └── locm3.sublime-project ├── hackrf_usb │ ├── sgpio_isr.h │ ├── usb_bulk_buffer.c │ ├── usb_device.h │ ├── sgpio_isr.c │ ├── usb_api_cpld.h │ ├── m0_bin.h │ └── m0s_bin.h └── CMakeLists.txt └── software └── lmh2110_cal.py /README.md: -------------------------------------------------------------------------------- 1 | Homemade 30 MHZ - 6 GHz single receiver VNA design files. 2 | -------------------------------------------------------------------------------- /hardware/vna_sch.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ttl/vna/HEAD/hardware/vna_sch.pdf -------------------------------------------------------------------------------- /firmware/common/rom_iap.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ttl/vna/HEAD/firmware/common/rom_iap.h -------------------------------------------------------------------------------- /firmware/libopencm3/scripts/black_magic_probe_debug.scr: -------------------------------------------------------------------------------- 1 | monitor version 2 | monitor swdp_scan 3 | attach 1 4 | run 5 | -------------------------------------------------------------------------------- /firmware/libopencm3/scripts/black_magic_probe_flash.scr: -------------------------------------------------------------------------------- 1 | monitor version 2 | monitor swdp_scan 3 | attach 1 4 | load 5 | -------------------------------------------------------------------------------- /hardware/fp-lib-table: -------------------------------------------------------------------------------- 1 | (fp_lib_table 2 | (lib (name VNA)(type KiCad)(uri ${KIPRJMOD}/vna.pretty)(options "")(descr "")) 3 | ) 4 | -------------------------------------------------------------------------------- /firmware/libopencm3/lib/lm4f/libopencm3_lm4f.ld: -------------------------------------------------------------------------------- 1 | /* Yes, we can simply use the lm3s linker script */ 2 | INCLUDE "libopencm3_lm3s.ld" 3 | -------------------------------------------------------------------------------- /firmware/libopencm3/include/libopencm3/cm3/.common.h.swp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ttl/vna/HEAD/firmware/libopencm3/include/libopencm3/cm3/.common.h.swp -------------------------------------------------------------------------------- /firmware/common/mcp4022.h: -------------------------------------------------------------------------------- 1 | 2 | #ifndef _MCP4022_H 3 | #define _MCP4022_H 4 | 5 | #define MCP_MAX_VALUE 63 6 | 7 | void mcp_init(void); 8 | void mcp_set(uint8_t val); 9 | 10 | 11 | #endif 12 | -------------------------------------------------------------------------------- /firmware/libopencm3/doc/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Documentation index

7 | 8 | 9 | -------------------------------------------------------------------------------- /firmware/libopencm3/doc/stm32f0/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Documentation index

7 | 8 | 9 | -------------------------------------------------------------------------------- /firmware/libopencm3/doc/stm32f1/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Documentation index

7 | 8 | 9 | -------------------------------------------------------------------------------- /firmware/libopencm3/doc/stm32f2/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Documentation index

7 | 8 | 9 | -------------------------------------------------------------------------------- /firmware/libopencm3/doc/stm32f3/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Documentation index

7 | 8 | 9 | -------------------------------------------------------------------------------- /firmware/libopencm3/doc/stm32f4/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Documentation index

7 | 8 | 9 | -------------------------------------------------------------------------------- /firmware/libopencm3/doc/stm32l1/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Documentation index

7 | 8 | 9 | -------------------------------------------------------------------------------- /firmware/libopencm3/lib/dispatch/vector_chipset.c: -------------------------------------------------------------------------------- 1 | #if defined(STM32F4) 2 | # include "../stm32/f4/vector_chipset.c" 3 | 4 | #elif defined(LPC43XX_M4) 5 | # include "../lpc43xx/m4/vector_chipset.c" 6 | 7 | #else 8 | 9 | static void pre_main(void) {} 10 | 11 | #endif 12 | -------------------------------------------------------------------------------- /firmware/common/mcp3021.h: -------------------------------------------------------------------------------- 1 | #ifndef _MCP3021_H_ 2 | #define __MCP3021_H 3 | 4 | #ifdef __cplusplus 5 | extern "C" 6 | { 7 | #endif 8 | 9 | #include 10 | #include 11 | #include "i2c_lpc.h" 12 | 13 | #define MCP3021_ADDR 0x4d 14 | 15 | uint16_t mcp3021_read_result(); 16 | 17 | #endif 18 | -------------------------------------------------------------------------------- /firmware/common/mcp3021.c: -------------------------------------------------------------------------------- 1 | #include "mcp3021.h" 2 | 3 | uint16_t mcp3021_read_result() 4 | { 5 | uint16_t result; 6 | i2c_tx_start(I2C1_BASE); 7 | i2c_tx_byte(I2C1_BASE, (MCP3021_ADDR << 1) | I2C_READ); 8 | 9 | result = i2c1_rx_byte(1) << 8; 10 | result |= i2c1_rx_byte(0); 11 | 12 | i2c_stop(I2C1_BASE); 13 | return result; 14 | } 15 | -------------------------------------------------------------------------------- /software/lmh2110_cal.py: -------------------------------------------------------------------------------- 1 | from scipy.interpolate import interp1d 2 | from lmh2110_cal_table import * 3 | 4 | def v_to_dbm(v, freq): 5 | freq /= 1e6 6 | cal_dbms = sorted(cal_table.keys()) 7 | x = [] 8 | for p in cal_dbms: 9 | px, py = cal_table[p] 10 | x.append(interp1d(px, py, fill_value='extrapolate')(freq)) 11 | return interp1d(x, cal_dbms, fill_value='extrapolate')(v) 12 | -------------------------------------------------------------------------------- /firmware/libopencm3/scripts/data/lpc43xx/ritimer.csv: -------------------------------------------------------------------------------- 1 | RITIMER_COMPVAL,0,32,RICOMP,Compare register,0xFFFFFFFF,rw 2 | RITIMER_MASK,0,32,RIMASK,Mask register,0,rw 3 | RITIMER_CTRL,0,1,RITINT,Interrupt flag,0,rw 4 | RITIMER_CTRL,1,1,RITENCLR,Timer enable clear,0,rw 5 | RITIMER_CTRL,2,1,RITENBR,Timer enable for debug,1,rw 6 | RITIMER_CTRL,3,1,RITEN,Timer enable,1,rw 7 | RITIMER_COUNTER,0,32,RICOUNTER,32-bit up counter,0,rw 8 | -------------------------------------------------------------------------------- /hardware/vna.pretty/TP_1.00.kicad_mod: -------------------------------------------------------------------------------- 1 | (module TP_1.00 (layer F.Cu) (tedit 55A404EB) 2 | (fp_text reference REF** (at 0.125 0.05) (layer F.SilkS) hide 3 | (effects (font (size 0.5 0.5) (thickness 0.125))) 4 | ) 5 | (fp_text value TP_1.00 (at 0 -0.5) (layer F.Fab) 6 | (effects (font (size 1 1) (thickness 0.15))) 7 | ) 8 | (pad 1 smd circle (at 0 0) (size 1 1) (layers F.Cu F.Paste F.Mask)) 9 | ) 10 | -------------------------------------------------------------------------------- /firmware/libopencm3/include/libopencm3/cm3/doc-cm3.h: -------------------------------------------------------------------------------- 1 | /** @mainpage libopencm3 Core CM3 2 | 3 | @version 1.0.0 4 | 5 | @date 14 September 2012 6 | 7 | API documentation for Cortex M3 core features. 8 | 9 | LGPL License Terms @ref lgpl_license 10 | */ 11 | 12 | /** @defgroup CM3_defines CM3 Defines 13 | 14 | @brief Defined Constants and Types for Cortex M3 core features 15 | 16 | @version 1.0.0 17 | 18 | @date 14 September 2012 19 | 20 | LGPL License Terms @ref lgpl_license 21 | */ 22 | 23 | -------------------------------------------------------------------------------- /firmware/libopencm3/lib/efm32/efm32g/libopencm3_efm32g880f128.ld: -------------------------------------------------------------------------------- 1 | /* lengths from d011_efm32tg840_datasheet.pdf table 1.1, offset from 2 | * d0034_efm32tg_reference_manual.pdf figure 5.2. 3 | * 4 | * the origins and memory structure are constant over all tinygeckos, but the 5 | * MEMORY section requires the use of constants, and has thus to be duplicated 6 | * over the chip variants. 7 | * */ 8 | 9 | MEMORY 10 | { 11 | rom (rx) : ORIGIN = 0, LENGTH = 128k 12 | ram (rwx) : ORIGIN = 0x20000000, LENGTH = 16k 13 | } 14 | 15 | INCLUDE libopencm3_efm32g.ld; 16 | -------------------------------------------------------------------------------- /firmware/libopencm3/lib/efm32/efm32tg/libopencm3_efm32tg840f32.ld: -------------------------------------------------------------------------------- 1 | /* lengths from d011_efm32tg840_datasheet.pdf table 1.1, offset from 2 | * d0034_efm32tg_reference_manual.pdf figure 5.2. 3 | * 4 | * the origins and memory structure are constant over all tinygeckos, but the 5 | * MEMORY section requires the use of constants, and has thus to be duplicated 6 | * over the chip variants. 7 | * */ 8 | 9 | MEMORY 10 | { 11 | rom (rx) : ORIGIN = 0, LENGTH = 32k 12 | ram (rwx) : ORIGIN = 0x20000000, LENGTH = 4k 13 | } 14 | 15 | INCLUDE libopencm3_efm32tg.ld; 16 | -------------------------------------------------------------------------------- /firmware/libopencm3/lib/efm32/efm32gg/libopencm3_efm32gg990f1024.ld: -------------------------------------------------------------------------------- 1 | /* lengths from d046_efm32gg990_datasheet.pdf table 1.1, offset from 2 | * d0034_efm32tg_reference_manual.pdf figure 5.2. 3 | * 4 | * the origins and memory structure are constant over all giantgeckos, but the 5 | * MEMORY section requires the use of constants, and has thus to be duplicated 6 | * over the chip variants. 7 | * */ 8 | 9 | MEMORY 10 | { 11 | rom (rx) : ORIGIN = 0, LENGTH = 1024k 12 | ram (rwx) : ORIGIN = 0x20000000, LENGTH = 128k 13 | } 14 | 15 | INCLUDE libopencm3_efm32gg.ld; 16 | -------------------------------------------------------------------------------- /firmware/libopencm3/include/libopencm3/efm32/efm32tg/irq.yaml: -------------------------------------------------------------------------------- 1 | includeguard: LIBOPENCM3_EFM32TG_NVIC_H 2 | partname_humanreadable: EFM32 Tiny Gecko series 3 | partname_doxygen: EFM32TG 4 | # The names and sequence are taken from d0034_efm32tg_reference_manual.pdf table 4.1. 5 | irqs: 6 | - dma 7 | - gpio_even 8 | - timer0 9 | - usart0_rx 10 | - usart0_tx 11 | - acmp01 12 | - adc0 13 | - dac0 14 | - i2c0 15 | - gpio_odd 16 | - timer1 17 | - usart1_rx 18 | - usart1_tx 19 | - lesense 20 | - leuart0 21 | - letimer0 22 | - pcnt0 23 | - rtc 24 | - cmu 25 | - vcmp 26 | - lcd 27 | - msc 28 | - aes 29 | -------------------------------------------------------------------------------- /firmware/libopencm3/include/libopencm3/sam/3n/irq.yaml: -------------------------------------------------------------------------------- 1 | includeguard: LIBOPENCM3_SAM3N_NVIC_H 2 | partname_humanreadable: Atmel SAM3N series 3 | partname_doxygen: SAM3N 4 | irqs: 5 | - supc 6 | - rstc 7 | - rtc 8 | - rtt 9 | - wdg 10 | - pmc 11 | - eefc0 12 | - reserved0 13 | - uart0 14 | - uart1 15 | - reserved1 16 | - pioa 17 | - piob 18 | - pioc 19 | - usart0 20 | - usart1 21 | - reserved2 22 | - reserved3 23 | - reserved4 24 | - twi0 25 | - twi1 26 | - spi 27 | - reserved5 28 | - tc0 29 | - tc1 30 | - tc2 31 | - tc3 32 | - tc4 33 | - tc5 34 | - adc 35 | - dacc 36 | - pwm 37 | -------------------------------------------------------------------------------- /firmware/libopencm3/include/libopencm3/docmain.dox: -------------------------------------------------------------------------------- 1 | /** @mainpage libopencm3 Developer Documentation 2 | 3 | @version 1.0.0 4 | 5 | @date 7 September 2012 6 | 7 | * The libopencm3 project (previously known as libopenstm32) aims to create 8 | * a free/libre/open-source (GPL v3, or later) firmware library for various 9 | * ARM Cortex-M3 microcontrollers, including ST STM32, Toshiba TX03, 10 | * Atmel SAM3U, NXP LPC1000 and others. 11 | * 12 | * @par "" 13 | * 14 | * See the libopencm3 wiki for 15 | * more information. 16 | 17 | LGPL License Terms @ref lgpl_license 18 | */ 19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /firmware/libopencm3/include/libopencm3/usb/doc-usb.h: -------------------------------------------------------------------------------- 1 | /** @mainpage libopencm3 Generic USB 2 | 3 | @version 1.0.0 4 | 5 | @date 10 March 2013 6 | 7 | API documentation for Generic USB. 8 | 9 | LGPL License Terms @ref lgpl_license 10 | */ 11 | 12 | /** @defgroup USB Generic USB 13 | Libraries for Generic USB. 14 | 15 | @version 1.0.0 16 | 17 | @date 10 March 2013 18 | 19 | LGPL License Terms @ref lgpl_license 20 | */ 21 | 22 | /** @defgroup USB_defines Generic USB Defines 23 | 24 | @brief Defined Constants and Types for Generic USB. 25 | 26 | @version 1.0.0 27 | 28 | @date 10 March 2013 29 | 30 | LGPL License Terms @ref lgpl_license 31 | */ 32 | 33 | -------------------------------------------------------------------------------- /firmware/libopencm3/scripts/genlink.awk: -------------------------------------------------------------------------------- 1 | # This program converts chip name to the series of definitions for make of 2 | # automatic linker script. 3 | # 4 | # Copyright (C) 2013 Frantisek Burian 5 | # Copyright (C) 2013 Werner Almesberger 6 | # 7 | 8 | BEGIN { 9 | PAT = tolower(PAT); 10 | } 11 | !/^#/{ 12 | tmp = "^"$1"$"; 13 | gsub(/?/, ".", tmp); 14 | gsub(/*/, ".*", tmp); 15 | gsub(/+/, ".+", tmp); 16 | tolower(tmp); 17 | 18 | if (PAT ~ tmp) { 19 | if ($2 != "+") 20 | PAT=$2; 21 | $1=""; 22 | $2=""; 23 | for (i = 3; i <= NF; i = i + 1) 24 | $i = "-D"$i; 25 | print; 26 | if (PAT=="END") exit; 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /firmware/common/rf_path.h: -------------------------------------------------------------------------------- 1 | #ifndef _RF_PATH_H 2 | #define _RF_PATH_H 3 | 4 | 5 | void enable_pa(void); 6 | void disable_pa(void); 7 | 8 | void enable_mixer(void); 9 | void disable_mixer(void); 10 | 11 | void enable_signal(void); 12 | void disable_signal(void); 13 | 14 | void rf_disable(void); 15 | void rf_enable(void); 16 | 17 | void set_tx_port(uint8_t n); 18 | void set_filter(uint8_t n); 19 | void set_rx_channel(uint8_t ch); 20 | 21 | void lo_write_register(uint32_t data); 22 | void source_write_register(uint32_t data); 23 | void att_write_register(uint8_t data); 24 | 25 | void wait_for_lock(); 26 | 27 | void sample(uint32_t channels, uint32_t *delays); 28 | 29 | #endif 30 | -------------------------------------------------------------------------------- /firmware/libopencm3/locm3.sublime-project: -------------------------------------------------------------------------------- 1 | { 2 | "folders": 3 | [ 4 | { 5 | "path": ".", 6 | "file_exclude_patterns": 7 | [ 8 | "*.o", 9 | "*.a", 10 | "*.d", 11 | "*.sublime-project", 12 | "*.sublime-workspace", 13 | "*.swp" 14 | ], 15 | "folder_exclude_patterns": 16 | [ 17 | ] 18 | } 19 | ], 20 | "settings": 21 | { 22 | "tab_size": 8, 23 | "translate_tabs_to_spaces": false, 24 | "rulers": [80] 25 | }, 26 | "build_systems": 27 | [ 28 | { 29 | "name": "libopencm3", 30 | "working_dir": "${project_path}", 31 | "file_regex": "^(..[^:]*):([0-9]+):?([0-9]+)?:? (.*)$", 32 | "cmd": ["make"] 33 | } 34 | ] 35 | } 36 | -------------------------------------------------------------------------------- /firmware/libopencm3/include/libopencm3/lm3s/doc-lm3s.h: -------------------------------------------------------------------------------- 1 | /** @mainpage libopencm3 LM3S 2 | 3 | @version 1.0.0 4 | 5 | @date 14 September 2012 6 | 7 | API documentation for TI Stellaris LM3S Cortex M3 series. 8 | 9 | LGPL License Terms @ref lgpl_license 10 | */ 11 | 12 | /** @defgroup LM3Sxx LM3S 13 | Libraries for TI Stellaris LM3S series. 14 | 15 | @version 1.0.0 16 | 17 | @date 7 September 2012 18 | 19 | LGPL License Terms @ref lgpl_license 20 | */ 21 | 22 | /** @defgroup LM3Sxx_defines LM3S Defines 23 | 24 | @brief Defined Constants and Types for the LM3S series 25 | 26 | @version 1.0.0 27 | 28 | @date 14 September 2012 29 | 30 | LGPL License Terms @ref lgpl_license 31 | */ 32 | 33 | -------------------------------------------------------------------------------- /firmware/libopencm3/include/libopencm3/lm4f/doc-lm4f.h: -------------------------------------------------------------------------------- 1 | /** @mainpage libopencm3 LM4F 2 | 3 | @version 1.0.0 4 | 5 | @date 22 November 2012 6 | 7 | API documentation for TI Stellaris LM4F Cortex M4F series. 8 | 9 | LGPL License Terms @ref lgpl_license 10 | */ 11 | 12 | /** @defgroup LM4Fxx LM4F 13 | Libraries for TI Stellaris LM4F series. 14 | 15 | @version 1.0.0 16 | 17 | @date 22 November 2012 18 | 19 | LGPL License Terms @ref lgpl_license 20 | */ 21 | 22 | /** @defgroup LM4Fxx_defines LM4F Defines 23 | 24 | @brief Defined Constants and Types for the LM4F series 25 | 26 | @version 1.0.0 27 | 28 | @date 22 November 2012 29 | 30 | LGPL License Terms @ref lgpl_license 31 | */ 32 | 33 | -------------------------------------------------------------------------------- /firmware/libopencm3/include/libopencm3/stm32/f0/irq.yaml: -------------------------------------------------------------------------------- 1 | includeguard: LIBOPENCM3_STM32_F0_NVIC_H 2 | partname_humanreadable: STM32 F0 series 3 | partname_doxygen: STM32F0 4 | irqs: 5 | - wwdg 6 | - pvd 7 | - rtc 8 | - flash 9 | - rcc 10 | - exti0_1 11 | - exti2_3 12 | - exti4_15 13 | - tsc 14 | - dma1_channel1 15 | - dma1_channel2_3 16 | - dma1_channel4_5 17 | - adc_comp 18 | - tim1_brk_up_trg_com 19 | - tim1_cc 20 | - tim2 21 | - tim3 22 | - tim6_dac 23 | - reserved0 24 | - tim14 25 | - tim15 26 | - tim16 27 | - tim17 28 | - i2c1 29 | - i2c2 30 | - spi1 31 | - spi2 32 | - usart1 33 | - usart2 34 | - reserved1 35 | - cec 36 | - reserved2 37 | -------------------------------------------------------------------------------- /firmware/libopencm3/include/libopencm3/lpc13xx/doc-lpc13xx.h: -------------------------------------------------------------------------------- 1 | /** @mainpage libopencm3 LPC13xx 2 | 3 | @version 1.0.0 4 | 5 | @date 14 September 2012 6 | 7 | API documentation for NXP Semiconductors LPC13xx Cortex M3 series. 8 | 9 | LGPL License Terms @ref lgpl_license 10 | */ 11 | 12 | /** @defgroup LPC13xx LPC13xx 13 | Libraries for NXP Semiconductors LPC13xx series. 14 | 15 | @version 1.0.0 16 | 17 | @date 14 September 2012 18 | 19 | LGPL License Terms @ref lgpl_license 20 | */ 21 | 22 | /** @defgroup LPC13xx_defines LPC13xx Defines 23 | 24 | @brief Defined Constants and Types for the LPC13xx series 25 | 26 | @version 1.0.0 27 | 28 | @date 14 September 2012 29 | 30 | LGPL License Terms @ref lgpl_license 31 | */ 32 | 33 | -------------------------------------------------------------------------------- /firmware/libopencm3/include/libopencm3/lpc17xx/doc-lpc17xx.h: -------------------------------------------------------------------------------- 1 | /** @mainpage libopencm3 LPC17xx 2 | 3 | @version 1.0.0 4 | 5 | @date 14 September 2012 6 | 7 | API documentation for NXP Semiconductors LPC17xx Cortex M3 series. 8 | 9 | LGPL License Terms @ref lgpl_license 10 | */ 11 | 12 | /** @defgroup LPC17xx LPC17xx 13 | Libraries for NXP Semiconductors LPC17xx series. 14 | 15 | @version 1.0.0 16 | 17 | @date 14 September 2012 18 | 19 | LGPL License Terms @ref lgpl_license 20 | */ 21 | 22 | /** @defgroup LPC17xx_defines LPC17xx Defines 23 | 24 | @brief Defined Constants and Types for the LPC17xx series 25 | 26 | @version 1.0.0 27 | 28 | @date 14 September 2012 29 | 30 | LGPL License Terms @ref lgpl_license 31 | */ 32 | 33 | -------------------------------------------------------------------------------- /firmware/libopencm3/include/libopencm3/lpc43xx/doc-lpc43xx.h: -------------------------------------------------------------------------------- 1 | /** @mainpage libopencm3 LPC43xx 2 | 3 | @version 1.0.0 4 | 5 | @date 14 September 2012 6 | 7 | API documentation for NXP Semiconductors LPC43xx Cortex M3 series. 8 | 9 | LGPL License Terms @ref lgpl_license 10 | */ 11 | 12 | /** @defgroup LPC43xx LPC43xx 13 | Libraries for NXP Semiconductors LPC43xx series. 14 | 15 | @version 1.0.0 16 | 17 | @date 14 September 2012 18 | 19 | LGPL License Terms @ref lgpl_license 20 | */ 21 | 22 | /** @defgroup LPC43xx_defines LPC43xx Defines 23 | 24 | @brief Defined Constants and Types for the LPC43xx series 25 | 26 | @version 1.0.0 27 | 28 | @date 14 September 2012 29 | 30 | LGPL License Terms @ref lgpl_license 31 | */ 32 | 33 | -------------------------------------------------------------------------------- /firmware/libopencm3/include/libopencm3/lpc17xx/irq.yaml: -------------------------------------------------------------------------------- 1 | includeguard: LIBOPENCM3_LPC17xx_NVIC_H 2 | partname_humanreadable: LPC 17xx series 3 | partname_doxygen: LPC17xx 4 | irqs: 5 | 0: wdt 6 | 1: timer0 7 | 2: timer1 8 | 3: timer2 9 | 4: timer3 10 | 5: uart0 11 | 6: uart1 12 | 7: uart2 13 | 8: uart3 14 | 9: pwm 15 | 10: i2c0 16 | 11: i2c1 17 | 12: i2c2 18 | 13: spi 19 | 14: ssp0 20 | 15: ssp1 21 | 16: pll0 22 | 17: rtc 23 | 18: eint0 24 | 19: eint1 25 | 20: eint2 26 | 21: eint3 27 | 22: adc 28 | 23: bod 29 | 24: usb 30 | 25: can 31 | 26: gpdma 32 | 27: i2s 33 | 28: ethernet 34 | 29: rit 35 | 30: motor_pwm 36 | 31: qei 37 | 32: pll1 38 | 33: usb_act 39 | 34: can_act 40 | -------------------------------------------------------------------------------- /firmware/libopencm3/include/libopencm3/efm32/efm32g/irq.yaml: -------------------------------------------------------------------------------- 1 | includeguard: LIBOPENCM3_EFM32G_NVIC_H 2 | partname_humanreadable: EFM32 Gecko series 3 | partname_doxygen: EFM32G 4 | # The names and sequence are taken from d0001_efm32g_reference_manual.pdf table 4.1. 5 | irqs: 6 | - dma 7 | - gpio_even 8 | - timer0 9 | - usart0_rx 10 | - usart0_tx 11 | - acmp01 12 | - adc0 13 | - dac0 14 | - i2c0 15 | - gpio_odd 16 | - timer1 17 | - timer2 18 | - usart1_rx 19 | - usart1_tx 20 | - usart2_rx 21 | - usart2_tx 22 | - uart0_rx 23 | - uart0_tx 24 | - leuart0 25 | - leuart1 26 | - letimer0 27 | - pcnt0 28 | - pcnt1 29 | - pcnt2 30 | - rtc 31 | - cmu 32 | - vcmp 33 | - lcd 34 | - msc 35 | - aes 36 | -------------------------------------------------------------------------------- /firmware/libopencm3/include/libopencm3/lpc43xx/m0/irq.yaml: -------------------------------------------------------------------------------- 1 | includeguard: LIBOPENCM3_LPC43xx_M0_NVIC_H 2 | partname_humanreadable: LPC 43xx series M0 core 3 | partname_doxygen: LPC43xx (M0) 4 | irqs: 5 | 0: rtc 6 | 1: m4core 7 | 2: dma 8 | # reserved: 3 9 | 4: flasheepromat 10 | 5: ethernet 11 | 6: sdio 12 | 7: lcd 13 | 8: usb0 14 | 9: usb1 15 | 10: sct 16 | 11: ritimer_or_wwdt 17 | 12: timer0 18 | 13: gint1 19 | 14: pin_int4 20 | 15: timer3 21 | 16: mcpwm 22 | 17: adc0 23 | 18: i2c0_or_irc1 24 | 19: sgpio 25 | 20: spi_or_dac 26 | 21: adc1 27 | 22: ssp0_or_ssp1 28 | 23: eventrouter 29 | 24: usart0 30 | 25: uart1 31 | 26: usart2_or_c_can1 32 | 27: usart3 33 | 28: i2s0_or_i2s1 34 | 29: c_can0 -------------------------------------------------------------------------------- /firmware/libopencm3/include/libopencm3/stm32/f1/doc-stm32f1.h: -------------------------------------------------------------------------------- 1 | /** @mainpage libopencm3 STM32F1 2 | 3 | @version 1.0.0 4 | 5 | @date 7 September 2012 6 | 7 | API documentation for ST Microelectronics STM32F1 Cortex M3 series. 8 | 9 | LGPL License Terms @ref lgpl_license 10 | */ 11 | 12 | /** @defgroup STM32F1xx STM32F1xx 13 | Libraries for ST Microelectronics STM32F1xx series. 14 | 15 | @version 1.0.0 16 | 17 | @date 7 September 2012 18 | 19 | LGPL License Terms @ref lgpl_license 20 | */ 21 | 22 | /** @defgroup STM32F1xx_defines STM32F1xx Defines 23 | 24 | @brief Defined Constants and Types for the STM32F1xx series 25 | 26 | @version 1.0.0 27 | 28 | @date 7 September 2012 29 | 30 | LGPL License Terms @ref lgpl_license 31 | */ 32 | 33 | -------------------------------------------------------------------------------- /firmware/libopencm3/include/libopencm3/stm32/f4/doc-stm32f4.h: -------------------------------------------------------------------------------- 1 | /** @mainpage libopencm3 STM32F4 2 | 3 | @version 1.0.0 4 | 5 | @date 7 September 2012 6 | 7 | API documentation for ST Microelectronics STM32F4 Cortex M3 series. 8 | 9 | LGPL License Terms @ref lgpl_license 10 | */ 11 | 12 | /** @defgroup STM32F4xx STM32F4xx 13 | Libraries for ST Microelectronics STM32F4xx series. 14 | 15 | @version 1.0.0 16 | 17 | @date 7 September 2012 18 | 19 | LGPL License Terms @ref lgpl_license 20 | */ 21 | 22 | /** @defgroup STM32F4xx_defines STM32F4xx Defines 23 | 24 | @brief Defined Constants and Types for the STM32F4xx series 25 | 26 | @version 1.0.0 27 | 28 | @date 7 September 2012 29 | 30 | LGPL License Terms @ref lgpl_license 31 | */ 32 | 33 | -------------------------------------------------------------------------------- /firmware/libopencm3/include/libopencm3/stm32/l1/doc-stm32l1.h: -------------------------------------------------------------------------------- 1 | /** @mainpage libopencm3 STM32L1 2 | 3 | @version 1.0.0 4 | 5 | @date 12 November 2012 6 | 7 | API documentation for ST Microelectronics STM32L1 Cortex M3 series. 8 | 9 | LGPL License Terms @ref lgpl_license 10 | */ 11 | 12 | /** @defgroup STM32L1xx STM32L1xx 13 | Libraries for ST Microelectronics STM32L1xx series. 14 | 15 | @version 1.0.0 16 | 17 | @date 12 November 2012 18 | 19 | LGPL License Terms @ref lgpl_license 20 | */ 21 | 22 | /** @defgroup STM32L1xx_defines STM32L1xx Defines 23 | 24 | @brief Defined Constants and Types for the STM32L1xx series 25 | 26 | @version 1.0.0 27 | 28 | @date 12 November 2012 29 | 30 | LGPL License Terms @ref lgpl_license 31 | */ 32 | 33 | -------------------------------------------------------------------------------- /hardware/vna.pretty/uwmiter_0.34_0.17_90.kicad_mod: -------------------------------------------------------------------------------- 1 | (module uwmiter_0.34_0.17_90 (layer F.Cu) (tedit 0) 2 | (fp_text reference uwmiter_0.34_0.17_90 (at 0 1.34) (layer F.SilkS) hide 3 | (effects (font (size 0.7 0.8) (thickness 0.15))) 4 | ) 5 | (fp_text value Val*** (at 0 2.34) (layer F.SilkS) hide 6 | (effects (font (size 0.7 0.8) (thickness 0.15))) 7 | ) 8 | (fp_poly (pts (xy 0 0) (xy 0.34 0) (xy 0.34 0.17) (xy 0.51 0.17) 9 | (xy 0.509999 0.51) (xy 0.3808 0.51) (xy 0 0.129199) (xy 0 0)) (layer F.Cu) (width 0)) 10 | (pad 1 smd rect (at 0.17 -0.017) (size 0.34 0.034) (layers F.Cu) 11 | (clearance 0.000001)) 12 | (pad 2 smd rect (at 0.526999 0.34) (size 0.034 0.34) (layers F.Cu) 13 | (clearance 0.000001)) 14 | ) 15 | -------------------------------------------------------------------------------- /firmware/libopencm3/include/libopencm3/stm32/f2/doc-stm32f2.h: -------------------------------------------------------------------------------- 1 | /** @mainpage libopencm3 STM32F2 2 | 3 | @version 1.0.0 4 | 5 | @date 14 September 2012 6 | 7 | API documentation for ST Microelectronics STM32F2 Cortex M3 series. 8 | 9 | LGPL License Terms @ref lgpl_license 10 | */ 11 | 12 | 13 | /** @defgroup STM32F2xx STM32F2xx 14 | Libraries for ST Microelectronics STM32F2xx series. 15 | 16 | @version 1.0.0 17 | 18 | @date 14 September 2012 19 | 20 | LGPL License Terms @ref lgpl_license 21 | */ 22 | 23 | /** @defgroup STM32F2xx_defines STM32F2xx Defines 24 | 25 | @brief Defined Constants and Types for the STM32F2xx series 26 | 27 | @version 1.0.0 28 | 29 | @date 14 September 2012 30 | 31 | LGPL License Terms @ref lgpl_license 32 | */ 33 | 34 | -------------------------------------------------------------------------------- /firmware/libopencm3/include/libopencm3/efm32/efm32g/doc-efm32g.h: -------------------------------------------------------------------------------- 1 | /** @mainpage libopencm3 EFM32 Gecko 2 | 3 | @version 1.0.0 4 | 5 | @date 11 November 2012 6 | 7 | API documentation for Energy Micro EFM32 Gecko Cortex M3 series. 8 | 9 | LGPL License Terms @ref lgpl_license 10 | */ 11 | 12 | /** @defgroup EFM32G EFM32 Gecko 13 | Libraries for Energy Micro EFM32 Gecko series. 14 | 15 | @version 1.0.0 16 | 17 | @date 11 November 2012 18 | 19 | LGPL License Terms @ref lgpl_license 20 | */ 21 | 22 | /** @defgroup EFM32G_defines EFM32 Gecko Defines 23 | 24 | @brief Defined Constants and Types for the Energy Micro EFM32 Gecko series 25 | 26 | @version 1.0.0 27 | 28 | @date 11 November 2012 29 | 30 | LGPL License Terms @ref lgpl_license 31 | */ 32 | 33 | -------------------------------------------------------------------------------- /hardware/vna.pretty/uwmiter_0.34_0.17_45.kicad_mod: -------------------------------------------------------------------------------- 1 | (module uwmiter_0.34_0.17_45 (layer F.Cu) (tedit 569FDDF6) 2 | (fp_text reference uwmiter_0.34_0.17_45 (at 0 1.34) (layer F.SilkS) hide 3 | (effects (font (size 0.7 0.8) (thickness 0.15))) 4 | ) 5 | (fp_text value Val*** (at 0 2.34) (layer F.SilkS) hide 6 | (effects (font (size 0.7 0.8) (thickness 0.15))) 7 | ) 8 | (fp_poly (pts (xy 0 0) (xy 0.34 0) (xy 0.34 0.17) (xy 0.460208 0.290208) 9 | (xy 0.219791 0.530624) (xy 0.129199 0.440032) (xy 0 0.128116) (xy 0 0)) (layer F.Cu) (width 0)) 10 | (pad 1 smd rect (at 0.17 -0.017) (size 0.34 0.15) (layers F.Cu) 11 | (clearance 0.000001)) 12 | (pad 2 smd rect (at 0.35202 0.422437 315) (size 0.15 0.34) (layers F.Cu) 13 | (clearance 0.000001)) 14 | ) 15 | -------------------------------------------------------------------------------- /firmware/libopencm3/include/libopencm3/efm32/efm32tg/doc-efm32tg.h: -------------------------------------------------------------------------------- 1 | /** @mainpage libopencm3 EFM32 Tiny Gecko 2 | 3 | @version 1.0.0 4 | 5 | @date 4 March 2013 6 | 7 | API documentation for Energy Micro EFM32 Tiny Gecko Cortex M3 series. 8 | 9 | LGPL License Terms @ref lgpl_license 10 | */ 11 | 12 | /** @defgroup EFM32TG EFM32 TinyGecko 13 | Libraries for Energy Micro EFM32 Tiny Gecko series. 14 | 15 | @version 1.0.0 16 | 17 | @date 4 March 2013 18 | 19 | LGPL License Terms @ref lgpl_license 20 | */ 21 | 22 | /** @defgroup EFM32TG_defines EFM32 Tiny Gecko Defines 23 | 24 | @brief Defined Constants and Types for the Energy Micro EFM32 Tiny Gecko series 25 | 26 | @version 1.0.0 27 | 28 | @date 4 March 2013 29 | 30 | LGPL License Terms @ref lgpl_license 31 | */ 32 | 33 | -------------------------------------------------------------------------------- /firmware/libopencm3/include/libopencm3/license.dox: -------------------------------------------------------------------------------- 1 | /** @page lgpl_license libopencm3 License 2 | 3 | libopencm3 is free software: you can redistribute it and/or modify 4 | it under the terms of the GNU Lesser General Public License as published by the Free 5 | Software Foundation, either version 3 of the License, or (at your option) any 6 | later version. 7 | 8 | libopencm3 is distributed in the hope that it will be useful, but WITHOUT ANY 9 | WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A 10 | PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. 11 | 12 | You should have received a copy of the GNU Lesser General Public License along with this 13 | program. If not, see . 14 | 15 | */ 16 | 17 | -------------------------------------------------------------------------------- /hardware/vna.pretty/SRN4018.kicad_mod: -------------------------------------------------------------------------------- 1 | (module SRN4018 (layer F.Cu) (tedit 5585889F) 2 | (fp_text reference REF** (at 1.7 2.8) (layer F.SilkS) 3 | (effects (font (size 1 1) (thickness 0.15))) 4 | ) 5 | (fp_text value SRN4018 (at 1.5 -2.5) (layer F.Fab) 6 | (effects (font (size 1 1) (thickness 0.15))) 7 | ) 8 | (fp_line (start -0.5 2.1) (end -0.5 -1.9) (layer F.SilkS) (width 0.15)) 9 | (fp_line (start -0.5 -1.9) (end 3.5 -1.9) (layer F.SilkS) (width 0.15)) 10 | (fp_line (start 3.5 -1.9) (end 3.5 2.1) (layer F.SilkS) (width 0.15)) 11 | (fp_line (start 3.5 2.1) (end -0.5 2.1) (layer F.SilkS) (width 0.15)) 12 | (pad 1 smd rect (at 0 0) (size 1.5 3.6) (layers F.Cu F.Paste F.Mask)) 13 | (pad 2 smd rect (at 3.05 0) (size 1.5 3.6) (layers F.Cu F.Paste F.Mask)) 14 | ) 15 | -------------------------------------------------------------------------------- /firmware/libopencm3/include/libopencm3/stm32/f0/doc-stm32f0.h: -------------------------------------------------------------------------------- 1 | /** @mainpage libopencm3 STM32F0 2 | * 3 | * @version 1.0.0 4 | * 5 | * @date 11 July 2013 6 | * 7 | * API documentation for ST Microelectronics STM32F0 Cortex M0 series. 8 | * 9 | * LGPL License Terms @ref lgpl_license 10 | */ 11 | 12 | /** @defgroup STM32F0xx STM32F0xx 13 | * Libraries for ST Microelectronics STM32F0xx series. 14 | * 15 | * @version 1.0.0 16 | * 17 | * @date 11 July 2013 18 | * 19 | * LGPL License Terms @ref lgpl_license 20 | */ 21 | 22 | /** @defgroup STM32F0xx_defines STM32F0xx Defines 23 | * 24 | * @brief Defined Constants and Types for the STM32F0xx series 25 | * 26 | * @version 1.0.0 27 | * 28 | * @date 11 July 2013 29 | * 30 | * LGPL License Terms @ref lgpl_license 31 | */ 32 | 33 | -------------------------------------------------------------------------------- /firmware/libopencm3/include/libopencm3/stm32/f3/doc-stm32f3.h: -------------------------------------------------------------------------------- 1 | /** @mainpage libopencm3 STM32F3 2 | * 3 | * @version 1.0.0 4 | * 5 | * @date 11 July 2013 6 | * 7 | * API documentation for ST Microelectronics STM32F3 Cortex M3 series. 8 | * 9 | * LGPL License Terms @ref lgpl_license 10 | */ 11 | 12 | /** @defgroup STM32F3xx STM32F3xx 13 | * Libraries for ST Microelectronics STM32F3xx series. 14 | * 15 | * @version 1.0.0 16 | * 17 | * @date 11 July 2013 18 | * 19 | * LGPL License Terms @ref lgpl_license 20 | */ 21 | 22 | /** @defgroup STM32F3xx_defines STM32F3xx Defines 23 | * 24 | * @brief Defined Constants and Types for the STM32F3xx series 25 | * 26 | * @version 1.0.0 27 | * 28 | * @date 11 July 2013 29 | * 30 | * LGPL License Terms @ref lgpl_license 31 | */ 32 | 33 | -------------------------------------------------------------------------------- /hardware/vna.pretty/XDFN-2.kicad_mod: -------------------------------------------------------------------------------- 1 | (module XDFN-2 (layer F.Cu) (tedit 55A40369) 2 | (fp_text reference REF** (at 0.475 1) (layer F.SilkS) 3 | (effects (font (size 0.5 0.5) (thickness 0.125))) 4 | ) 5 | (fp_text value XDFN-2 (at 0 -1.2) (layer F.Fab) 6 | (effects (font (size 1 1) (thickness 0.15))) 7 | ) 8 | (fp_line (start -0.2 0.4) (end -0.2 -0.4) (layer F.SilkS) (width 0.15)) 9 | (fp_line (start -0.2 -0.4) (end 1.4 -0.4) (layer F.SilkS) (width 0.15)) 10 | (fp_line (start 1.4 -0.4) (end 1.4 0.4) (layer F.SilkS) (width 0.15)) 11 | (fp_line (start 1.4 0.4) (end -0.2 0.4) (layer F.SilkS) (width 0.15)) 12 | (pad 2 smd rect (at 0 0) (size 0.385 0.69) (layers F.Cu F.Paste F.Mask)) 13 | (pad 1 smd rect (at 0.912 0) (size 1.035 0.69) (layers F.Cu F.Paste F.Mask)) 14 | ) 15 | -------------------------------------------------------------------------------- /firmware/libopencm3/include/libopencm3/efm32/efm32gg/doc-efm32gg.h: -------------------------------------------------------------------------------- 1 | /** @mainpage libopencm3 EFM32 Giant Gecko 2 | 3 | @version 1.0.0 4 | 5 | @date 11 November 2012 6 | 7 | API documentation for Energy Micro EFM32 Giant Gecko Cortex M3 series. 8 | 9 | LGPL License Terms @ref lgpl_license 10 | */ 11 | 12 | /** @defgroup EFM32GG EFM32 Giant Gecko 13 | Libraries for Energy Micro EFM32 Giant Gecko series. 14 | 15 | @version 1.0.0 16 | 17 | @date 11 November 2012 18 | 19 | LGPL License Terms @ref lgpl_license 20 | */ 21 | 22 | /** @defgroup EFM32GG_defines EFM32 Giant Gecko Defines 23 | 24 | @brief Defined Constants and Types for the Energy Micro EFM32 Giant Gecko series 25 | 26 | @version 1.0.0 27 | 28 | @date 11 November 2012 29 | 30 | LGPL License Terms @ref lgpl_license 31 | */ 32 | 33 | -------------------------------------------------------------------------------- /firmware/libopencm3/include/libopencm3/efm32/efm32lg/doc-efm32lg.h: -------------------------------------------------------------------------------- 1 | /** @mainpage libopencm3 EFM32 Leopard Gecko 2 | 3 | @version 1.0.0 4 | 5 | @date 4 March 2013 6 | 7 | API documentation for Energy Micro EFM32 Leopard Gecko Cortex M3 series. 8 | 9 | LGPL License Terms @ref lgpl_license 10 | */ 11 | 12 | /** @defgroup EFM32LG EFM32 LeopardGecko 13 | Libraries for Energy Micro EFM32 Leopard Gecko series. 14 | 15 | @version 1.0.0 16 | 17 | @date 4 March 2013 18 | 19 | LGPL License Terms @ref lgpl_license 20 | */ 21 | 22 | /** @defgroup EFM32LG_defines EFM32 Leopard Gecko Defines 23 | 24 | @brief Defined Constants and Types for the Energy Micro EFM32 Leopard Gecko 25 | series 26 | 27 | @version 1.0.0 28 | 29 | @date 4 March 2013 30 | 31 | LGPL License Terms @ref lgpl_license 32 | */ 33 | 34 | -------------------------------------------------------------------------------- /firmware/libopencm3/include/libopencm3/sam/3x/irq.yaml: -------------------------------------------------------------------------------- 1 | includeguard: LIBOPENCM3_SAM3X_NVIC_H 2 | partname_humanreadable: Atmel SAM3X series 3 | partname_doxygen: SAM3X 4 | irqs: 5 | - supc 6 | - rstc 7 | - rtc 8 | - rtt 9 | - wdg 10 | - pmc 11 | - eefc0 12 | - eefc1 13 | - uart 14 | - smc_sdramc 15 | - sdramc 16 | - pioa 17 | - piob 18 | - pioc 19 | - piod 20 | - pioe 21 | - piof 22 | - usart0 23 | - usart1 24 | - usart2 25 | - usart3 26 | - hsmci 27 | - twi0 28 | - twi1 29 | - spi0 30 | - spi1 31 | - ssc 32 | - tc0 33 | - tc1 34 | - tc2 35 | - tc3 36 | - tc4 37 | - tc5 38 | - tc6 39 | - tc7 40 | - tc8 41 | - pwm 42 | - adc 43 | - dacc 44 | - dmac 45 | - uotghs 46 | - trng 47 | - emac 48 | - can0 49 | - can1 50 | -------------------------------------------------------------------------------- /firmware/libopencm3/include/libopencmsis/dispatch/irqhandlers.h: -------------------------------------------------------------------------------- 1 | #if defined(STM32F1) 2 | # include 3 | #elif defined(STM32F2) 4 | # include 5 | #elif defined(STM32F4) 6 | # include 7 | 8 | #elif defined(EFM32TG) 9 | # include 10 | #elif defined(EFM32G) 11 | # include 12 | #elif defined(EFM32LG) 13 | # include 14 | #elif defined(EFM32GG) 15 | # include 16 | 17 | #elif defined(LPC43XX) 18 | # include 19 | 20 | #else 21 | # warning"no chipset defined; user interrupts are not redirected" 22 | 23 | #endif 24 | -------------------------------------------------------------------------------- /firmware/libopencm3/doc/cm3/Doxyfile: -------------------------------------------------------------------------------- 1 | # HTML Documentation for CM3 Core features. 2 | 3 | # 14 September 2012 4 | # (C) Ken Sarkies 5 | 6 | #--------------------------------------------------------------------------- 7 | # Common Include File 8 | #--------------------------------------------------------------------------- 9 | 10 | @INCLUDE = ../Doxyfile_common 11 | 12 | #--------------------------------------------------------------------------- 13 | # Local settings 14 | #--------------------------------------------------------------------------- 15 | 16 | WARN_LOGFILE = doxygen_cm3.log 17 | 18 | INPUT = ../../include/libopencm3/license.dox \ 19 | ../../include/libopencm3/cm3/ 20 | 21 | LAYOUT_FILE = DoxygenLayout_cm3.xml 22 | 23 | GENERATE_TAGFILE = cm3.tag 24 | 25 | -------------------------------------------------------------------------------- /hardware/vna.pretty/PAT1220.kicad_mod: -------------------------------------------------------------------------------- 1 | (module PAT1220 (layer F.Cu) (tedit 53D14AD8) 2 | (fp_text reference U7 (at 0.75 -1.75) (layer F.SilkS) 3 | (effects (font (size 1 1) (thickness 0.15))) 4 | ) 5 | (fp_text value PAT1220-6dB (at 0.5 3) (layer F.SilkS) 6 | (effects (font (size 1 1) (thickness 0.15))) 7 | ) 8 | (fp_line (start -0.25 0) (end -0.25 1.25) (layer F.SilkS) (width 0.15)) 9 | (fp_line (start -0.25 1.25) (end 1.75 1.25) (layer F.SilkS) (width 0.15)) 10 | (fp_line (start 1.75 1.25) (end 1.75 0) (layer F.SilkS) (width 0.15)) 11 | (fp_line (start 1.75 0) (end -0.25 0) (layer F.SilkS) (width 0.15)) 12 | (pad 1 smd rect (at 0 0) (size 0.8 0.7) (layers F.Cu F.Paste F.Mask)) 13 | (pad 2 smd rect (at 1.5 0) (size 0.8 0.7) (layers F.Cu F.Paste F.Mask)) 14 | (pad 3 smd rect (at 0.75 1.2) (size 2.3 0.7) (layers F.Cu F.Paste F.Mask)) 15 | ) 16 | -------------------------------------------------------------------------------- /firmware/libopencm3/include/libopencm3/efm32/efm32gg/irq.yaml: -------------------------------------------------------------------------------- 1 | includeguard: LIBOPENCM3_EFM32GG_NVIC_H 2 | partname_humanreadable: EFM32 Giant Gecko series 3 | partname_doxygen: EFM32GG 4 | # The names and sequence are taken from d0053_efm32gg_refreence_manual.pdf table 4.1. 5 | irqs: 6 | - dma 7 | - gpio_even 8 | - timer0 9 | - usart0_rx 10 | - usart0_tx 11 | - usb 12 | - acmp01 13 | - adc0 14 | - dac0 15 | - i2c0 16 | - i2c1 17 | - gpio_odd 18 | - timer1 19 | - timer2 20 | - timer3 21 | - usart1_rx 22 | - usart1_tx 23 | - lesense 24 | - usart2_rx 25 | - usart2_tx 26 | - uart0_rx 27 | - uart0_tx 28 | - uart1_rx 29 | - uart1_tx 30 | - leuart0 31 | - leuart1 32 | - letimer0 33 | - pcnt0 34 | - pcnt1 35 | - pcnt2 36 | - rtc 37 | - burtc 38 | - cmu 39 | - vcmp 40 | - lcd 41 | - msc 42 | - aes 43 | - ebi 44 | -------------------------------------------------------------------------------- /firmware/libopencm3/include/libopencm3/efm32/efm32lg/irq.yaml: -------------------------------------------------------------------------------- 1 | includeguard: LIBOPENCM3_EFM32LG_NVIC_H 2 | partname_humanreadable: EFM32 Leopard Gecko series 3 | partname_doxygen: EFM32LG 4 | # The names and sequence are taken from d0183_efm32lg_reference_manual.pdf table 4.1. 5 | irqs: 6 | - dma 7 | - gpio_even 8 | - timer0 9 | - usart0_rx 10 | - usart0_tx 11 | - usb 12 | - acmp01 13 | - adc0 14 | - dac0 15 | - i2c0 16 | - i2c1 17 | - gpio_odd 18 | - timer1 19 | - timer2 20 | - timer3 21 | - usart1_rx 22 | - usart1_tx 23 | - lesense 24 | - usart2_rx 25 | - usart2_tx 26 | - uart0_rx 27 | - uart0_tx 28 | - uart1_rx 29 | - uart1_tx 30 | - leuart0 31 | - leuart1 32 | - letimer0 33 | - pcnt0 34 | - pcnt1 35 | - pcnt2 36 | - rtc 37 | - burtc 38 | - cmu 39 | - vcmp 40 | - lcd 41 | - msc 42 | - aes 43 | - ebi 44 | -------------------------------------------------------------------------------- /hardware/vna.pretty/SOT-416.kicad_mod: -------------------------------------------------------------------------------- 1 | (module SOT-416 (layer F.Cu) (tedit 559825CE) 2 | (fp_text reference REF** (at 0.05 1.15) (layer F.SilkS) 3 | (effects (font (size 1 1) (thickness 0.15))) 4 | ) 5 | (fp_text value SOT-416 (at -0.05 -1.9) (layer F.Fab) 6 | (effects (font (size 1 1) (thickness 0.15))) 7 | ) 8 | (fp_line (start -0.4 0.05) (end -0.4 -0.95) (layer F.SilkS) (width 0.15)) 9 | (fp_line (start -0.4 -0.95) (end 1.3 -0.95) (layer F.SilkS) (width 0.15)) 10 | (fp_line (start 1.3 -0.95) (end 1.3 0.05) (layer F.SilkS) (width 0.15)) 11 | (fp_line (start 1.3 0.05) (end -0.4 0.05) (layer F.SilkS) (width 0.15)) 12 | (pad 1 smd rect (at 0 0) (size 0.46 0.65) (layers F.Cu F.Paste F.Mask)) 13 | (pad 2 smd rect (at 1 0) (size 0.46 0.65) (layers F.Cu F.Paste F.Mask)) 14 | (pad 3 smd rect (at 0.5 -1.05) (size 0.46 0.65) (layers F.Cu F.Paste F.Mask)) 15 | ) 16 | -------------------------------------------------------------------------------- /firmware/libopencm3/scripts/data/lpc43xx/README: -------------------------------------------------------------------------------- 1 | These files contain information derived from the LPC43xx user manual (UM10503). 2 | They are intended to be used by scripts for the generation of header files and 3 | functions. 4 | 5 | Each line describes a field within a register. The comma separated values are: 6 | register name (as found in include/lpc43xx/*.h), 7 | bit position, 8 | length in bits, 9 | field name, 10 | description/comment (may be empty if not specified in data sheet), 11 | reset value (may be empty if not specified in data sheet), 12 | access (may be empty if not specified in data sheet) 13 | 14 | The access field may consist of any of the following codes: 15 | r: read only 16 | rw: read/write 17 | rwc: read/write one to clear 18 | rwo: read/write once 19 | rws: read/write one to set 20 | w: write only 21 | ws: write one to set 22 | 23 | Descriptions containing commas are quoted. 24 | -------------------------------------------------------------------------------- /firmware/libopencm3/scripts/data/lpc43xx/atimer.csv: -------------------------------------------------------------------------------- 1 | ATIMER_DOWNCOUNTER,0,16,CVAL,When equal to zero an interrupt is raised,0,rw 2 | ATIMER_PRESET,0,16,PRESETVAL,Value loaded in DOWNCOUNTER when DOWNCOUNTER equals zero,0,rw 3 | ATIMER_CLR_EN,0,1,CLR_EN,Writing a 1 to this bit clears the interrupt enable bit in the ENABLE register,0,w 4 | ATIMER_SET_EN,0,1,SET_EN,Writing a 1 to this bit sets the interrupt enable bit in the ENABLE register,0,w 5 | ATIMER_STATUS,0,1,STAT,A 1 in this bit shows that the STATUS interrupt has been raised,0,r 6 | ATIMER_ENABLE,0,1,ENA,A 1 in this bit shows that the STATUS interrupt has been enabled and that the STATUS interrupt request signal is asserted when STAT = 1 in the STATUS register,0,r 7 | ATIMER_CLR_STAT,0,1,CSTAT,Writing a 1 to this bit clears the STATUS interrupt bit in the STATUS register,0,w 8 | ATIMER_SET_STAT,0,1,SSTAT,Writing a 1 to this bit sets the STATUS interrupt bit in the STATUS register,0,w 9 | -------------------------------------------------------------------------------- /firmware/libopencm3/scripts/data/lpc43xx/spi.csv: -------------------------------------------------------------------------------- 1 | SPI_CR,2,1,BITENABLE,Bit length enable,0,rw 2 | SPI_CR,3,1,CPHA,Clock phase control,0,rw 3 | SPI_CR,4,1,CPOL,Clock polarity control,0,rw 4 | SPI_CR,5,1,MSTR,Master mode select,0,rw 5 | SPI_CR,6,1,LSBF,LSB first,0,rw 6 | SPI_CR,7,1,SPIE,Serial peripheral interrupt enable,0,rw 7 | SPI_CR,8,4,BITS,Bits per transfer,0,rw 8 | SPI_SR,3,1,ABRT,Slave abort,0,ro 9 | SPI_SR,4,1,MODF,Mode fault,0,ro 10 | SPI_SR,5,1,ROVR,Read overrun,0,ro 11 | SPI_SR,6,1,WCOL,Write collision,0,ro 12 | SPI_SR,7,1,SPIF,Transfer complete,0,ro 13 | SPI_DR,0,16,DATA,Bi-directional data port,0,rw 14 | SPI_CCR,0,8,COUNTER,Clock counter setting,0,rw 15 | SPI_TCR,1,7,TEST,Test mode,0,rw 16 | SPI_TSR,3,1,ABRT,Slave abort,0,rw 17 | SPI_TSR,4,1,MODF,Mode fault,0,rw 18 | SPI_TSR,5,1,ROVR,Read overrun,0,rw 19 | SPI_TSR,6,1,WCOL,Write collision,0,rw 20 | SPI_TSR,7,1,SPIF,Transfer complete,0,rw 21 | SPI_CR,0,1,SPIF,Interrupt,0,rw -------------------------------------------------------------------------------- /hardware/vna.pretty/CTX520.kicad_mod: -------------------------------------------------------------------------------- 1 | (module CTX520 (layer F.Cu) (tedit 5648C943) 2 | (fp_text reference REF** (at 0 1.95) (layer F.SilkS) 3 | (effects (font (size 0.6 0.6) (thickness 0.15))) 4 | ) 5 | (fp_text value CTX520 (at -0.1 -1.65) (layer F.Fab) 6 | (effects (font (size 0.6 0.6) (thickness 0.125))) 7 | ) 8 | (fp_line (start -1.3 1) (end -1.3 -1) (layer F.SilkS) (width 0.15)) 9 | (fp_line (start -1.3 -1) (end 1.2 -1) (layer F.SilkS) (width 0.15)) 10 | (fp_line (start 1.2 -1) (end 1.2 1) (layer F.SilkS) (width 0.15)) 11 | (fp_line (start 1.2 1) (end -1.3 1) (layer F.SilkS) (width 0.15)) 12 | (pad 1 smd rect (at -1.05 0.75) (size 0.8 0.9) (layers F.Cu F.Paste F.Mask)) 13 | (pad 2 smd rect (at 0.96 0.75) (size 0.8 0.9) (layers F.Cu F.Paste F.Mask)) 14 | (pad 3 smd rect (at 0.95 -0.7) (size 0.8 0.9) (layers F.Cu F.Paste F.Mask)) 15 | (pad 4 smd rect (at -1.05 -0.7) (size 0.8 0.9) (layers F.Cu F.Paste F.Mask)) 16 | ) 17 | -------------------------------------------------------------------------------- /hardware/vna.pretty/SOD-123F.kicad_mod: -------------------------------------------------------------------------------- 1 | (module SOD-123F (layer F.Cu) (tedit 569A86EC) 2 | (fp_text reference REF** (at 0.1 1.8) (layer F.SilkS) 3 | (effects (font (size 0.7 0.7) (thickness 0.15))) 4 | ) 5 | (fp_text value SOD-123F (at -0.3 -2.1) (layer F.Fab) 6 | (effects (font (size 1 1) (thickness 0.15))) 7 | ) 8 | (fp_line (start -0.8 -0.1) (end 0.5 0.9) (layer F.SilkS) (width 0.15)) 9 | (fp_line (start 0.5 -1.1) (end -0.8 -0.1) (layer F.SilkS) (width 0.15)) 10 | (fp_line (start -1.6 -1.1) (end -1.6 0.9) (layer F.SilkS) (width 0.15)) 11 | (fp_line (start -1.6 0.9) (end 1.4 0.9) (layer F.SilkS) (width 0.15)) 12 | (fp_line (start 1.4 0.9) (end 1.4 -1.1) (layer F.SilkS) (width 0.15)) 13 | (fp_line (start 1.4 -1.1) (end -1.6 -1.1) (layer F.SilkS) (width 0.15)) 14 | (pad 1 smd rect (at -1.5 -0.1) (size 1.34 1.8) (layers F.Cu F.Paste F.Mask)) 15 | (pad 2 smd rect (at 1.36 -0.1) (size 1.34 1.8) (layers F.Cu F.Paste F.Mask)) 16 | ) 17 | -------------------------------------------------------------------------------- /hardware/vna.pretty/XTAL_3.2x2.5.kicad_mod: -------------------------------------------------------------------------------- 1 | (module XTAL_3.2x2.5 (layer F.Cu) (tedit 5579B9EE) 2 | (fp_text reference REF** (at 0 2.4) (layer F.SilkS) 3 | (effects (font (size 1 1) (thickness 0.15))) 4 | ) 5 | (fp_text value XTAL_3.2x2.5 (at 0 -2.5) (layer F.Fab) 6 | (effects (font (size 1 1) (thickness 0.15))) 7 | ) 8 | (fp_line (start -1.6 1.2) (end -1.6 -1.3) (layer F.SilkS) (width 0.15)) 9 | (fp_line (start -1.6 -1.3) (end 1.6 -1.3) (layer F.SilkS) (width 0.15)) 10 | (fp_line (start 1.6 -1.3) (end 1.6 1.2) (layer F.SilkS) (width 0.15)) 11 | (fp_line (start 1.6 1.2) (end -1.6 1.2) (layer F.SilkS) (width 0.15)) 12 | (pad 1 smd rect (at -1.4 0.8) (size 1.4 1.2) (layers F.Cu F.Paste F.Mask)) 13 | (pad 2 smd rect (at 1.2 0.8) (size 1.4 1.2) (layers F.Cu F.Paste F.Mask)) 14 | (pad 3 smd rect (at 1.2 -0.9) (size 1.4 1.2) (layers F.Cu F.Paste F.Mask)) 15 | (pad 4 smd rect (at -1.4 -0.9) (size 1.4 1.2) (layers F.Cu F.Paste F.Mask)) 16 | ) 17 | -------------------------------------------------------------------------------- /hardware/vna.pretty/1748LP18A075.kicad_mod: -------------------------------------------------------------------------------- 1 | (module 1748LP18A075 (layer F.Cu) (tedit 569A8F32) 2 | (fp_text reference REF** (at 1.9 1.9) (layer F.SilkS) 3 | (effects (font (size 0.6 0.6) (thickness 0.15))) 4 | ) 5 | (fp_text value 1748LP18A075 (at 1.8 -1.9) (layer F.Fab) 6 | (effects (font (size 0.6 0.6) (thickness 0.15))) 7 | ) 8 | (fp_line (start 0.2 0.8) (end 0.2 -0.8) (layer F.SilkS) (width 0.15)) 9 | (fp_line (start 0.2 -0.8) (end 3.4 -0.8) (layer F.SilkS) (width 0.15)) 10 | (fp_line (start 3.4 -0.8) (end 3.4 0.8) (layer F.SilkS) (width 0.15)) 11 | (fp_line (start 3.4 0.8) (end 0.2 0.8) (layer F.SilkS) (width 0.15)) 12 | (pad 1 smd rect (at 0 0) (size 0.6 1.15) (layers F.Cu F.Paste F.Mask)) 13 | (pad 2 smd rect (at 3.6 0) (size 0.6 1.15) (layers F.Cu F.Paste F.Mask)) 14 | (pad 3 smd rect (at 1.85 -0.7) (size 0.6 0.8) (layers F.Cu F.Paste F.Mask)) 15 | (pad 4 smd rect (at 1.85 0.7) (size 0.6 0.8) (layers F.Cu F.Paste F.Mask)) 16 | ) 17 | -------------------------------------------------------------------------------- /firmware/common/m0_sleep.c: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2013 Jared Boone 3 | * 4 | * This file is part of HackRF. 5 | * 6 | * This program is free software; you can redistribute it and/or modify 7 | * it under the terms of the GNU General Public License as published by 8 | * the Free Software Foundation; either version 2, or (at your option) 9 | * any later version. 10 | * 11 | * This program is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU General Public License 17 | * along with this program; see the file COPYING. If not, write to 18 | * the Free Software Foundation, Inc., 51 Franklin Street, 19 | * Boston, MA 02110-1301, USA. 20 | */ 21 | 22 | int main() { 23 | while(1) { 24 | 25 | } 26 | } -------------------------------------------------------------------------------- /firmware/libopencm3/doc/README: -------------------------------------------------------------------------------- 1 | libopencm3 Documentation 2 | 14 September 2012 (C) K Sarkies 3 | ------------------------------- 4 | 5 | To generate all documentation run 'make doc' in the doc directory, or 6 | for html documentation only run 'make html' (much faster). This runs doxygen 7 | for each of the processor families then integrates the whole. 8 | 9 | Alternatively run 'make doc' in the top directory to make html documentation. 10 | LaTeX and pdf documentation is currently very large in size. 11 | 12 | This requires doxygen v 1.8.2 or later. 13 | 14 | HTML, LaTeX, and pdf output can be produced. 15 | 16 | Generation of HTML 17 | ------------------ 18 | 19 | To view HTML, point a browser to libopencm3/doc/html/index.html. 20 | 21 | Generation of PDF 22 | ----------------- 23 | 24 | The pdf is generated via LaTeX. The pdf files are placed in the 25 | doc directory. Each file contains all documentation for the core and common 26 | features. The resulting files are huge. 27 | 28 | -------------------------------------------------------------------------------- /firmware/libopencm3/doc/lm3s/Doxyfile: -------------------------------------------------------------------------------- 1 | # HTML Documentation for LM3S code level 2 | 3 | # 14 September 2012 4 | # (C) Ken Sarkies 5 | 6 | #--------------------------------------------------------------------------- 7 | # Common Include File 8 | #--------------------------------------------------------------------------- 9 | 10 | @INCLUDE = ../Doxyfile_common 11 | 12 | #--------------------------------------------------------------------------- 13 | # Local settings 14 | #--------------------------------------------------------------------------- 15 | 16 | WARN_LOGFILE = doxygen_lm3s.log 17 | 18 | INPUT = ../../include/libopencm3/license.dox \ 19 | ../../include/libopencm3/lm3s \ 20 | ../../lib/lm3s 21 | 22 | LAYOUT_FILE = DoxygenLayout_lm3s.xml 23 | 24 | TAGFILES = ../cm3/cm3.tag=../../cm3/html 25 | 26 | GENERATE_TAGFILE = lm3s.tag 27 | 28 | ENABLE_PREPROCESSING = NO 29 | 30 | 31 | -------------------------------------------------------------------------------- /firmware/libopencm3/doc/lm4f/Doxyfile: -------------------------------------------------------------------------------- 1 | # HTML Documentation for LM3S code level 2 | 3 | # 14 September 2012 4 | # (C) Ken Sarkies 5 | 6 | #--------------------------------------------------------------------------- 7 | # Common Include File 8 | #--------------------------------------------------------------------------- 9 | 10 | @INCLUDE = ../Doxyfile_common 11 | 12 | #--------------------------------------------------------------------------- 13 | # Local settings 14 | #--------------------------------------------------------------------------- 15 | 16 | WARN_LOGFILE = doxygen_lm4f.log 17 | 18 | INPUT = ../../include/libopencm3/license.dox \ 19 | ../../include/libopencm3/lm4f \ 20 | ../../lib/lm4f 21 | 22 | LAYOUT_FILE = DoxygenLayout_lm4f.xml 23 | 24 | TAGFILES = ../cm3/cm3.tag=../../cm3/html 25 | 26 | GENERATE_TAGFILE = lm4f.tag 27 | 28 | ENABLE_PREPROCESSING = NO 29 | 30 | 31 | -------------------------------------------------------------------------------- /firmware/libopencm3/doc/usb/Doxyfile: -------------------------------------------------------------------------------- 1 | # HTML Documentation for USB code level 2 | 3 | # 10 March 2013 4 | # (C) Ken Sarkies 5 | 6 | #--------------------------------------------------------------------------- 7 | # Common Include File 8 | #--------------------------------------------------------------------------- 9 | 10 | @INCLUDE = ../Doxyfile_common 11 | 12 | #--------------------------------------------------------------------------- 13 | # Local settings 14 | #--------------------------------------------------------------------------- 15 | 16 | WARN_LOGFILE = doxygen_usb.log 17 | 18 | INPUT = ../../include/libopencm3/license.dox \ 19 | ../../include/libopencm3/usb 20 | 21 | INPUT += ../../lib/usb 22 | 23 | EXCLUDE_PATTERNS = 24 | 25 | LAYOUT_FILE = DoxygenLayout_usb.xml 26 | 27 | TAGFILES = 28 | 29 | GENERATE_TAGFILE = usb.tag 30 | 31 | ENABLE_PREPROCESSING = NO 32 | 33 | 34 | -------------------------------------------------------------------------------- /firmware/libopencm3/doc/lpc13xx/Doxyfile: -------------------------------------------------------------------------------- 1 | # HTML Documentation for LPC13xx code level 2 | 3 | # 14 September 2012 4 | # (C) Ken Sarkies 5 | 6 | #--------------------------------------------------------------------------- 7 | # Common Include File 8 | #--------------------------------------------------------------------------- 9 | 10 | @INCLUDE = ../Doxyfile_common 11 | 12 | #--------------------------------------------------------------------------- 13 | # Local settings 14 | #--------------------------------------------------------------------------- 15 | 16 | WARN_LOGFILE = doxygen_lpc13xx.log 17 | 18 | INPUT = ../../include/libopencm3/license.dox \ 19 | ../../include/libopencm3/lpc13xx \ 20 | ../../lib/lpc13xx 21 | 22 | LAYOUT_FILE = DoxygenLayout_lpc13xx.xml 23 | 24 | TAGFILES = ../cm3/cm3.tag=../../cm3/html 25 | 26 | GENERATE_TAGFILE = lpc13xx.tag 27 | 28 | ENABLE_PREPROCESSING = NO 29 | 30 | 31 | -------------------------------------------------------------------------------- /firmware/libopencm3/doc/lpc17xx/Doxyfile: -------------------------------------------------------------------------------- 1 | # HTML Documentation for LPC17xx code level 2 | 3 | # 14 September 2012 4 | # (C) Ken Sarkies 5 | 6 | #--------------------------------------------------------------------------- 7 | # Common Include File 8 | #--------------------------------------------------------------------------- 9 | 10 | @INCLUDE = ../Doxyfile_common 11 | 12 | #--------------------------------------------------------------------------- 13 | # Local settings 14 | #--------------------------------------------------------------------------- 15 | 16 | WARN_LOGFILE = doxygen_lpc17xx.log 17 | 18 | INPUT = ../../include/libopencm3/license.dox \ 19 | ../../include/libopencm3/lpc17xx \ 20 | ../../lib/lpc17xx 21 | 22 | LAYOUT_FILE = DoxygenLayout_lpc17xx.xml 23 | 24 | TAGFILES = ../cm3/cm3.tag=../../cm3/html 25 | 26 | GENERATE_TAGFILE = lpc17xx.tag 27 | 28 | ENABLE_PREPROCESSING = NO 29 | 30 | 31 | -------------------------------------------------------------------------------- /firmware/libopencm3/doc/lpc43xx/Doxyfile: -------------------------------------------------------------------------------- 1 | # HTML Documentation for LPC43xx code level 2 | 3 | # 14 September 2012 4 | # (C) Ken Sarkies 5 | 6 | #--------------------------------------------------------------------------- 7 | # Common Include File 8 | #--------------------------------------------------------------------------- 9 | 10 | @INCLUDE = ../Doxyfile_common 11 | 12 | #--------------------------------------------------------------------------- 13 | # Local settings 14 | #--------------------------------------------------------------------------- 15 | 16 | WARN_LOGFILE = doxygen_lpc43xx.log 17 | 18 | INPUT = ../../include/libopencm3/license.dox \ 19 | ../../include/libopencm3/lpc43xx \ 20 | ../../lib/lpc43xx 21 | 22 | LAYOUT_FILE = DoxygenLayout_lpc43xx.xml 23 | 24 | TAGFILES = ../cm3/cm3.tag=../../cm3/html 25 | 26 | GENERATE_TAGFILE = lpc43xx.tag 27 | 28 | ENABLE_PREPROCESSING = NO 29 | 30 | 31 | -------------------------------------------------------------------------------- /firmware/libopencm3/include/libopencm3/stm32/f2/rng.h: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is part of the libopencm3 project. 3 | * 4 | * This library is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU Lesser General Public License as published by 6 | * the Free Software Foundation, either version 3 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * This library is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU Lesser General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU Lesser General Public License 15 | * along with this library. If not, see . 16 | */ 17 | 18 | #ifndef LIBOPENCM3_RNG_H 19 | #define LIBOPENCM3_RNG_H 20 | 21 | #include 22 | #include 23 | 24 | #endif 25 | -------------------------------------------------------------------------------- /firmware/libopencm3/include/libopencm3/stm32/f4/rng.h: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is part of the libopencm3 project. 3 | * 4 | * This library is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU Lesser General Public License as published by 6 | * the Free Software Foundation, either version 3 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * This library is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU Lesser General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU Lesser General Public License 15 | * along with this library. If not, see . 16 | */ 17 | 18 | #ifndef LIBOPENCM3_RNG_H 19 | #define LIBOPENCM3_RNG_H 20 | 21 | #include 22 | #include 23 | 24 | #endif 25 | -------------------------------------------------------------------------------- /hardware/vna.pretty/SOT-23-5L.kicad_mod: -------------------------------------------------------------------------------- 1 | (module SOT-23-5L (layer F.Cu) (tedit 55840FD3) 2 | (fp_text reference REF** (at 1.1 1.4) (layer F.SilkS) 3 | (effects (font (size 1 1) (thickness 0.15))) 4 | ) 5 | (fp_text value SOT-23-5L (at 0.7 -3.6) (layer F.Fab) 6 | (effects (font (size 1 1) (thickness 0.15))) 7 | ) 8 | (fp_line (start -0.5 -0.4) (end -0.5 -2) (layer F.SilkS) (width 0.15)) 9 | (fp_line (start -0.5 -2) (end 2.5 -2) (layer F.SilkS) (width 0.15)) 10 | (fp_line (start 2.5 -2) (end 2.5 -0.4) (layer F.SilkS) (width 0.15)) 11 | (fp_line (start 2.5 -0.4) (end -0.5 -0.4) (layer F.SilkS) (width 0.15)) 12 | (pad 1 smd rect (at 0 0) (size 0.6 1.2) (layers F.Cu F.Paste F.Mask)) 13 | (pad 2 smd rect (at 0.95 0) (size 0.6 1.2) (layers F.Cu F.Paste F.Mask)) 14 | (pad 3 smd rect (at 1.9 0) (size 0.6 1.2) (layers F.Cu F.Paste F.Mask)) 15 | (pad 4 smd rect (at 1.9 -2.3) (size 0.6 1.2) (layers F.Cu F.Paste F.Mask)) 16 | (pad 5 smd rect (at 0 -2.3) (size 0.6 1.2) (layers F.Cu F.Paste F.Mask)) 17 | ) 18 | -------------------------------------------------------------------------------- /firmware/libopencm3/include/libopencm3/stm32/f2/flash.h: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is part of the libopencm3 project. 3 | * 4 | * This library is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU Lesser General Public License as published by 6 | * the Free Software Foundation, either version 3 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * This library is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU Lesser General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU Lesser General Public License 15 | * along with this library. If not, see . 16 | */ 17 | 18 | #ifndef LIBOPENCM3_FLASH_H 19 | #define LIBOPENCM3_FLASH_H 20 | 21 | #include 22 | #include 23 | 24 | #endif 25 | 26 | -------------------------------------------------------------------------------- /firmware/libopencm3/include/libopencm3/stm32/f4/flash.h: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is part of the libopencm3 project. 3 | * 4 | * This library is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU Lesser General Public License as published by 6 | * the Free Software Foundation, either version 3 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * This library is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU Lesser General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU Lesser General Public License 15 | * along with this library. If not, see . 16 | */ 17 | 18 | #ifndef LIBOPENCM3_FLASH_H 19 | #define LIBOPENCM3_FLASH_H 20 | 21 | #include 22 | #include 23 | 24 | #endif 25 | 26 | -------------------------------------------------------------------------------- /hardware/vna.pretty/SOT-23-5.kicad_mod: -------------------------------------------------------------------------------- 1 | (module SOT-23-5 (layer F.Cu) (tedit 55AA3491) 2 | (fp_text reference SOT-23-5 (at 0 1.325) (layer F.SilkS) 3 | (effects (font (size 1 1) (thickness 0.15))) 4 | ) 5 | (fp_text value VAL** (at 0 -4.05) (layer F.SilkS) 6 | (effects (font (size 1 1) (thickness 0.15))) 7 | ) 8 | (fp_line (start -0.55 -2.2) (end -0.55 -0.45) (layer F.SilkS) (width 0.15)) 9 | (fp_line (start -0.55 -0.45) (end 2.45 -0.45) (layer F.SilkS) (width 0.15)) 10 | (fp_line (start 2.45 -0.45) (end 2.45 -2.2) (layer F.SilkS) (width 0.15)) 11 | (fp_line (start 2.45 -2.2) (end -0.55 -2.2) (layer F.SilkS) (width 0.15)) 12 | (pad 1 smd rect (at 0 0) (size 0.6 1.05) (layers F.Cu F.Paste F.Mask)) 13 | (pad 2 smd rect (at 0.95 0) (size 0.6 1.05) (layers F.Cu F.Paste F.Mask)) 14 | (pad 3 smd rect (at 1.9 0) (size 0.6 1.05) (layers F.Cu F.Paste F.Mask)) 15 | (pad 4 smd rect (at 1.9 -2.6) (size 0.6 1.25) (layers F.Cu F.Paste F.Mask)) 16 | (pad 5 smd rect (at 0 -2.6) (size 0.6 1.25) (layers F.Cu F.Paste F.Mask)) 17 | ) 18 | -------------------------------------------------------------------------------- /firmware/libopencm3/include/libopencm3/stm32/cec.h: -------------------------------------------------------------------------------- 1 | /* This provides unification of code over STM32F subfamilies */ 2 | 3 | /* 4 | * This file is part of the libopencm3 project. 5 | * 6 | * This library is free software: you can redistribute it and/or modify 7 | * it under the terms of the GNU Lesser General Public License as published by 8 | * the Free Software Foundation, either version 3 of the License, or 9 | * (at your option) any later version. 10 | * 11 | * This library is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU Lesser General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU Lesser General Public License 17 | * along with this library. If not, see . 18 | */ 19 | 20 | #if defined(STM32F0) 21 | # include 22 | #else 23 | # error "stm32 family not defined." 24 | #endif 25 | 26 | -------------------------------------------------------------------------------- /firmware/libopencm3/include/libopencm3/stm32/tsc.h: -------------------------------------------------------------------------------- 1 | /* This provides unification of code over STM32F subfamilies */ 2 | 3 | /* 4 | * This file is part of the libopencm3 project. 5 | * 6 | * This library is free software: you can redistribute it and/or modify 7 | * it under the terms of the GNU Lesser General Public License as published by 8 | * the Free Software Foundation, either version 3 of the License, or 9 | * (at your option) any later version. 10 | * 11 | * This library is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU Lesser General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU Lesser General Public License 17 | * along with this library. If not, see . 18 | */ 19 | 20 | #if defined(STM32F0) 21 | # include 22 | #else 23 | # error "stm32 family not defined." 24 | #endif 25 | 26 | -------------------------------------------------------------------------------- /firmware/common/LPC43xx_M0_memory.ld: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2012 Michael Ossmann 3 | * Copyright 2012 Jared Boone 4 | * 5 | * This file is part of HackRF 6 | * 7 | * This program is free software; you can redistribute it and/or modify 8 | * it under the terms of the GNU General Public License as published by 9 | * the Free Software Foundation; either version 2, or (at your option) 10 | * any later version. 11 | * 12 | * This program is distributed in the hope that it will be useful, 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 | * GNU General Public License for more details. 16 | * 17 | * You should have received a copy of the GNU General Public License 18 | * along with this program; see the file COPYING. If not, write to 19 | * the Free Software Foundation, Inc., 51 Franklin Street, 20 | * Boston, MA 02110-1301, USA. 21 | */ 22 | 23 | MEMORY 24 | { 25 | ram (rwx) : ORIGIN = 0x00000000, LENGTH = 28K 26 | } 27 | -------------------------------------------------------------------------------- /firmware/hackrf_usb/sgpio_isr.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2012 Jared Boone 3 | * Copyright 2013 Benjamin Vernoux 4 | * 5 | * This file is part of HackRF. 6 | * 7 | * This program is free software; you can redistribute it and/or modify 8 | * it under the terms of the GNU General Public License as published by 9 | * the Free Software Foundation; either version 2, or (at your option) 10 | * any later version. 11 | * 12 | * This program is distributed in the hope that it will be useful, 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 | * GNU General Public License for more details. 16 | * 17 | * You should have received a copy of the GNU General Public License 18 | * along with this program; see the file COPYING. If not, write to 19 | * the Free Software Foundation, Inc., 51 Franklin Street, 20 | * Boston, MA 02110-1301, USA. 21 | */ 22 | 23 | #ifndef __SGPIO_ISR_H__ 24 | #define __SGPIO_ISR_H__ 25 | 26 | void sgpio_isr_rx(); 27 | 28 | #endif/*__SGPIO_ISR_H__*/ 29 | -------------------------------------------------------------------------------- /firmware/libopencm3/doc/efm32g/Doxyfile: -------------------------------------------------------------------------------- 1 | # HTML Documentation for efm32 code level 2 | 3 | # 11 November 2012 4 | # (C) Ken Sarkies 5 | 6 | #--------------------------------------------------------------------------- 7 | # Common Include File 8 | #--------------------------------------------------------------------------- 9 | 10 | @INCLUDE = ../Doxyfile_common 11 | 12 | #--------------------------------------------------------------------------- 13 | # Local settings 14 | #--------------------------------------------------------------------------- 15 | 16 | WARN_LOGFILE = doxygen_efm32g.log 17 | 18 | INPUT = ../../include/libopencm3/license.dox \ 19 | ../../include/libopencm3/efm32/efm32g \ 20 | ../../lib/efm32/efm32g 21 | 22 | EXCLUDE = 23 | 24 | LAYOUT_FILE = DoxygenLayout_efm32g.xml 25 | 26 | TAGFILES = ../cm3/cm3.tag=../../cm3/html \ 27 | 28 | GENERATE_TAGFILE = efm32g.tag 29 | 30 | ENABLE_PREPROCESSING = NO 31 | 32 | 33 | -------------------------------------------------------------------------------- /firmware/libopencm3/include/libopencm3/stm32/comparator.h: -------------------------------------------------------------------------------- 1 | /* This provides unification of code over STM32F subfamilies */ 2 | 3 | /* 4 | * This file is part of the libopencm3 project. 5 | * 6 | * This library is free software: you can redistribute it and/or modify 7 | * it under the terms of the GNU Lesser General Public License as published by 8 | * the Free Software Foundation, either version 3 of the License, or 9 | * (at your option) any later version. 10 | * 11 | * This library is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU Lesser General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU Lesser General Public License 17 | * along with this library. If not, see . 18 | */ 19 | 20 | #if defined(STM32F0) 21 | # include 22 | #else 23 | # error "stm32 family not defined." 24 | #endif 25 | 26 | -------------------------------------------------------------------------------- /firmware/libopencm3/doc/efm32gg/Doxyfile: -------------------------------------------------------------------------------- 1 | # HTML Documentation for efm32 code level 2 | 3 | # 11 November 2012 4 | # (C) Ken Sarkies 5 | 6 | #--------------------------------------------------------------------------- 7 | # Common Include File 8 | #--------------------------------------------------------------------------- 9 | 10 | @INCLUDE = ../Doxyfile_common 11 | 12 | #--------------------------------------------------------------------------- 13 | # Local settings 14 | #--------------------------------------------------------------------------- 15 | 16 | WARN_LOGFILE = doxygen_efm32gg.log 17 | 18 | INPUT = ../../include/libopencm3/license.dox \ 19 | ../../include/libopencm3/efm32/efm32gg \ 20 | ../../lib/efm32/efm32gg 21 | 22 | EXCLUDE = 23 | 24 | LAYOUT_FILE = DoxygenLayout_efm32gg.xml 25 | 26 | TAGFILES = ../cm3/cm3.tag=../../cm3/html \ 27 | 28 | GENERATE_TAGFILE = efm32gg.tag 29 | 30 | ENABLE_PREPROCESSING = NO 31 | 32 | 33 | -------------------------------------------------------------------------------- /firmware/libopencm3/doc/efm32lg/Doxyfile: -------------------------------------------------------------------------------- 1 | # HTML Documentation for efm32 code level 2 | 3 | # 11 November 2012 4 | # (C) Ken Sarkies 5 | 6 | #--------------------------------------------------------------------------- 7 | # Common Include File 8 | #--------------------------------------------------------------------------- 9 | 10 | @INCLUDE = ../Doxyfile_common 11 | 12 | #--------------------------------------------------------------------------- 13 | # Local settings 14 | #--------------------------------------------------------------------------- 15 | 16 | WARN_LOGFILE = doxygen_efm32lg.log 17 | 18 | INPUT = ../../include/libopencm3/license.dox \ 19 | ../../include/libopencm3/efm32/efm32lg \ 20 | ../../lib/efm32/efm32lg 21 | 22 | EXCLUDE = 23 | 24 | LAYOUT_FILE = DoxygenLayout_efm32lg.xml 25 | 26 | TAGFILES = ../cm3/cm3.tag=../../cm3/html \ 27 | 28 | GENERATE_TAGFILE = efm32lg.tag 29 | 30 | ENABLE_PREPROCESSING = NO 31 | 32 | 33 | -------------------------------------------------------------------------------- /firmware/libopencm3/doc/efm32tg/Doxyfile: -------------------------------------------------------------------------------- 1 | # HTML Documentation for efm32 code level 2 | 3 | # 11 November 2012 4 | # (C) Ken Sarkies 5 | 6 | #--------------------------------------------------------------------------- 7 | # Common Include File 8 | #--------------------------------------------------------------------------- 9 | 10 | @INCLUDE = ../Doxyfile_common 11 | 12 | #--------------------------------------------------------------------------- 13 | # Local settings 14 | #--------------------------------------------------------------------------- 15 | 16 | WARN_LOGFILE = doxygen_efm32tg.log 17 | 18 | INPUT = ../../include/libopencm3/license.dox \ 19 | ../../include/libopencm3/efm32/efm32tg \ 20 | ../../lib/efm32/efm32tg 21 | 22 | EXCLUDE = 23 | 24 | LAYOUT_FILE = DoxygenLayout_efm32tg.xml 25 | 26 | TAGFILES = ../cm3/cm3.tag=../../cm3/html \ 27 | 28 | GENERATE_TAGFILE = efm32tg.tag 29 | 30 | ENABLE_PREPROCESSING = NO 31 | 32 | 33 | -------------------------------------------------------------------------------- /hardware/vna.pretty/EVP-AWBA2A.kicad_mod: -------------------------------------------------------------------------------- 1 | (module EVP-AWBA2A (layer F.Cu) (tedit 5582E39A) 2 | (fp_text reference REF** (at 1.5 2.1) (layer F.SilkS) 3 | (effects (font (size 1 1) (thickness 0.15))) 4 | ) 5 | (fp_text value EVP-AWBA2A (at 1 -1.9) (layer F.Fab) 6 | (effects (font (size 1 1) (thickness 0.15))) 7 | ) 8 | (fp_line (start 0.1 1) (end 0.1 -1) (layer F.SilkS) (width 0.15)) 9 | (fp_line (start 0.1 -1) (end 3.1 -1) (layer F.SilkS) (width 0.15)) 10 | (fp_line (start 3.1 -1) (end 3.1 1) (layer F.SilkS) (width 0.15)) 11 | (fp_line (start 3.1 1) (end 0.1 1) (layer F.SilkS) (width 0.15)) 12 | (pad 1 smd rect (at 0 0) (size 0.55 1.5) (layers F.Cu F.Mask)) 13 | (pad 2 smd rect (at 3.25 0) (size 0.55 1.5) (layers F.Cu F.Mask)) 14 | (pad 2 smd rect (at 3.25 -0.4) (size 0.55 0.5) (layers F.Cu F.Paste F.Mask)) 15 | (pad 2 smd rect (at 3.25 0.5) (size 0.55 0.5) (layers F.Cu F.Paste F.Mask)) 16 | (pad 1 smd rect (at 0 -0.5) (size 0.55 0.5) (layers F.Cu F.Paste F.Mask)) 17 | (pad 1 smd rect (at 0 0.5) (size 0.55 0.5) (layers F.Cu F.Paste F.Mask)) 18 | ) 19 | -------------------------------------------------------------------------------- /firmware/hackrf_usb/usb_bulk_buffer.c: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2012 Jared Boone 3 | * Copyright 2013 Benjamin Vernoux 4 | * 5 | * This file is part of HackRF. 6 | * 7 | * This program is free software; you can redistribute it and/or modify 8 | * it under the terms of the GNU General Public License as published by 9 | * the Free Software Foundation; either version 2, or (at your option) 10 | * any later version. 11 | * 12 | * This program is distributed in the hope that it will be useful, 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 | * GNU General Public License for more details. 16 | * 17 | * You should have received a copy of the GNU General Public License 18 | * along with this program; see the file COPYING. If not, write to 19 | * the Free Software Foundation, Inc., 51 Franklin Street, 20 | * Boston, MA 02110-1301, USA. 21 | */ 22 | 23 | #include "usb_bulk_buffer.h" 24 | 25 | const uint32_t usb_bulk_buffer_size = 32768; 26 | volatile uint32_t usb_bulk_buffer_offset = 0; 27 | -------------------------------------------------------------------------------- /firmware/libopencm3/include/libopencm3/stm32/f1/exti.h: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is part of the libopencm3 project. 3 | * 4 | * Copyright (C) 2013 Piotr Esden-Tempski 5 | * 6 | * This library is free software: you can redistribute it and/or modify 7 | * it under the terms of the GNU Lesser General Public License as published by 8 | * the Free Software Foundation, either version 3 of the License, or 9 | * (at your option) any later version. 10 | * 11 | * This library is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU Lesser General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU Lesser General Public License 17 | * along with this library. If not, see . 18 | */ 19 | 20 | #ifndef LIBOPENCM3_EXTI_H 21 | #define LIBOPENCM3_EXTI_H 22 | 23 | #include 24 | #include 25 | 26 | #endif 27 | -------------------------------------------------------------------------------- /firmware/libopencm3/include/libopencm3/stm32/f2/exti.h: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is part of the libopencm3 project. 3 | * 4 | * Copyright (C) 2013 Piotr Esden-Tempski 5 | * 6 | * This library is free software: you can redistribute it and/or modify 7 | * it under the terms of the GNU Lesser General Public License as published by 8 | * the Free Software Foundation, either version 3 of the License, or 9 | * (at your option) any later version. 10 | * 11 | * This library is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU Lesser General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU Lesser General Public License 17 | * along with this library. If not, see . 18 | */ 19 | 20 | #ifndef LIBOPENCM3_EXTI_H 21 | #define LIBOPENCM3_EXTI_H 22 | 23 | #include 24 | #include 25 | 26 | #endif 27 | -------------------------------------------------------------------------------- /firmware/libopencm3/include/libopencm3/stm32/f4/exti.h: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is part of the libopencm3 project. 3 | * 4 | * Copyright (C) 2013 Piotr Esden-Tempski 5 | * 6 | * This library is free software: you can redistribute it and/or modify 7 | * it under the terms of the GNU Lesser General Public License as published by 8 | * the Free Software Foundation, either version 3 of the License, or 9 | * (at your option) any later version. 10 | * 11 | * This library is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU Lesser General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU Lesser General Public License 17 | * along with this library. If not, see . 18 | */ 19 | 20 | #ifndef LIBOPENCM3_EXTI_H 21 | #define LIBOPENCM3_EXTI_H 22 | 23 | #include 24 | #include 25 | 26 | #endif 27 | -------------------------------------------------------------------------------- /firmware/libopencm3/include/libopencm3/stm32/l1/exti.h: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is part of the libopencm3 project. 3 | * 4 | * Copyright (C) 2013 Piotr Esden-Tempski 5 | * 6 | * This library is free software: you can redistribute it and/or modify 7 | * it under the terms of the GNU Lesser General Public License as published by 8 | * the Free Software Foundation, either version 3 of the License, or 9 | * (at your option) any later version. 10 | * 11 | * This library is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU Lesser General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU Lesser General Public License 17 | * along with this library. If not, see . 18 | */ 19 | 20 | #ifndef LIBOPENCM3_EXTI_H 21 | #define LIBOPENCM3_EXTI_H 22 | 23 | #include 24 | #include 25 | 26 | #endif 27 | -------------------------------------------------------------------------------- /firmware/libopencm3/include/libopencm3/stm32/f2/syscfg.h: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is part of the libopencm3 project. 3 | * 4 | * Copyright (C) 2013 Frantisek Burian 5 | * 6 | * This library is free software: you can redistribute it and/or modify 7 | * it under the terms of the GNU Lesser General Public License as published by 8 | * the Free Software Foundation, either version 3 of the License, or 9 | * (at your option) any later version. 10 | * 11 | * This library is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU Lesser General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU Lesser General Public License 17 | * along with this library. If not, see . 18 | */ 19 | 20 | #ifndef LIBOPENCM3_SYSCFG_H 21 | #define LIBOPENCM3_SYSCFG_H 22 | 23 | #include 24 | #include 25 | 26 | #endif 27 | -------------------------------------------------------------------------------- /firmware/libopencm3/include/libopencm3/stm32/f3/syscfg.h: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is part of the libopencm3 project. 3 | * 4 | * Copyright (C) 2013 Frantisek Burian 5 | * 6 | * This library is free software: you can redistribute it and/or modify 7 | * it under the terms of the GNU Lesser General Public License as published by 8 | * the Free Software Foundation, either version 3 of the License, or 9 | * (at your option) any later version. 10 | * 11 | * This library is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU Lesser General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU Lesser General Public License 17 | * along with this library. If not, see . 18 | */ 19 | 20 | #ifndef LIBOPENCM3_SYSCFG_H 21 | #define LIBOPENCM3_SYSCFG_H 22 | 23 | #include 24 | #include 25 | 26 | #endif 27 | -------------------------------------------------------------------------------- /firmware/libopencm3/include/libopencm3/stm32/f4/syscfg.h: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is part of the libopencm3 project. 3 | * 4 | * Copyright (C) 2013 Frantisek Burian 5 | * 6 | * This library is free software: you can redistribute it and/or modify 7 | * it under the terms of the GNU Lesser General Public License as published by 8 | * the Free Software Foundation, either version 3 of the License, or 9 | * (at your option) any later version. 10 | * 11 | * This library is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU Lesser General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU Lesser General Public License 17 | * along with this library. If not, see . 18 | */ 19 | 20 | #ifndef LIBOPENCM3_SYSCFG_H 21 | #define LIBOPENCM3_SYSCFG_H 22 | 23 | #include 24 | #include 25 | 26 | #endif 27 | -------------------------------------------------------------------------------- /firmware/libopencm3/include/libopencm3/stm32/l1/syscfg.h: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is part of the libopencm3 project. 3 | * 4 | * Copyright (C) 2013 Frantisek Burian 5 | * 6 | * This library is free software: you can redistribute it and/or modify 7 | * it under the terms of the GNU Lesser General Public License as published by 8 | * the Free Software Foundation, either version 3 of the License, or 9 | * (at your option) any later version. 10 | * 11 | * This library is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU Lesser General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU Lesser General Public License 17 | * along with this library. If not, see . 18 | */ 19 | 20 | #ifndef LIBOPENCM3_SYSCFG_H 21 | #define LIBOPENCM3_SYSCFG_H 22 | 23 | #include 24 | #include 25 | 26 | #endif 27 | -------------------------------------------------------------------------------- /hardware/vna.pretty/ASTRX-12.kicad_mod: -------------------------------------------------------------------------------- 1 | (module ASTRX-12 (layer F.Cu) (tedit 569A81B5) 2 | (fp_text reference REF** (at 0.1 2) (layer F.SilkS) 3 | (effects (font (size 0.7 0.7) (thickness 0.15))) 4 | ) 5 | (fp_text value ASTRX-12 (at -0.1 -1.9) (layer F.Fab) 6 | (effects (font (size 1 1) (thickness 0.15))) 7 | ) 8 | (fp_line (start -1.5 1.3) (end -1.5 0.6) (layer F.SilkS) (width 0.15)) 9 | (fp_line (start -1.5 1.3) (end -0.7 1.3) (layer F.SilkS) (width 0.15)) 10 | (fp_line (start -1.2 1) (end -1.2 -1) (layer F.SilkS) (width 0.15)) 11 | (fp_line (start -1.2 -1) (end 1.3 -1) (layer F.SilkS) (width 0.15)) 12 | (fp_line (start 1.3 -1) (end 1.3 1) (layer F.SilkS) (width 0.15)) 13 | (fp_line (start 1.3 1) (end -1.2 1) (layer F.SilkS) (width 0.15)) 14 | (pad 6 smd rect (at -1 -0.7) (size 0.63 0.84) (layers F.Cu F.Paste F.Mask)) 15 | (pad 1 smd rect (at -1 0.69) (size 0.63 0.84) (layers F.Cu F.Paste F.Mask)) 16 | (pad 3 smd rect (at 1.08 0.69) (size 0.63 0.84) (layers F.Cu F.Paste F.Mask)) 17 | (pad 4 smd rect (at 1.08 -0.7) (size 0.63 0.84) (layers F.Cu F.Paste F.Mask)) 18 | ) 19 | -------------------------------------------------------------------------------- /hardware/vna.pretty/SG-210STF.kicad_mod: -------------------------------------------------------------------------------- 1 | (module SG-210STF (layer F.Cu) (tedit 551F92FA) 2 | (fp_text reference REF** (at 0.1 -2) (layer F.SilkS) 3 | (effects (font (size 1 1) (thickness 0.15))) 4 | ) 5 | (fp_text value SG-210STF (at 0.25 2.05) (layer F.Fab) 6 | (effects (font (size 1 1) (thickness 0.15))) 7 | ) 8 | (fp_line (start -1.2 1.35) (end -1.65 1.35) (layer F.SilkS) (width 0.15)) 9 | (fp_line (start -1.65 1.35) (end -1.65 0.9) (layer F.SilkS) (width 0.15)) 10 | (fp_line (start -1.3 1) (end -1.3 -1) (layer F.SilkS) (width 0.15)) 11 | (fp_line (start -1.3 -1) (end 1.2 -1) (layer F.SilkS) (width 0.15)) 12 | (fp_line (start 1.2 -1) (end 1.2 1) (layer F.SilkS) (width 0.15)) 13 | (fp_line (start 1.2 1) (end -1.3 1) (layer F.SilkS) (width 0.15)) 14 | (pad 1 smd rect (at -0.9 0.65) (size 1.1 0.9) (layers F.Cu F.Paste F.Mask)) 15 | (pad 2 smd rect (at 0.8 0.65) (size 1.1 0.9) (layers F.Cu F.Paste F.Mask)) 16 | (pad 3 smd rect (at 0.8 -0.65) (size 1.1 0.9) (layers F.Cu F.Paste F.Mask)) 17 | (pad 4 smd rect (at -0.9 -0.65) (size 1.1 0.9) (layers F.Cu F.Paste F.Mask)) 18 | ) 19 | -------------------------------------------------------------------------------- /firmware/common/m0_bin.s.cmake: -------------------------------------------------------------------------------- 1 | # Copyright 2013 Jared Boone 2 | # 3 | # This file is part of HackRF. 4 | # 5 | # This program is free software; you can redistribute it and/or modify 6 | # it under the terms of the GNU General Public License as published by 7 | # the Free Software Foundation; either version 2, or (at your option) 8 | # any later version. 9 | # 10 | # This program is distributed in the hope that it will be useful, 11 | # but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | # GNU General Public License for more details. 14 | # 15 | # You should have received a copy of the GNU General Public License 16 | # along with this program; see the file COPYING. If not, write to 17 | # the Free Software Foundation, Inc., 51 Franklin Street, 18 | # Boston, MA 02110-1301, USA. 19 | 20 | .section .rodata 21 | 22 | .global m0_bin 23 | .align 4 24 | m0_bin: 25 | .incbin "${PROJECT_NAME}_m0.bin" 26 | 27 | .global m0_bin_size 28 | .align 4 29 | m0_bin_size: 30 | .int m0_bin_size - m0_bin 31 | 32 | -------------------------------------------------------------------------------- /firmware/libopencm3/lib/stm32/f2/gpio.c: -------------------------------------------------------------------------------- 1 | /** @defgroup gpio_file GPIO 2 | 3 | @ingroup STM32F2xx 4 | 5 | @brief libopencm3 STM32F2xx General Purpose I/O 6 | 7 | @version 1.0.0 8 | 9 | @date 18 August 2012 10 | 11 | LGPL License Terms @ref lgpl_license 12 | */ 13 | 14 | /* 15 | * This file is part of the libopencm3 project. 16 | * 17 | * This library is free software: you can redistribute it and/or modify 18 | * it under the terms of the GNU Lesser General Public License as published by 19 | * the Free Software Foundation, either version 3 of the License, or 20 | * (at your option) any later version. 21 | * 22 | * This library is distributed in the hope that it will be useful, 23 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 24 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 25 | * GNU Lesser General Public License for more details. 26 | * 27 | * You should have received a copy of the GNU Lesser General Public License 28 | * along with this library. If not, see . 29 | */ 30 | 31 | #include 32 | -------------------------------------------------------------------------------- /firmware/libopencm3/lib/stm32/f4/gpio.c: -------------------------------------------------------------------------------- 1 | /** @defgroup gpio_file GPIO 2 | 3 | @ingroup STM32F4xx 4 | 5 | @brief libopencm3 STM32F4xx General Purpose I/O 6 | 7 | @version 1.0.0 8 | 9 | @date 18 August 2012 10 | 11 | LGPL License Terms @ref lgpl_license 12 | */ 13 | 14 | /* 15 | * This file is part of the libopencm3 project. 16 | * 17 | * This library is free software: you can redistribute it and/or modify 18 | * it under the terms of the GNU Lesser General Public License as published by 19 | * the Free Software Foundation, either version 3 of the License, or 20 | * (at your option) any later version. 21 | * 22 | * This library is distributed in the hope that it will be useful, 23 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 24 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 25 | * GNU Lesser General Public License for more details. 26 | * 27 | * You should have received a copy of the GNU Lesser General Public License 28 | * along with this library. If not, see . 29 | */ 30 | 31 | #include 32 | -------------------------------------------------------------------------------- /firmware/libopencm3/lib/stm32/l1/gpio.c: -------------------------------------------------------------------------------- 1 | /** @defgroup gpio_file GPIO 2 | 3 | @ingroup STM32L1xx 4 | 5 | @brief libopencm3 STM32L1xx General Purpose I/O 6 | 7 | @version 1.0.0 8 | 9 | @date 18 August 2012 10 | 11 | LGPL License Terms @ref lgpl_license 12 | */ 13 | 14 | /* 15 | * This file is part of the libopencm3 project. 16 | * 17 | * This library is free software: you can redistribute it and/or modify 18 | * it under the terms of the GNU Lesser General Public License as published by 19 | * the Free Software Foundation, either version 3 of the License, or 20 | * (at your option) any later version. 21 | * 22 | * This library is distributed in the hope that it will be useful, 23 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 24 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 25 | * GNU Lesser General Public License for more details. 26 | * 27 | * You should have received a copy of the GNU Lesser General Public License 28 | * along with this library. If not, see . 29 | */ 30 | 31 | #include 32 | -------------------------------------------------------------------------------- /firmware/common/streaming.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2012 Jared Boone 3 | * Copyright 2013 Benjamin Vernoux 4 | * 5 | * This file is part of HackRF. 6 | * 7 | * This program is free software; you can redistribute it and/or modify 8 | * it under the terms of the GNU General Public License as published by 9 | * the Free Software Foundation; either version 2, or (at your option) 10 | * any later version. 11 | * 12 | * This program is distributed in the hope that it will be useful, 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 | * GNU General Public License for more details. 16 | * 17 | * You should have received a copy of the GNU General Public License 18 | * along with this program; see the file COPYING. If not, write to 19 | * the Free Software Foundation, Inc., 51 Franklin Street, 20 | * Boston, MA 02110-1301, USA. 21 | */ 22 | 23 | #ifndef __STREAMING_H__ 24 | #define __STREAMING_H__ 25 | 26 | void baseband_streaming_enable(); 27 | void baseband_streaming_disable(); 28 | 29 | #endif/*__STREAMING_H__*/ 30 | -------------------------------------------------------------------------------- /firmware/libopencm3/doc/lm3s/Doxyfile_latex: -------------------------------------------------------------------------------- 1 | # LaTeX Documentation for LM3S code level 2 | 3 | # 14 September 2012 4 | # (C) Ken Sarkies 5 | 6 | #--------------------------------------------------------------------------- 7 | # Common Include File 8 | #--------------------------------------------------------------------------- 9 | 10 | @INCLUDE = ../Doxyfile_common 11 | 12 | #--------------------------------------------------------------------------- 13 | # Local settings 14 | #--------------------------------------------------------------------------- 15 | 16 | WARN_LOGFILE = doxygen_lm3s_latex.log 17 | 18 | INPUT = ../../include/libopencm3/docmain.dox \ 19 | ../../include/libopencm3/license.dox \ 20 | ../../include/libopencm3/lm3s \ 21 | ../../lib/lm3s 22 | 23 | EXCLUDE = ../../include/libopencm3/lm3s/doc-lm3s.h 24 | 25 | LAYOUT_FILE = DoxygenLayout_lm3s.xml 26 | 27 | GENERATE_HTML = NO 28 | 29 | GENERATE_LATEX = YES 30 | 31 | LATEX_HEADER = header_lm3s.tex 32 | 33 | -------------------------------------------------------------------------------- /firmware/libopencm3/lib/stm32/f0/i2c.c: -------------------------------------------------------------------------------- 1 | /** @defgroup i2c_file I2C 2 | * 3 | * @ingroup STM32F0xx 4 | * 5 | * @brief libopencm3 STM32F0xx I2C 6 | * 7 | * @version 1.0.0 8 | * 9 | * @date 11 July 2013 10 | * 11 | * LGPL License Terms @ref lgpl_license 12 | */ 13 | 14 | /* 15 | * This file is part of the libopencm3 project. 16 | * 17 | * This library is free software: you can redistribute it and/or modify 18 | * it under the terms of the GNU Lesser General Public License as published by 19 | * the Free Software Foundation, either version 3 of the License, or 20 | * (at your option) any later version. 21 | * 22 | * This library is distributed in the hope that it will be useful, 23 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 24 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 25 | * GNU Lesser General Public License for more details. 26 | * 27 | * You should have received a copy of the GNU Lesser General Public License 28 | * along with this library. If not, see . 29 | */ 30 | 31 | #include 32 | 33 | -------------------------------------------------------------------------------- /hardware/vna.pretty/LP0603A0902.kicad_mod: -------------------------------------------------------------------------------- 1 | (module LP0603A0902 (layer F.Cu) (tedit 56AC6C42) 2 | (fp_text reference U17 (at -0.048 1.284) (layer F.SilkS) 3 | (effects (font (size 0.7 0.7) (thickness 0.15))) 4 | ) 5 | (fp_text value LP0603A1880ANTR (at -0.6 -1.375) (layer F.Fab) 6 | (effects (font (size 1 1) (thickness 0.15))) 7 | ) 8 | (fp_line (start -0.775 0.425) (end -0.775 -0.425) (layer F.SilkS) (width 0.15)) 9 | (fp_line (start -0.775 -0.425) (end 0.825 -0.425) (layer F.SilkS) (width 0.15)) 10 | (fp_line (start 0.825 -0.425) (end 0.825 0.425) (layer F.SilkS) (width 0.15)) 11 | (fp_line (start 0.825 0.425) (end -0.775 0.425) (layer F.SilkS) (width 0.15)) 12 | (pad 1 smd rect (at -0.6 0.35) (size 0.5 0.4) (layers F.Cu F.Paste F.Mask) 13 | (zone_connect 2)) 14 | (pad 2 smd rect (at 0.65 0.35) (size 0.5 0.4) (layers F.Cu F.Paste F.Mask) 15 | (zone_connect 2)) 16 | (pad 3 smd rect (at 0.65 -0.35) (size 0.5 0.4) (layers F.Cu F.Paste F.Mask) 17 | (zone_connect 2)) 18 | (pad 4 smd rect (at -0.6 -0.35) (size 0.5 0.4) (layers F.Cu F.Paste F.Mask) 19 | (zone_connect 2)) 20 | ) 21 | -------------------------------------------------------------------------------- /firmware/libopencm3/lib/stm32/f0/syscfg.c: -------------------------------------------------------------------------------- 1 | /** @defgroup syscfg_file SYSCFG 2 | * 3 | * @ingroup STM32F0xx 4 | * 5 | * @brief libopencm3 STM32F0xx SYSCFG 6 | * 7 | * @version 1.0.0 8 | * 9 | * @date 10 July 2013 10 | * 11 | * LGPL License Terms @ref lgpl_license 12 | */ 13 | 14 | /* 15 | * This file is part of the libopencm3 project. 16 | * 17 | * This library is free software: you can redistribute it and/or modify 18 | * it under the terms of the GNU Lesser General Public License as published by 19 | * the Free Software Foundation, either version 3 of the License, or 20 | * (at your option) any later version. 21 | * 22 | * This library is distributed in the hope that it will be useful, 23 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 24 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 25 | * GNU Lesser General Public License for more details. 26 | * 27 | * You should have received a copy of the GNU Lesser General Public License 28 | * along with this library. If not, see . 29 | */ 30 | 31 | #include 32 | -------------------------------------------------------------------------------- /firmware/libopencm3/lib/stm32/f3/crc.c: -------------------------------------------------------------------------------- 1 | /** @defgroup crc_file CRC 2 | * 3 | * @ingroup STM32F3xx 4 | * 5 | * @brief libopencm3 STM32F3xx CRC 6 | * 7 | * @version 1.0.0 8 | * 9 | * @date 15 October 2012 10 | * 11 | * LGPL License Terms @ref lgpl_license 12 | */ 13 | 14 | /* 15 | * This file is part of the libopencm3 project. 16 | * 17 | * This library is free software: you can redistribute it and/or modify 18 | * it under the terms of the GNU Lesser General Public License as published by 19 | * the Free Software Foundation, either version 3 of the License, or 20 | * (at your option) any later version. 21 | * 22 | * This library is distributed in the hope that it will be useful, 23 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 24 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 25 | * GNU Lesser General Public License for more details. 26 | * 27 | * You should have received a copy of the GNU Lesser General Public License 28 | * along with this library. If not, see . 29 | */ 30 | 31 | #include 32 | 33 | 34 | -------------------------------------------------------------------------------- /hardware/vna.pretty/SRR6040A.kicad_mod: -------------------------------------------------------------------------------- 1 | (module SRR6040A (layer F.Cu) (tedit 566C267B) 2 | (fp_text reference REF** (at -0.25 4.6) (layer F.SilkS) 3 | (effects (font (size 1 1) (thickness 0.15))) 4 | ) 5 | (fp_text value SRR6040A (at -0.25 -4.9) (layer F.Fab) 6 | (effects (font (size 1 1) (thickness 0.15))) 7 | ) 8 | (fp_line (start -3.6 3.3) (end -3.6 -3.4) (layer F.SilkS) (width 0.15)) 9 | (fp_line (start -3.6 -3.4) (end 3.1 -3.4) (layer F.SilkS) (width 0.15)) 10 | (fp_line (start 3.1 -3.4) (end 3.1 3.3) (layer F.SilkS) (width 0.15)) 11 | (fp_line (start 3.1 3.3) (end -3.6 3.3) (layer F.SilkS) (width 0.15)) 12 | (pad 1 smd rect (at -0.25 -2.9) (size 7.3 1.4) (layers F.Cu F.Paste F.Mask)) 13 | (pad 2 smd rect (at -0.25 2.9) (size 7.3 1.4) (layers F.Cu F.Paste F.Mask)) 14 | (pad 1 smd rect (at -3.575 -1.7) (size 0.65 1) (layers F.Cu F.Paste F.Mask)) 15 | (pad 1 smd rect (at 3.075 -1.7) (size 0.65 1) (layers F.Cu F.Paste F.Mask)) 16 | (pad 2 smd rect (at -3.575 1.7) (size 0.65 1) (layers F.Cu F.Paste F.Mask)) 17 | (pad 2 smd rect (at 3.075 1.7) (size 0.65 1) (layers F.Cu F.Paste F.Mask)) 18 | ) 19 | -------------------------------------------------------------------------------- /firmware/libopencm3/lib/stm32/f0/gpio.c: -------------------------------------------------------------------------------- 1 | /** @defgroup gpio_file GPIO 2 | * 3 | * @ingroup STM32F0xx 4 | * 5 | * @brief libopencm3 STM32F0xx General Purpose I/O 6 | * 7 | * @version 1.0.0 8 | * 9 | * @date 18 August 2012 10 | * 11 | * LGPL License Terms @ref lgpl_license 12 | */ 13 | 14 | /* 15 | * This file is part of the libopencm3 project. 16 | * 17 | * This library is free software: you can redistribute it and/or modify 18 | * it under the terms of the GNU Lesser General Public License as published by 19 | * the Free Software Foundation, either version 3 of the License, or 20 | * (at your option) any later version. 21 | * 22 | * This library is distributed in the hope that it will be useful, 23 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 24 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 25 | * GNU Lesser General Public License for more details. 26 | * 27 | * You should have received a copy of the GNU Lesser General Public License 28 | * along with this library. If not, see . 29 | */ 30 | 31 | #include 32 | -------------------------------------------------------------------------------- /firmware/libopencm3/lib/stm32/f3/pwr.c: -------------------------------------------------------------------------------- 1 | /** @defgroup pwr_file PWR 2 | * 3 | * @ingroup STM32F3xx 4 | * 5 | * @brief libopencm3 STM32F3xx Power control 6 | * 7 | * @version 1.0.0 8 | * 9 | * @date 11 July 2013 10 | * 11 | * LGPL License Terms @ref lgpl_license 12 | */ 13 | 14 | /* 15 | * This file is part of the libopencm3 project. 16 | * 17 | * This library is free software: you can redistribute it and/or modify 18 | * it under the terms of the GNU Lesser General Public License as published by 19 | * the Free Software Foundation, either version 3 of the License, or 20 | * (at your option) any later version. 21 | * 22 | * This library is distributed in the hope that it will be useful, 23 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 24 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 25 | * GNU Lesser General Public License for more details. 26 | * 27 | * You should have received a copy of the GNU Lesser General Public License 28 | * along with this library. If not, see . 29 | */ 30 | 31 | #include 32 | 33 | 34 | -------------------------------------------------------------------------------- /firmware/libopencm3/lib/stm32/f3/timer.c: -------------------------------------------------------------------------------- 1 | /** @defgroup timer_file TIMER 2 | * 3 | * @ingroup STM32F3xx 4 | * 5 | * @brief libopencm3 STM32F3xx Timers 6 | * 7 | * @version 1.0.0 8 | * 9 | * @date 11 July 2013 10 | * 11 | * LGPL License Terms @ref lgpl_license 12 | */ 13 | 14 | /* 15 | * This file is part of the libopencm3 project. 16 | * 17 | * This library is free software: you can redistribute it and/or modify 18 | * it under the terms of the GNU Lesser General Public License as published by 19 | * the Free Software Foundation, either version 3 of the License, or 20 | * (at your option) any later version. 21 | * 22 | * This library is distributed in the hope that it will be useful, 23 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 24 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 25 | * GNU Lesser General Public License for more details. 26 | * 27 | * You should have received a copy of the GNU Lesser General Public License 28 | * along with this library. If not, see . 29 | */ 30 | 31 | #include 32 | 33 | 34 | -------------------------------------------------------------------------------- /firmware/hackrf_usb/usb_device.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2012 Jared Boone 3 | * Copyright 2013 Benjamin Vernoux 4 | * 5 | * This file is part of HackRF. 6 | * 7 | * This program is free software; you can redistribute it and/or modify 8 | * it under the terms of the GNU General Public License as published by 9 | * the Free Software Foundation; either version 2, or (at your option) 10 | * any later version. 11 | * 12 | * This program is distributed in the hope that it will be useful, 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 | * GNU General Public License for more details. 16 | * 17 | * You should have received a copy of the GNU General Public License 18 | * along with this program; see the file COPYING. If not, write to 19 | * the Free Software Foundation, Inc., 51 Franklin Street, 20 | * Boston, MA 02110-1301, USA. 21 | */ 22 | 23 | #ifndef __USB_DEVICE_H__ 24 | #define __USB_DEVICE_H__ 25 | 26 | #include 27 | 28 | extern usb_device_t usb_device; 29 | 30 | #endif /* end of include guard: __USB_DEVICE_H__ */ 31 | -------------------------------------------------------------------------------- /firmware/libopencm3/doc/lpc13xx/Doxyfile_latex: -------------------------------------------------------------------------------- 1 | # LaTeX Documentation for LPC13xx code level 2 | 3 | # 14 September 2012 4 | # (C) Ken Sarkies 5 | 6 | #--------------------------------------------------------------------------- 7 | # Common Include File 8 | #--------------------------------------------------------------------------- 9 | 10 | @INCLUDE = ../Doxyfile_common 11 | 12 | #--------------------------------------------------------------------------- 13 | # Local settings 14 | #--------------------------------------------------------------------------- 15 | 16 | WARN_LOGFILE = doxygen_lpc13xx_latex.log 17 | 18 | INPUT = ../../include/libopencm3/docmain.dox \ 19 | ../../include/libopencm3/license.dox \ 20 | ../../include/libopencm3/lpc13xx/ \ 21 | ../../lib/lpc13xx 22 | 23 | EXCLUDE = ../../include/libopencm3/lpc13xx/doc-lpc13xx.h 24 | 25 | LAYOUT_FILE = DoxygenLayout_lpc13xx.xml 26 | 27 | GENERATE_HTML = NO 28 | 29 | GENERATE_LATEX = YES 30 | 31 | LATEX_HEADER = header_lpc13xx.tex 32 | 33 | -------------------------------------------------------------------------------- /firmware/libopencm3/doc/lpc17xx/Doxyfile_latex: -------------------------------------------------------------------------------- 1 | # LaTeX Documentation for LPC17xx code level 2 | 3 | # 14 September 2012 4 | # (C) Ken Sarkies 5 | 6 | #--------------------------------------------------------------------------- 7 | # Common Include File 8 | #--------------------------------------------------------------------------- 9 | 10 | @INCLUDE = ../Doxyfile_common 11 | 12 | #--------------------------------------------------------------------------- 13 | # Local settings 14 | #--------------------------------------------------------------------------- 15 | 16 | WARN_LOGFILE = doxygen_lpc17xx_latex.log 17 | 18 | INPUT = ../../include/libopencm3/docmain.dox \ 19 | ../../include/libopencm3/license.dox \ 20 | ../../include/libopencm3/lpc17xx/ \ 21 | ../../lib/lpc17xx 22 | 23 | EXCLUDE = ../../include/libopencm3/lpc17xx/doc-lpc17xx.h 24 | 25 | LAYOUT_FILE = DoxygenLayout_lpc17xx.xml 26 | 27 | GENERATE_HTML = NO 28 | 29 | GENERATE_LATEX = YES 30 | 31 | LATEX_HEADER = header_lpc17xx.tex 32 | 33 | -------------------------------------------------------------------------------- /firmware/libopencm3/doc/lpc43xx/Doxyfile_latex: -------------------------------------------------------------------------------- 1 | # LaTeX Documentation for LPC43xx code level 2 | 3 | # 14 September 2012 4 | # (C) Ken Sarkies 5 | 6 | #--------------------------------------------------------------------------- 7 | # Common Include File 8 | #--------------------------------------------------------------------------- 9 | 10 | @INCLUDE = ../Doxyfile_common 11 | 12 | #--------------------------------------------------------------------------- 13 | # Local settings 14 | #--------------------------------------------------------------------------- 15 | 16 | WARN_LOGFILE = doxygen_lpc43xx_latex.log 17 | 18 | INPUT = ../../include/libopencm3/docmain.dox \ 19 | ../../include/libopencm3/license.dox \ 20 | ../../include/libopencm3/lpc43xx/ \ 21 | ../../lib/lpc43xx 22 | 23 | EXCLUDE = ../../include/libopencm3/lpc43xx/doc-lpc43xx.h 24 | 25 | LAYOUT_FILE = DoxygenLayout_lpc43xx.xml 26 | 27 | GENERATE_HTML = NO 28 | 29 | GENERATE_LATEX = YES 30 | 31 | LATEX_HEADER = header_lpc43xx.tex 32 | 33 | -------------------------------------------------------------------------------- /hardware/vna.pretty/EJ508A.kicad_mod: -------------------------------------------------------------------------------- 1 | (module EJ508A (layer F.Cu) (tedit 55787BCC) 2 | (fp_text reference REF** (at -4.4 3.5) (layer F.SilkS) 3 | (effects (font (size 1 1) (thickness 0.15))) 4 | ) 5 | (fp_text value EJ508A (at -0.7 -7.6) (layer F.Fab) 6 | (effects (font (size 1 1) (thickness 0.15))) 7 | ) 8 | (fp_line (start -6.5 7.7) (end -6.5 4.9) (layer F.SilkS) (width 0.15)) 9 | (fp_line (start -6.5 4.9) (end -2.9 4.9) (layer F.SilkS) (width 0.15)) 10 | (fp_line (start -2.9 4.9) (end -2.9 7.7) (layer F.SilkS) (width 0.15)) 11 | (fp_line (start -9 -6.7) (end 0 -6.7) (layer F.SilkS) (width 0.15)) 12 | (fp_line (start 0 7.7) (end -9 7.7) (layer F.SilkS) (width 0.15)) 13 | (fp_line (start -9 7.7) (end -9 -6.7) (layer F.SilkS) (width 0.15)) 14 | (fp_line (start 0 -6.7) (end 0 7.7) (layer F.SilkS) (width 0.15)) 15 | (pad 3 thru_hole circle (at 0 -3) (size 4.2 4.2) (drill 3.05) (layers *.Cu *.Mask F.SilkS)) 16 | (pad 1 thru_hole circle (at -5.9 -6) (size 4.6 4.6) (drill 3.56) (layers *.Cu *.Mask F.SilkS)) 17 | (pad 2 thru_hole circle (at -5.9 0) (size 4.2 4.2) (drill 3.05) (layers *.Cu *.Mask F.SilkS)) 18 | ) 19 | -------------------------------------------------------------------------------- /firmware/common/sgpio.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2012 Jared Boone 3 | * 4 | * This file is part of HackRF. 5 | * 6 | * This program is free software; you can redistribute it and/or modify 7 | * it under the terms of the GNU General Public License as published by 8 | * the Free Software Foundation; either version 2, or (at your option) 9 | * any later version. 10 | * 11 | * This program is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU General Public License 17 | * along with this program; see the file COPYING. If not, write to 18 | * the Free Software Foundation, Inc., 51 Franklin Street, 19 | * Boston, MA 02110-1301, USA. 20 | */ 21 | 22 | #ifndef __SGPIO_H__ 23 | #define __SGPIO_H__ 24 | 25 | #include 26 | 27 | 28 | void sgpio_configure_pin_functions(); 29 | void fill_rng(void); 30 | void sgpio_configure(void); 31 | 32 | #endif//__SGPIO_H__ 33 | -------------------------------------------------------------------------------- /firmware/libopencm3/include/libopencm3/stm32/l1/irq.yaml: -------------------------------------------------------------------------------- 1 | includeguard: LIBOPENCM3_STM32_L1_NVIC_H 2 | partname_humanreadable: STM32 L1 series 3 | partname_doxygen: STM32L1 4 | irqs: 5 | - wwdg 6 | - pvd 7 | - tamper_stamp 8 | - rtc_wkup 9 | - flash 10 | - rcc 11 | - exti0 12 | - exti1 13 | - exti2 14 | - exti3 15 | - exti4 16 | - dma1_channel1 17 | - dma1_channel2 18 | - dma1_channel3 19 | - dma1_channel4 20 | - dma1_channel5 21 | - dma1_channel6 22 | - dma1_channel7 23 | - adc1 24 | - usb_hp 25 | - usb_lp 26 | - dac 27 | - comp 28 | - exti9_5 29 | - lcd 30 | - tim9 31 | - tim10 32 | - tim11 33 | - tim2 34 | - tim3 35 | - tim4 36 | - i2c1_ev 37 | - i2c1_er 38 | - i2c2_ev 39 | - i2c2_er 40 | - spi1 41 | - spi2 42 | - usart1 43 | - usart2 44 | - usart3 45 | - exti15_10 46 | - rtc_alarm 47 | - usb_fs_wakeup 48 | - tim6 49 | - tim7 50 | # below here is medium+/high density 51 | - sdio 52 | - tim5 53 | - spi3 54 | - uart4 55 | - uart5 56 | - dma2_ch1 57 | - dma2_ch2 58 | - dma2_ch3 59 | - dma2_ch4 60 | - dma2_ch5 61 | - aes 62 | - comp_acq -------------------------------------------------------------------------------- /firmware/libopencm3/lib/stm32/f1/spi.c: -------------------------------------------------------------------------------- 1 | /** @defgroup spi_file SPI 2 | 3 | @ingroup STM32F1xx 4 | 5 | @brief libopencm3 STM32F1xx SPI 6 | 7 | @version 1.0.0 8 | 9 | @date 15 October 2012 10 | 11 | LGPL License Terms @ref lgpl_license 12 | */ 13 | 14 | /* 15 | * This file is part of the libopencm3 project. 16 | * 17 | * This library is free software: you can redistribute it and/or modify 18 | * it under the terms of the GNU Lesser General Public License as published by 19 | * the Free Software Foundation, either version 3 of the License, or 20 | * (at your option) any later version. 21 | * 22 | * This library is distributed in the hope that it will be useful, 23 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 24 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 25 | * GNU Lesser General Public License for more details. 26 | * 27 | * You should have received a copy of the GNU Lesser General Public License 28 | * along with this library. If not, see . 29 | */ 30 | 31 | #include 32 | #include 33 | -------------------------------------------------------------------------------- /firmware/libopencm3/lib/stm32/f1/crc.c: -------------------------------------------------------------------------------- 1 | /** @defgroup crc_file CRC 2 | 3 | @ingroup STM32F1xx 4 | 5 | @brief libopencm3 STM32F1xx CRC 6 | 7 | @version 1.0.0 8 | 9 | @date 15 October 2012 10 | 11 | LGPL License Terms @ref lgpl_license 12 | */ 13 | 14 | /* 15 | * This file is part of the libopencm3 project. 16 | * 17 | * This library is free software: you can redistribute it and/or modify 18 | * it under the terms of the GNU Lesser General Public License as published by 19 | * the Free Software Foundation, either version 3 of the License, or 20 | * (at your option) any later version. 21 | * 22 | * This library is distributed in the hope that it will be useful, 23 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 24 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 25 | * GNU Lesser General Public License for more details. 26 | * 27 | * You should have received a copy of the GNU Lesser General Public License 28 | * along with this library. If not, see . 29 | */ 30 | 31 | #include 32 | #include 33 | 34 | -------------------------------------------------------------------------------- /firmware/libopencm3/lib/stm32/f1/dac.c: -------------------------------------------------------------------------------- 1 | /** @defgroup dac_file DAC 2 | 3 | @ingroup STM32F1xx 4 | 5 | @brief libopencm3 STM32F1xx DAC 6 | 7 | @version 1.0.0 8 | 9 | @date 18 August 2012 10 | 11 | LGPL License Terms @ref lgpl_license 12 | */ 13 | 14 | /* 15 | * This file is part of the libopencm3 project. 16 | * 17 | * This library is free software: you can redistribute it and/or modify 18 | * it under the terms of the GNU Lesser General Public License as published by 19 | * the Free Software Foundation, either version 3 of the License, or 20 | * (at your option) any later version. 21 | * 22 | * This library is distributed in the hope that it will be useful, 23 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 24 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 25 | * GNU Lesser General Public License for more details. 26 | * 27 | * You should have received a copy of the GNU Lesser General Public License 28 | * along with this library. If not, see . 29 | */ 30 | 31 | #include 32 | #include 33 | 34 | -------------------------------------------------------------------------------- /firmware/libopencm3/lib/stm32/f1/dma.c: -------------------------------------------------------------------------------- 1 | /** @defgroup dma_file DMA 2 | 3 | @ingroup STM32F1xx 4 | 5 | @brief libopencm3 STM32F1xx DMA 6 | 7 | @version 1.0.0 8 | 9 | @date 18 August 2012 10 | 11 | LGPL License Terms @ref lgpl_license 12 | */ 13 | 14 | /* 15 | * This file is part of the libopencm3 project. 16 | * 17 | * This library is free software: you can redistribute it and/or modify 18 | * it under the terms of the GNU Lesser General Public License as published by 19 | * the Free Software Foundation, either version 3 of the License, or 20 | * (at your option) any later version. 21 | * 22 | * This library is distributed in the hope that it will be useful, 23 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 24 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 25 | * GNU Lesser General Public License for more details. 26 | * 27 | * You should have received a copy of the GNU Lesser General Public License 28 | * along with this library. If not, see . 29 | */ 30 | 31 | #include 32 | #include 33 | 34 | -------------------------------------------------------------------------------- /firmware/libopencm3/lib/stm32/f1/i2c.c: -------------------------------------------------------------------------------- 1 | /** @defgroup i2c_file I2C 2 | 3 | @ingroup STM32F1xx 4 | 5 | @brief libopencm3 STM32F1xx I2C 6 | 7 | @version 1.0.0 8 | 9 | @date 15 October 2012 10 | 11 | LGPL License Terms @ref lgpl_license 12 | */ 13 | 14 | /* 15 | * This file is part of the libopencm3 project. 16 | * 17 | * This library is free software: you can redistribute it and/or modify 18 | * it under the terms of the GNU Lesser General Public License as published by 19 | * the Free Software Foundation, either version 3 of the License, or 20 | * (at your option) any later version. 21 | * 22 | * This library is distributed in the hope that it will be useful, 23 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 24 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 25 | * GNU Lesser General Public License for more details. 26 | * 27 | * You should have received a copy of the GNU Lesser General Public License 28 | * along with this library. If not, see . 29 | */ 30 | 31 | #include 32 | #include 33 | 34 | -------------------------------------------------------------------------------- /firmware/libopencm3/lib/stm32/f2/dac.c: -------------------------------------------------------------------------------- 1 | /** @defgroup dac_file DAC 2 | 3 | @ingroup STM32F2xx 4 | 5 | @brief libopencm3 STM32F2xx DAC 6 | 7 | @version 1.0.0 8 | 9 | @date 18 August 2012 10 | 11 | LGPL License Terms @ref lgpl_license 12 | */ 13 | 14 | /* 15 | * This file is part of the libopencm3 project. 16 | * 17 | * This library is free software: you can redistribute it and/or modify 18 | * it under the terms of the GNU Lesser General Public License as published by 19 | * the Free Software Foundation, either version 3 of the License, or 20 | * (at your option) any later version. 21 | * 22 | * This library is distributed in the hope that it will be useful, 23 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 24 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 25 | * GNU Lesser General Public License for more details. 26 | * 27 | * You should have received a copy of the GNU Lesser General Public License 28 | * along with this library. If not, see . 29 | */ 30 | 31 | #include 32 | #include 33 | 34 | -------------------------------------------------------------------------------- /firmware/libopencm3/lib/stm32/f2/dma.c: -------------------------------------------------------------------------------- 1 | /** @defgroup dma_file DMA 2 | 3 | @ingroup STM32F2xx 4 | 5 | @brief libopencm3 STM32F2xx DMA 6 | 7 | @version 1.0.0 8 | 9 | @date 30 November 2012 10 | 11 | LGPL License Terms @ref lgpl_license 12 | */ 13 | 14 | /* 15 | * This file is part of the libopencm3 project. 16 | * 17 | * This library is free software: you can redistribute it and/or modify 18 | * it under the terms of the GNU Lesser General Public License as published by 19 | * the Free Software Foundation, either version 3 of the License, or 20 | * (at your option) any later version. 21 | * 22 | * This library is distributed in the hope that it will be useful, 23 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 24 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 25 | * GNU Lesser General Public License for more details. 26 | * 27 | * You should have received a copy of the GNU Lesser General Public License 28 | * along with this library. If not, see . 29 | */ 30 | 31 | #include 32 | #include 33 | 34 | -------------------------------------------------------------------------------- /firmware/libopencm3/lib/stm32/f2/i2c.c: -------------------------------------------------------------------------------- 1 | /** @defgroup i2c_file I2C 2 | 3 | @ingroup STM32F2xx 4 | 5 | @brief libopencm3 STM32F2xx I2C 6 | 7 | @version 1.0.0 8 | 9 | @date 15 October 2012 10 | 11 | LGPL License Terms @ref lgpl_license 12 | */ 13 | 14 | /* 15 | * This file is part of the libopencm3 project. 16 | * 17 | * This library is free software: you can redistribute it and/or modify 18 | * it under the terms of the GNU Lesser General Public License as published by 19 | * the Free Software Foundation, either version 3 of the License, or 20 | * (at your option) any later version. 21 | * 22 | * This library is distributed in the hope that it will be useful, 23 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 24 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 25 | * GNU Lesser General Public License for more details. 26 | * 27 | * You should have received a copy of the GNU Lesser General Public License 28 | * along with this library. If not, see . 29 | */ 30 | 31 | #include 32 | #include 33 | 34 | -------------------------------------------------------------------------------- /firmware/libopencm3/lib/stm32/f2/spi.c: -------------------------------------------------------------------------------- 1 | /** @defgroup spi_file SPI 2 | 3 | @ingroup STM32F2xx 4 | 5 | @brief libopencm3 STM32F2xx SPI 6 | 7 | @version 1.0.0 8 | 9 | @date 15 October 2012 10 | 11 | LGPL License Terms @ref lgpl_license 12 | */ 13 | 14 | /* 15 | * This file is part of the libopencm3 project. 16 | * 17 | * This library is free software: you can redistribute it and/or modify 18 | * it under the terms of the GNU Lesser General Public License as published by 19 | * the Free Software Foundation, either version 3 of the License, or 20 | * (at your option) any later version. 21 | * 22 | * This library is distributed in the hope that it will be useful, 23 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 24 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 25 | * GNU Lesser General Public License for more details. 26 | * 27 | * You should have received a copy of the GNU Lesser General Public License 28 | * along with this library. If not, see . 29 | */ 30 | 31 | #include 32 | #include 33 | 34 | -------------------------------------------------------------------------------- /firmware/libopencm3/lib/stm32/f4/dac.c: -------------------------------------------------------------------------------- 1 | /** @defgroup dac_file DAC 2 | 3 | @ingroup STM32F4xx 4 | 5 | @brief libopencm3 STM32F4xx DAC 6 | 7 | @version 1.0.0 8 | 9 | @date 18 August 2012 10 | 11 | LGPL License Terms @ref lgpl_license 12 | */ 13 | 14 | /* 15 | * This file is part of the libopencm3 project. 16 | * 17 | * This library is free software: you can redistribute it and/or modify 18 | * it under the terms of the GNU Lesser General Public License as published by 19 | * the Free Software Foundation, either version 3 of the License, or 20 | * (at your option) any later version. 21 | * 22 | * This library is distributed in the hope that it will be useful, 23 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 24 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 25 | * GNU Lesser General Public License for more details. 26 | * 27 | * You should have received a copy of the GNU Lesser General Public License 28 | * along with this library. If not, see . 29 | */ 30 | 31 | #include 32 | #include 33 | 34 | -------------------------------------------------------------------------------- /firmware/libopencm3/lib/stm32/f4/dma.c: -------------------------------------------------------------------------------- 1 | /** @defgroup dma_file DMA 2 | 3 | @ingroup STM32F4xx 4 | 5 | @brief libopencm3 STM32F4xx DMA 6 | 7 | @version 1.0.0 8 | 9 | @date 30 November 2012 10 | 11 | LGPL License Terms @ref lgpl_license 12 | */ 13 | 14 | /* 15 | * This file is part of the libopencm3 project. 16 | * 17 | * This library is free software: you can redistribute it and/or modify 18 | * it under the terms of the GNU Lesser General Public License as published by 19 | * the Free Software Foundation, either version 3 of the License, or 20 | * (at your option) any later version. 21 | * 22 | * This library is distributed in the hope that it will be useful, 23 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 24 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 25 | * GNU Lesser General Public License for more details. 26 | * 27 | * You should have received a copy of the GNU Lesser General Public License 28 | * along with this library. If not, see . 29 | */ 30 | 31 | #include 32 | #include 33 | 34 | -------------------------------------------------------------------------------- /firmware/libopencm3/lib/stm32/f4/i2c.c: -------------------------------------------------------------------------------- 1 | /** @defgroup i2c_file I2C 2 | 3 | @ingroup STM32F4xx 4 | 5 | @brief libopencm3 STM32F4xx I2C 6 | 7 | @version 1.0.0 8 | 9 | @date 15 October 2012 10 | 11 | LGPL License Terms @ref lgpl_license 12 | */ 13 | 14 | /* 15 | * This file is part of the libopencm3 project. 16 | * 17 | * This library is free software: you can redistribute it and/or modify 18 | * it under the terms of the GNU Lesser General Public License as published by 19 | * the Free Software Foundation, either version 3 of the License, or 20 | * (at your option) any later version. 21 | * 22 | * This library is distributed in the hope that it will be useful, 23 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 24 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 25 | * GNU Lesser General Public License for more details. 26 | * 27 | * You should have received a copy of the GNU Lesser General Public License 28 | * along with this library. If not, see . 29 | */ 30 | 31 | #include 32 | #include 33 | 34 | -------------------------------------------------------------------------------- /firmware/libopencm3/lib/stm32/f4/spi.c: -------------------------------------------------------------------------------- 1 | /** @defgroup spi_file SPI 2 | 3 | @ingroup STM32F4xx 4 | 5 | @brief libopencm3 STM32F4xx SPI 6 | 7 | @version 1.0.0 8 | 9 | @date 15 October 2012 10 | 11 | LGPL License Terms @ref lgpl_license 12 | */ 13 | 14 | /* 15 | * This file is part of the libopencm3 project. 16 | * 17 | * This library is free software: you can redistribute it and/or modify 18 | * it under the terms of the GNU Lesser General Public License as published by 19 | * the Free Software Foundation, either version 3 of the License, or 20 | * (at your option) any later version. 21 | * 22 | * This library is distributed in the hope that it will be useful, 23 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 24 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 25 | * GNU Lesser General Public License for more details. 26 | * 27 | * You should have received a copy of the GNU Lesser General Public License 28 | * along with this library. If not, see . 29 | */ 30 | 31 | #include 32 | #include 33 | 34 | -------------------------------------------------------------------------------- /firmware/libopencm3/lib/stm32/l1/dac.c: -------------------------------------------------------------------------------- 1 | /** @defgroup dac_file DAC 2 | 3 | @ingroup STM32L1xx 4 | 5 | @brief libopencm3 STM32L1xx DAC 6 | 7 | @version 1.0.0 8 | 9 | @date 18 August 2012 10 | 11 | LGPL License Terms @ref lgpl_license 12 | */ 13 | 14 | /* 15 | * This file is part of the libopencm3 project. 16 | * 17 | * This library is free software: you can redistribute it and/or modify 18 | * it under the terms of the GNU Lesser General Public License as published by 19 | * the Free Software Foundation, either version 3 of the License, or 20 | * (at your option) any later version. 21 | * 22 | * This library is distributed in the hope that it will be useful, 23 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 24 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 25 | * GNU Lesser General Public License for more details. 26 | * 27 | * You should have received a copy of the GNU Lesser General Public License 28 | * along with this library. If not, see . 29 | */ 30 | 31 | #include 32 | #include 33 | 34 | -------------------------------------------------------------------------------- /firmware/libopencm3/lib/stm32/l1/i2c.c: -------------------------------------------------------------------------------- 1 | /** @defgroup i2c_file I2C 2 | 3 | @ingroup STM32L1xx 4 | 5 | @brief libopencm3 STM32L1xx I2C 6 | 7 | @version 1.0.0 8 | 9 | @date 15 October 2012 10 | 11 | LGPL License Terms @ref lgpl_license 12 | */ 13 | 14 | /* 15 | * This file is part of the libopencm3 project. 16 | * 17 | * This library is free software: you can redistribute it and/or modify 18 | * it under the terms of the GNU Lesser General Public License as published by 19 | * the Free Software Foundation, either version 3 of the License, or 20 | * (at your option) any later version. 21 | * 22 | * This library is distributed in the hope that it will be useful, 23 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 24 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 25 | * GNU Lesser General Public License for more details. 26 | * 27 | * You should have received a copy of the GNU Lesser General Public License 28 | * along with this library. If not, see . 29 | */ 30 | 31 | #include 32 | #include 33 | 34 | -------------------------------------------------------------------------------- /firmware/libopencm3/lib/stm32/l1/spi.c: -------------------------------------------------------------------------------- 1 | /** @defgroup spi_file SPI 2 | 3 | @ingroup STM32L1xx 4 | 5 | @brief libopencm3 STM32L1xx SPI 6 | 7 | @version 1.0.0 8 | 9 | @date 15 October 2012 10 | 11 | LGPL License Terms @ref lgpl_license 12 | */ 13 | 14 | /* 15 | * This file is part of the libopencm3 project. 16 | * 17 | * This library is free software: you can redistribute it and/or modify 18 | * it under the terms of the GNU Lesser General Public License as published by 19 | * the Free Software Foundation, either version 3 of the License, or 20 | * (at your option) any later version. 21 | * 22 | * This library is distributed in the hope that it will be useful, 23 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 24 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 25 | * GNU Lesser General Public License for more details. 26 | * 27 | * You should have received a copy of the GNU Lesser General Public License 28 | * along with this library. If not, see . 29 | */ 30 | 31 | #include 32 | #include 33 | 34 | -------------------------------------------------------------------------------- /firmware/hackrf_usb/sgpio_isr.c: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2012 Jared Boone 3 | * Copyright 2013 Benjamin Vernoux 4 | * 5 | * This file is part of HackRF. 6 | * 7 | * This program is free software; you can redistribute it and/or modify 8 | * it under the terms of the GNU General Public License as published by 9 | * the Free Software Foundation; either version 2, or (at your option) 10 | * any later version. 11 | * 12 | * This program is distributed in the hope that it will be useful, 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 | * GNU General Public License for more details. 16 | * 17 | * You should have received a copy of the GNU General Public License 18 | * along with this program; see the file COPYING. If not, write to 19 | * the Free Software Foundation, Inc., 51 Franklin Street, 20 | * Boston, MA 02110-1301, USA. 21 | */ 22 | 23 | #include 24 | #include "sgpio_isr.h" 25 | 26 | #include 27 | #include "hackrf_core.h" 28 | 29 | #include "usb_bulk_buffer.h" 30 | 31 | void sgpio_isr_rx() { 32 | 33 | } 34 | 35 | -------------------------------------------------------------------------------- /firmware/libopencm3/doc/efm32g/Doxyfile_latex: -------------------------------------------------------------------------------- 1 | # LaTeX Documentation for efm32 code level 2 | 3 | # 12 November 2012 4 | # (C) Ken Sarkies 5 | 6 | #--------------------------------------------------------------------------- 7 | # Common Include File 8 | #--------------------------------------------------------------------------- 9 | 10 | @INCLUDE = ../Doxyfile_common 11 | 12 | #--------------------------------------------------------------------------- 13 | # Local settings 14 | #--------------------------------------------------------------------------- 15 | 16 | WARN_LOGFILE = doxygen_efm32g_latex.log 17 | 18 | INPUT = ../../include/libopencm3/docmain.dox \ 19 | ../../include/libopencm3/license.dox \ 20 | ../../include/libopencm3/efm32/efm32g \ 21 | ../../lib/efm32/efm32g 22 | 23 | EXCLUDE = ../../include/libopencm3/efm32/doc-efm32g.h 24 | 25 | LAYOUT_FILE = DoxygenLayout_efm32g.xml 26 | 27 | GENERATE_HTML = NO 28 | 29 | GENERATE_LATEX = YES 30 | 31 | LATEX_HEADER = header_efm32g.tex 32 | 33 | -------------------------------------------------------------------------------- /firmware/libopencm3/lib/stm32/f2/crc.c: -------------------------------------------------------------------------------- 1 | /** @defgroup crc_file CRC 2 | 3 | @ingroup STM32F2xx 4 | 5 | @brief libopencm3 STM32F2xx CRC 6 | 7 | @version 1.0.0 8 | 9 | @date 15 October 2012 10 | 11 | LGPL License Terms @ref lgpl_license 12 | */ 13 | 14 | /* 15 | * This file is part of the libopencm3 project. 16 | * 17 | * This library is free software: you can redistribute it and/or modify 18 | * it under the terms of the GNU Lesser General Public License as published by 19 | * the Free Software Foundation, either version 3 of the License, or 20 | * (at your option) any later version. 21 | * 22 | * This library is distributed in the hope that it will be useful, 23 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 24 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 25 | * GNU Lesser General Public License for more details. 26 | * 27 | * You should have received a copy of the GNU Lesser General Public License 28 | * along with this library. If not, see . 29 | */ 30 | 31 | #include 32 | #include 33 | 34 | 35 | -------------------------------------------------------------------------------- /firmware/libopencm3/lib/stm32/f4/crc.c: -------------------------------------------------------------------------------- 1 | /** @defgroup crc_file CRC 2 | 3 | @ingroup STM32F4xx 4 | 5 | @brief libopencm3 STM32F4xx CRC 6 | 7 | @version 1.0.0 8 | 9 | @date 15 October 2012 10 | 11 | LGPL License Terms @ref lgpl_license 12 | */ 13 | 14 | /* 15 | * This file is part of the libopencm3 project. 16 | * 17 | * This library is free software: you can redistribute it and/or modify 18 | * it under the terms of the GNU Lesser General Public License as published by 19 | * the Free Software Foundation, either version 3 of the License, or 20 | * (at your option) any later version. 21 | * 22 | * This library is distributed in the hope that it will be useful, 23 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 24 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 25 | * GNU Lesser General Public License for more details. 26 | * 27 | * You should have received a copy of the GNU Lesser General Public License 28 | * along with this library. If not, see . 29 | */ 30 | 31 | #include 32 | #include 33 | 34 | 35 | -------------------------------------------------------------------------------- /firmware/libopencm3/lib/stm32/l1/crc.c: -------------------------------------------------------------------------------- 1 | /** @defgroup crc_file CRC 2 | 3 | @ingroup STM32L1xx 4 | 5 | @brief libopencm3 STM32L1xx CRC 6 | 7 | @version 1.0.0 8 | 9 | @date 15 October 2012 10 | 11 | LGPL License Terms @ref lgpl_license 12 | */ 13 | 14 | /* 15 | * This file is part of the libopencm3 project. 16 | * 17 | * This library is free software: you can redistribute it and/or modify 18 | * it under the terms of the GNU Lesser General Public License as published by 19 | * the Free Software Foundation, either version 3 of the License, or 20 | * (at your option) any later version. 21 | * 22 | * This library is distributed in the hope that it will be useful, 23 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 24 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 25 | * GNU Lesser General Public License for more details. 26 | * 27 | * You should have received a copy of the GNU Lesser General Public License 28 | * along with this library. If not, see . 29 | */ 30 | 31 | #include 32 | #include 33 | 34 | 35 | -------------------------------------------------------------------------------- /firmware/common/LPC43xx_M4_M0_image_from_text.ld: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2012 Michael Ossmann 3 | * Copyright 2012 Jared Boone 4 | * 5 | * This file is part of HackRF 6 | * 7 | * This program is free software; you can redistribute it and/or modify 8 | * it under the terms of the GNU General Public License as published by 9 | * the Free Software Foundation; either version 2, or (at your option) 10 | * any later version. 11 | * 12 | * This program is distributed in the hope that it will be useful, 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 | * GNU General Public License for more details. 16 | * 17 | * You should have received a copy of the GNU General Public License 18 | * along with this program; see the file COPYING. If not, write to 19 | * the Free Software Foundation, Inc., 51 Franklin Street, 20 | * Boston, MA 02110-1301, USA. 21 | */ 22 | 23 | SECTIONS 24 | { 25 | .text : { 26 | PROVIDE(__m0_start__ = .); 27 | KEEP(*(.m0_bin*)); 28 | . = ALIGN(4); 29 | PROVIDE(__m0_end__ = .); 30 | } >rom 31 | } 32 | -------------------------------------------------------------------------------- /firmware/common/max5864.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2012 Jared Boone 3 | * 4 | * This file is part of HackRF. 5 | * 6 | * This program is free software; you can redistribute it and/or modify 7 | * it under the terms of the GNU General Public License as published by 8 | * the Free Software Foundation; either version 2, or (at your option) 9 | * any later version. 10 | * 11 | * This program is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU General Public License 17 | * along with this program; see the file COPYING. If not, write to 18 | * the Free Software Foundation, Inc., 51 Franklin Street, 19 | * Boston, MA 02110-1301, USA. 20 | */ 21 | 22 | #ifndef __MAX5864_H 23 | #define __MAX5864_H 24 | 25 | void max5864_shutdown(); 26 | void max5864_standby(); 27 | void max5864_idle(); 28 | void max5864_rx(); 29 | void max5864_tx(); 30 | void max5864_xcvr(); 31 | 32 | #endif // __MAX5864_H 33 | -------------------------------------------------------------------------------- /firmware/libopencm3/doc/efm32gg/Doxyfile_latex: -------------------------------------------------------------------------------- 1 | # LaTeX Documentation for efm32 code level 2 | 3 | # 12 November 2012 4 | # (C) Ken Sarkies 5 | 6 | #--------------------------------------------------------------------------- 7 | # Common Include File 8 | #--------------------------------------------------------------------------- 9 | 10 | @INCLUDE = ../Doxyfile_common 11 | 12 | #--------------------------------------------------------------------------- 13 | # Local settings 14 | #--------------------------------------------------------------------------- 15 | 16 | WARN_LOGFILE = doxygen_efm32gg_latex.log 17 | 18 | INPUT = ../../include/libopencm3/docmain.dox \ 19 | ../../include/libopencm3/license.dox \ 20 | ../../include/libopencm3/efm32/efm32gg \ 21 | ../../lib/efm32/efm32gg 22 | 23 | EXCLUDE = ../../include/libopencm3/efm32/doc-efm32gg.h 24 | 25 | LAYOUT_FILE = DoxygenLayout_efm32gg.xml 26 | 27 | GENERATE_HTML = NO 28 | 29 | GENERATE_LATEX = YES 30 | 31 | LATEX_HEADER = header_efm32gg.tex 32 | 33 | -------------------------------------------------------------------------------- /firmware/libopencm3/doc/efm32lg/Doxyfile_latex: -------------------------------------------------------------------------------- 1 | # LaTeX Documentation for efm32 code level 2 | 3 | # 12 November 2012 4 | # (C) Ken Sarkies 5 | 6 | #--------------------------------------------------------------------------- 7 | # Common Include File 8 | #--------------------------------------------------------------------------- 9 | 10 | @INCLUDE = ../Doxyfile_common 11 | 12 | #--------------------------------------------------------------------------- 13 | # Local settings 14 | #--------------------------------------------------------------------------- 15 | 16 | WARN_LOGFILE = doxygen_efm32lg_latex.log 17 | 18 | INPUT = ../../include/libopencm3/docmain.dox \ 19 | ../../include/libopencm3/license.dox \ 20 | ../../include/libopencm3/efm32/efm32lg \ 21 | ../../lib/efm32/efm32lg 22 | 23 | EXCLUDE = ../../include/libopencm3/efm32/doc-efm32lg.h 24 | 25 | LAYOUT_FILE = DoxygenLayout_efm32lg.xml 26 | 27 | GENERATE_HTML = NO 28 | 29 | GENERATE_LATEX = YES 30 | 31 | LATEX_HEADER = header_efm32lg.tex 32 | 33 | -------------------------------------------------------------------------------- /firmware/libopencm3/doc/efm32tg/Doxyfile_latex: -------------------------------------------------------------------------------- 1 | # LaTeX Documentation for efm32 code level 2 | 3 | # 12 November 2012 4 | # (C) Ken Sarkies 5 | 6 | #--------------------------------------------------------------------------- 7 | # Common Include File 8 | #--------------------------------------------------------------------------- 9 | 10 | @INCLUDE = ../Doxyfile_common 11 | 12 | #--------------------------------------------------------------------------- 13 | # Local settings 14 | #--------------------------------------------------------------------------- 15 | 16 | WARN_LOGFILE = doxygen_efm32tg_latex.log 17 | 18 | INPUT = ../../include/libopencm3/docmain.dox \ 19 | ../../include/libopencm3/license.dox \ 20 | ../../include/libopencm3/efm32/efm32tg \ 21 | ../../lib/efm32/efm32tg 22 | 23 | EXCLUDE = ../../include/libopencm3/efm32/doc-efm32tg.h 24 | 25 | LAYOUT_FILE = DoxygenLayout_efm32tg.xml 26 | 27 | GENERATE_HTML = NO 28 | 29 | GENERATE_LATEX = YES 30 | 31 | LATEX_HEADER = header_efm32tg.tex 32 | 33 | -------------------------------------------------------------------------------- /firmware/libopencm3/lib/stm32/f1/usart.c: -------------------------------------------------------------------------------- 1 | /** @defgroup usart_file USART 2 | 3 | @ingroup STM32F1xx 4 | 5 | @brief libopencm3 STM32F1xx USART 6 | 7 | @version 1.0.0 8 | 9 | @date 30 August 2012 10 | 11 | LGPL License Terms @ref lgpl_license 12 | */ 13 | 14 | /* 15 | * This file is part of the libopencm3 project. 16 | * 17 | * This library is free software: you can redistribute it and/or modify 18 | * it under the terms of the GNU Lesser General Public License as published by 19 | * the Free Software Foundation, either version 3 of the License, or 20 | * (at your option) any later version. 21 | * 22 | * This library is distributed in the hope that it will be useful, 23 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 24 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 25 | * GNU Lesser General Public License for more details. 26 | * 27 | * You should have received a copy of the GNU Lesser General Public License 28 | * along with this library. If not, see . 29 | */ 30 | 31 | #include 32 | #include 33 | 34 | -------------------------------------------------------------------------------- /firmware/libopencm3/lib/stm32/f2/usart.c: -------------------------------------------------------------------------------- 1 | /** @defgroup usart_file USART 2 | 3 | @ingroup STM32F2xx 4 | 5 | @brief libopencm3 STM32F2xx USART 6 | 7 | @version 1.0.0 8 | 9 | @date 30 August 2012 10 | 11 | LGPL License Terms @ref lgpl_license 12 | */ 13 | 14 | /* 15 | * This file is part of the libopencm3 project. 16 | * 17 | * This library is free software: you can redistribute it and/or modify 18 | * it under the terms of the GNU Lesser General Public License as published by 19 | * the Free Software Foundation, either version 3 of the License, or 20 | * (at your option) any later version. 21 | * 22 | * This library is distributed in the hope that it will be useful, 23 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 24 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 25 | * GNU Lesser General Public License for more details. 26 | * 27 | * You should have received a copy of the GNU Lesser General Public License 28 | * along with this library. If not, see . 29 | */ 30 | 31 | #include 32 | #include 33 | 34 | -------------------------------------------------------------------------------- /firmware/libopencm3/lib/stm32/f4/usart.c: -------------------------------------------------------------------------------- 1 | /** @defgroup usart_file USART 2 | 3 | @ingroup STM32F4xx 4 | 5 | @brief libopencm3 STM32F4xx USART 6 | 7 | @version 1.0.0 8 | 9 | @date 30 August 2012 10 | 11 | LGPL License Terms @ref lgpl_license 12 | */ 13 | 14 | /* 15 | * This file is part of the libopencm3 project. 16 | * 17 | * This library is free software: you can redistribute it and/or modify 18 | * it under the terms of the GNU Lesser General Public License as published by 19 | * the Free Software Foundation, either version 3 of the License, or 20 | * (at your option) any later version. 21 | * 22 | * This library is distributed in the hope that it will be useful, 23 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 24 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 25 | * GNU Lesser General Public License for more details. 26 | * 27 | * You should have received a copy of the GNU Lesser General Public License 28 | * along with this library. If not, see . 29 | */ 30 | 31 | #include 32 | #include 33 | 34 | -------------------------------------------------------------------------------- /firmware/libopencm3/lib/stm32/l1/usart.c: -------------------------------------------------------------------------------- 1 | /** @defgroup usart_file USART 2 | 3 | @ingroup STM32L1xx 4 | 5 | @brief libopencm3 STM32L1xx USART 6 | 7 | @version 1.0.0 8 | 9 | @date 30 August 2012 10 | 11 | LGPL License Terms @ref lgpl_license 12 | */ 13 | 14 | /* 15 | * This file is part of the libopencm3 project. 16 | * 17 | * This library is free software: you can redistribute it and/or modify 18 | * it under the terms of the GNU Lesser General Public License as published by 19 | * the Free Software Foundation, either version 3 of the License, or 20 | * (at your option) any later version. 21 | * 22 | * This library is distributed in the hope that it will be useful, 23 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 24 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 25 | * GNU Lesser General Public License for more details. 26 | * 27 | * You should have received a copy of the GNU Lesser General Public License 28 | * along with this library. If not, see . 29 | */ 30 | 31 | #include 32 | #include 33 | 34 | -------------------------------------------------------------------------------- /firmware/libopencm3/include/libopencm3/lpc13xx/irq.yaml: -------------------------------------------------------------------------------- 1 | includeguard: LIBOPENCM3_LPC13xx_NVIC_H 2 | partname_humanreadable: LPC 13xx series 3 | partname_doxygen: LPC13xx 4 | irqs: 5 | 0: pio0_0 6 | 1: pio0_1 7 | 2: pio0_2 8 | 3: pio0_3 9 | 4: pio0_4 10 | 5: pio0_5 11 | 6: pio0_6 12 | 7: pio0_7 13 | 8: pio0_8 14 | 9: pio0_9 15 | 10: pio0_10 16 | 11: pio0_11 17 | 12: pio1_0 18 | 13: pio1_1 19 | 14: pio1_2 20 | 15: pio1_3 21 | 16: pio1_4 22 | 17: pio1_5 23 | 18: pio1_6 24 | 19: pio1_7 25 | 20: pio1_8 26 | 21: pio1_9 27 | 22: pio1_10 28 | 23: pio1_11 29 | 24: pio2_0 30 | 25: pio2_1 31 | 26: pio2_2 32 | 27: pio2_3 33 | 28: pio2_4 34 | 29: pio2_5 35 | 30: pio2_6 36 | 31: pio2_7 37 | 32: pio2_8 38 | 33: pio2_9 39 | 34: pio2_10 40 | 35: pio2_11 41 | 36: pio3_0 42 | 37: pio3_1 43 | 38: pio3_2 44 | 39: pio3_3 45 | 40: i2c0 46 | 41: ct16b0 47 | 42: ct16b1 48 | 43: ct32b0 49 | 44: ct32b1 50 | 45: ssp0 51 | 46: uart 52 | 47: usb 53 | 48: usb_fiq 54 | 49: adc 55 | 50: wdt 56 | 51: bod 57 | # 52: reserved 58 | 53: pio3 59 | 54: pio2 60 | 55: pio1 61 | 56: pio0 62 | 56: ssp1 63 | -------------------------------------------------------------------------------- /firmware/libopencm3/lib/stm32/f0/crc.c: -------------------------------------------------------------------------------- 1 | /** @defgroup crc_file CRC 2 | * 3 | * @ingroup STM32F0xx 4 | * 5 | * @brief libopencm3 STM32F0xx CRC 6 | * 7 | * @version 1.0.0 8 | * 9 | * @date 11 July 2013 10 | * 11 | * LGPL License Terms @ref lgpl_license 12 | */ 13 | 14 | /* 15 | * This file is part of the libopencm3 project. 16 | * 17 | * This library is free software: you can redistribute it and/or modify 18 | * it under the terms of the GNU Lesser General Public License as published by 19 | * the Free Software Foundation, either version 3 of the License, or 20 | * (at your option) any later version. 21 | * 22 | * This library is distributed in the hope that it will be useful, 23 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 24 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 25 | * GNU Lesser General Public License for more details. 26 | * 27 | * You should have received a copy of the GNU Lesser General Public License 28 | * along with this library. If not, see . 29 | */ 30 | 31 | #include 32 | #include 33 | 34 | -------------------------------------------------------------------------------- /firmware/libopencm3/lib/stm32/f0/dac.c: -------------------------------------------------------------------------------- 1 | /** @defgroup dac_file DAC 2 | * 3 | * @ingroup STM32F0xx 4 | * 5 | * @brief libopencm3 STM32F0xx DAC 6 | * 7 | * @version 1.0.0 8 | * 9 | * @date 11 July 2013 10 | * 11 | * LGPL License Terms @ref lgpl_license 12 | */ 13 | 14 | /* 15 | * This file is part of the libopencm3 project. 16 | * 17 | * This library is free software: you can redistribute it and/or modify 18 | * it under the terms of the GNU Lesser General Public License as published by 19 | * the Free Software Foundation, either version 3 of the License, or 20 | * (at your option) any later version. 21 | * 22 | * This library is distributed in the hope that it will be useful, 23 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 24 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 25 | * GNU Lesser General Public License for more details. 26 | * 27 | * You should have received a copy of the GNU Lesser General Public License 28 | * along with this library. If not, see . 29 | */ 30 | 31 | #include 32 | #include 33 | 34 | -------------------------------------------------------------------------------- /firmware/libopencm3/lib/stm32/f0/rtc.c: -------------------------------------------------------------------------------- 1 | /** @defgroup rtc_file RTC 2 | * 3 | * @ingroup STM32F0xx 4 | * 5 | * @brief libopencm3 STM32F0xx RTC 6 | * 7 | * @version 1.0.0 8 | * 9 | * @date 10 July 2013 10 | * 11 | * LGPL License Terms @ref lgpl_license 12 | */ 13 | 14 | /* 15 | * This file is part of the libopencm3 project. 16 | * 17 | * This library is free software: you can redistribute it and/or modify 18 | * it under the terms of the GNU Lesser General Public License as published by 19 | * the Free Software Foundation, either version 3 of the License, or 20 | * (at your option) any later version. 21 | * 22 | * This library is distributed in the hope that it will be useful, 23 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 24 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 25 | * GNU Lesser General Public License for more details. 26 | * 27 | * You should have received a copy of the GNU Lesser General Public License 28 | * along with this library. If not, see . 29 | */ 30 | 31 | #include 32 | #include 33 | -------------------------------------------------------------------------------- /firmware/libopencm3/lib/stm32/f2/rtc.c: -------------------------------------------------------------------------------- 1 | /** @defgroup rtc_file RTC 2 | * 3 | * @ingroup STM32F2xx 4 | * 5 | * @brief libopencm3 STM32F2xx RTC 6 | * 7 | * @version 1.0.0 8 | * 9 | * @date 4 March 2013 10 | * 11 | * LGPL License Terms @ref lgpl_license 12 | */ 13 | 14 | /* 15 | * This file is part of the libopencm3 project. 16 | * 17 | * This library is free software: you can redistribute it and/or modify 18 | * it under the terms of the GNU Lesser General Public License as published by 19 | * the Free Software Foundation, either version 3 of the License, or 20 | * (at your option) any later version. 21 | * 22 | * This library is distributed in the hope that it will be useful, 23 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 24 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 25 | * GNU Lesser General Public License for more details. 26 | * 27 | * You should have received a copy of the GNU Lesser General Public License 28 | * along with this library. If not, see . 29 | */ 30 | 31 | #include 32 | #include 33 | -------------------------------------------------------------------------------- /firmware/libopencm3/lib/stm32/l1/rtc.c: -------------------------------------------------------------------------------- 1 | /** @defgroup rtc_file RTC 2 | * 3 | * @ingroup STM32L1xx 4 | * 5 | * @brief libopencm3 STM32L1xx RTC 6 | * 7 | * @version 1.0.0 8 | * 9 | * @date 4 March 2013 10 | * 11 | * LGPL License Terms @ref lgpl_license 12 | */ 13 | 14 | /* 15 | * This file is part of the libopencm3 project. 16 | * 17 | * This library is free software: you can redistribute it and/or modify 18 | * it under the terms of the GNU Lesser General Public License as published by 19 | * the Free Software Foundation, either version 3 of the License, or 20 | * (at your option) any later version. 21 | * 22 | * This library is distributed in the hope that it will be useful, 23 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 24 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 25 | * GNU Lesser General Public License for more details. 26 | * 27 | * You should have received a copy of the GNU Lesser General Public License 28 | * along with this library. If not, see . 29 | */ 30 | 31 | #include 32 | #include 33 | -------------------------------------------------------------------------------- /firmware/libopencm3/lib/stm32/f0/dma.c: -------------------------------------------------------------------------------- 1 | /** @defgroup dma_file DMA 2 | * 3 | * @ingroup STM32F0xx 4 | * 5 | * @brief libopencm3 STM32F0xx DMA 6 | * 7 | * @version 1.0.0 8 | * 9 | * @date 10 July 2013 10 | * 11 | * LGPL License Terms @ref lgpl_license 12 | */ 13 | 14 | /* 15 | * This file is part of the libopencm3 project. 16 | * 17 | * This library is free software: you can redistribute it and/or modify 18 | * it under the terms of the GNU Lesser General Public License as published by 19 | * the Free Software Foundation, either version 3 of the License, or 20 | * (at your option) any later version. 21 | * 22 | * This library is distributed in the hope that it will be useful, 23 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 24 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 25 | * GNU Lesser General Public License for more details. 26 | * 27 | * You should have received a copy of the GNU Lesser General Public License 28 | * along with this library. If not, see . 29 | */ 30 | 31 | #include 32 | #include 33 | 34 | -------------------------------------------------------------------------------- /firmware/libopencm3/lib/stm32/f1/iwdg.c: -------------------------------------------------------------------------------- 1 | /** @defgroup iwdg_file IWDG 2 | 3 | @ingroup STM32F1xx 4 | 5 | @brief libopencm3 STM32F1xx Independent Watchdog Timer 6 | 7 | @version 1.0.0 8 | 9 | @date 18 August 2012 10 | 11 | LGPL License Terms @ref lgpl_license 12 | */ 13 | 14 | /* 15 | * This file is part of the libopencm3 project. 16 | * 17 | * This library is free software: you can redistribute it and/or modify 18 | * it under the terms of the GNU Lesser General Public License as published by 19 | * the Free Software Foundation, either version 3 of the License, or 20 | * (at your option) any later version. 21 | * 22 | * This library is distributed in the hope that it will be useful, 23 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 24 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 25 | * GNU Lesser General Public License for more details. 26 | * 27 | * You should have received a copy of the GNU Lesser General Public License 28 | * along with this library. If not, see . 29 | */ 30 | 31 | #include 32 | #include 33 | 34 | -------------------------------------------------------------------------------- /firmware/libopencm3/lib/stm32/f2/iwdg.c: -------------------------------------------------------------------------------- 1 | /** @defgroup iwdg_file IWDG 2 | 3 | @ingroup STM32F2xx 4 | 5 | @brief libopencm3 STM32F2xx Independent Watchdog Timer 6 | 7 | @version 1.0.0 8 | 9 | @date 18 August 2012 10 | 11 | LGPL License Terms @ref lgpl_license 12 | */ 13 | 14 | /* 15 | * This file is part of the libopencm3 project. 16 | * 17 | * This library is free software: you can redistribute it and/or modify 18 | * it under the terms of the GNU Lesser General Public License as published by 19 | * the Free Software Foundation, either version 3 of the License, or 20 | * (at your option) any later version. 21 | * 22 | * This library is distributed in the hope that it will be useful, 23 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 24 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 25 | * GNU Lesser General Public License for more details. 26 | * 27 | * You should have received a copy of the GNU Lesser General Public License 28 | * along with this library. If not, see . 29 | */ 30 | 31 | #include 32 | #include 33 | 34 | -------------------------------------------------------------------------------- /firmware/libopencm3/lib/stm32/f3/dac.c: -------------------------------------------------------------------------------- 1 | /** @defgroup dac_file DAC 2 | * 3 | * @ingroup STM32F3xx 4 | * 5 | * @brief libopencm3 STM32F3xx DAC 6 | * 7 | * @version 1.0.0 8 | * 9 | * @date 18 August 2012 10 | * 11 | * LGPL License Terms @ref lgpl_license 12 | */ 13 | 14 | /* 15 | * This file is part of the libopencm3 project. 16 | * 17 | * This library is free software: you can redistribute it and/or modify 18 | * it under the terms of the GNU Lesser General Public License as published by 19 | * the Free Software Foundation, either version 3 of the License, or 20 | * (at your option) any later version. 21 | * 22 | * This library is distributed in the hope that it will be useful, 23 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 24 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 25 | * GNU Lesser General Public License for more details. 26 | * 27 | * You should have received a copy of the GNU Lesser General Public License 28 | * along with this library. If not, see . 29 | */ 30 | 31 | #include 32 | #include 33 | 34 | -------------------------------------------------------------------------------- /firmware/libopencm3/lib/stm32/f4/iwdg.c: -------------------------------------------------------------------------------- 1 | /** @defgroup iwdg_file IWDG 2 | 3 | @ingroup STM32F4xx 4 | 5 | @brief libopencm3 STM32F4xx Independent Watchdog Timer 6 | 7 | @version 1.0.0 8 | 9 | @date 18 August 2012 10 | 11 | LGPL License Terms @ref lgpl_license 12 | */ 13 | 14 | /* 15 | * This file is part of the libopencm3 project. 16 | * 17 | * This library is free software: you can redistribute it and/or modify 18 | * it under the terms of the GNU Lesser General Public License as published by 19 | * the Free Software Foundation, either version 3 of the License, or 20 | * (at your option) any later version. 21 | * 22 | * This library is distributed in the hope that it will be useful, 23 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 24 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 25 | * GNU Lesser General Public License for more details. 26 | * 27 | * You should have received a copy of the GNU Lesser General Public License 28 | * along with this library. If not, see . 29 | */ 30 | 31 | #include 32 | #include 33 | 34 | -------------------------------------------------------------------------------- /firmware/libopencm3/lib/stm32/l1/dma.c: -------------------------------------------------------------------------------- 1 | /** @defgroup dma_file DMA 2 | * 3 | * @ingroup STM32L1xx 4 | * 5 | * @brief libopencm3 STM32L1xx DMA 6 | * 7 | * @version 1.0.0 8 | * 9 | * @date 10 July 2013 10 | * 11 | * LGPL License Terms @ref lgpl_license 12 | */ 13 | 14 | /* 15 | * This file is part of the libopencm3 project. 16 | * 17 | * This library is free software: you can redistribute it and/or modify 18 | * it under the terms of the GNU Lesser General Public License as published by 19 | * the Free Software Foundation, either version 3 of the License, or 20 | * (at your option) any later version. 21 | * 22 | * This library is distributed in the hope that it will be useful, 23 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 24 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 25 | * GNU Lesser General Public License for more details. 26 | * 27 | * You should have received a copy of the GNU Lesser General Public License 28 | * along with this library. If not, see . 29 | */ 30 | 31 | #include 32 | #include 33 | 34 | -------------------------------------------------------------------------------- /firmware/libopencm3/lib/stm32/l1/iwdg.c: -------------------------------------------------------------------------------- 1 | /** @defgroup iwdg_file IWDG 2 | 3 | @ingroup STM32L1xx 4 | 5 | @brief libopencm3 STM32L1xx Independent Watchdog Timer 6 | 7 | @version 1.0.0 8 | 9 | @date 18 August 2012 10 | 11 | LGPL License Terms @ref lgpl_license 12 | */ 13 | 14 | /* 15 | * This file is part of the libopencm3 project. 16 | * 17 | * This library is free software: you can redistribute it and/or modify 18 | * it under the terms of the GNU Lesser General Public License as published by 19 | * the Free Software Foundation, either version 3 of the License, or 20 | * (at your option) any later version. 21 | * 22 | * This library is distributed in the hope that it will be useful, 23 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 24 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 25 | * GNU Lesser General Public License for more details. 26 | * 27 | * You should have received a copy of the GNU Lesser General Public License 28 | * along with this library. If not, see . 29 | */ 30 | 31 | #include 32 | #include 33 | 34 | -------------------------------------------------------------------------------- /firmware/libopencm3/doc/usb/Doxyfile_latex: -------------------------------------------------------------------------------- 1 | # LaTeX Documentation for USB code level 2 | 3 | # 10 March 2013 4 | # (C) Ken Sarkies 5 | 6 | #--------------------------------------------------------------------------- 7 | # Common Include File 8 | #--------------------------------------------------------------------------- 9 | 10 | @INCLUDE = ../Doxyfile_common 11 | 12 | #--------------------------------------------------------------------------- 13 | # Local settings 14 | #--------------------------------------------------------------------------- 15 | 16 | WARN_LOGFILE = doxygen_usb_latex.log 17 | 18 | WARN_LOGFILE = doxygen_usb.log 19 | 20 | INPUT = ../../include/libopencm3/license.dox \ 21 | ../../include/libopencm3/usb 22 | 23 | INPUT += ../../lib/usb 24 | 25 | EXCLUDE_PATTERNS = 26 | 27 | LAYOUT_FILE = DoxygenLayout_usb.xml 28 | 29 | TAGFILES = 30 | 31 | GENERATE_TAGFILE = usb.tag 32 | 33 | ENABLE_PREPROCESSING = NO 34 | 35 | GENERATE_HTML = NO 36 | 37 | GENERATE_LATEX = YES 38 | 39 | LATEX_HEADER = header_usb.tex 40 | 41 | -------------------------------------------------------------------------------- /firmware/libopencm3/lib/stm32/f3/vector_chipset.c: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is part of the libopencm3 project. 3 | * 4 | * Copyright (C) 2010 Piotr Esden-Tempski 5 | * Copyright (C) 2011 Fergus Noble 6 | * 7 | * This library is free software: you can redistribute it and/or modify 8 | * it under the terms of the GNU Lesser General Public License as published by 9 | * the Free Software Foundation, either version 3 of the License, or 10 | * (at your option) any later version. 11 | * 12 | * This library is distributed in the hope that it will be useful, 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 | * GNU Lesser General Public License for more details. 16 | * 17 | * You should have received a copy of the GNU Lesser General Public License 18 | * along with this library. If not, see . 19 | */ 20 | 21 | #include 22 | 23 | static void pre_main(void) 24 | { 25 | /* Enable access to Floating-Point coprocessor. */ 26 | SCB_CPACR |= SCB_CPACR_FULL * (SCB_CPACR_CP10 | SCB_CPACR_CP11); 27 | } 28 | -------------------------------------------------------------------------------- /firmware/libopencm3/lib/stm32/f4/vector_chipset.c: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is part of the libopencm3 project. 3 | * 4 | * Copyright (C) 2010 Piotr Esden-Tempski 5 | * Copyright (C) 2011 Fergus Noble 6 | * 7 | * This library is free software: you can redistribute it and/or modify 8 | * it under the terms of the GNU Lesser General Public License as published by 9 | * the Free Software Foundation, either version 3 of the License, or 10 | * (at your option) any later version. 11 | * 12 | * This library is distributed in the hope that it will be useful, 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 | * GNU Lesser General Public License for more details. 16 | * 17 | * You should have received a copy of the GNU Lesser General Public License 18 | * along with this library. If not, see . 19 | */ 20 | 21 | #include 22 | 23 | static void pre_main(void) 24 | { 25 | /* Enable access to Floating-Point coprocessor. */ 26 | SCB_CPACR |= SCB_CPACR_FULL * (SCB_CPACR_CP10 | SCB_CPACR_CP11); 27 | } 28 | -------------------------------------------------------------------------------- /firmware/libopencm3/scripts/data/lpc43xx/gen.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python 2 | 3 | import sys 4 | import yaml 5 | import yaml_odict 6 | from collections import OrderedDict 7 | 8 | from pprint import pprint 9 | 10 | registers = yaml.load(open(sys.argv[1], 'r')) 11 | 12 | for register_name, register in registers.iteritems(): 13 | print('/* --- %s values %s */' % (register_name, '-' * (50 - len(register_name)))) 14 | print 15 | fields = register['fields'] 16 | #for field_name, field in sorted(fields.items(), lambda x, y: cmp(x[1]['lsb'], y[1]['lsb'])): 17 | for field_name, field in fields.items(): 18 | mask_bits = (1 << field['width']) - 1 19 | print('/* %s: %s */' % (field_name, field['description'])) 20 | print('#define %s_%s_SHIFT (%d)' % ( 21 | register_name, field_name, field['lsb'], 22 | )) 23 | print('#define %s_%s_MASK (0x%x << %s_%s_SHIFT)' % ( 24 | register_name, field_name, mask_bits, register_name, field_name, 25 | )) 26 | print('#define %s_%s(x) ((x) << %s_%s_SHIFT)' % ( 27 | register_name, field_name, register_name, field_name, 28 | )) 29 | print 30 | -------------------------------------------------------------------------------- /firmware/hackrf_usb/usb_api_cpld.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2012 Jared Boone 3 | * Copyright 2013 Benjamin Vernoux 4 | * 5 | * This file is part of HackRF. 6 | * 7 | * This program is free software; you can redistribute it and/or modify 8 | * it under the terms of the GNU General Public License as published by 9 | * the Free Software Foundation; either version 2, or (at your option) 10 | * any later version. 11 | * 12 | * This program is distributed in the hope that it will be useful, 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 | * GNU General Public License for more details. 16 | * 17 | * You should have received a copy of the GNU General Public License 18 | * along with this program; see the file COPYING. If not, write to 19 | * the Free Software Foundation, Inc., 51 Franklin Street, 20 | * Boston, MA 02110-1301, USA. 21 | */ 22 | 23 | #ifndef __USB_API_CPLD_H__ 24 | #define __USB_API_CPLD_H__ 25 | 26 | #include 27 | 28 | extern volatile bool start_cpld_update; 29 | 30 | void cpld_update(void); 31 | 32 | #endif /* end of include guard: __USB_API_CPLD_H__ */ 33 | -------------------------------------------------------------------------------- /firmware/libopencm3/doc/lm4f/Doxyfile_latex: -------------------------------------------------------------------------------- 1 | # LaTeX Documentation for LM3S code level 2 | 3 | # 14 September 2012 4 | # Copyright (C) Ken Sarkies 5 | # Copyright (C) 2012 Alexandru Gagniuc 6 | 7 | #--------------------------------------------------------------------------- 8 | # Common Include File 9 | #--------------------------------------------------------------------------- 10 | 11 | @INCLUDE = ../Doxyfile_common 12 | 13 | #--------------------------------------------------------------------------- 14 | # Local settings 15 | #--------------------------------------------------------------------------- 16 | 17 | WARN_LOGFILE = doxygen_lm4f_latex.log 18 | 19 | INPUT = ../../include/libopencm3/docmain.dox \ 20 | ../../include/libopencm3/license.dox \ 21 | ../../include/libopencm3/lm4f \ 22 | ../../lib/lm4f 23 | 24 | EXCLUDE = ../../include/libopencm3/lm4f/doc-lm4f.h 25 | 26 | LAYOUT_FILE = DoxygenLayout_lm4f.xml 27 | 28 | GENERATE_HTML = NO 29 | 30 | GENERATE_LATEX = YES 31 | 32 | LATEX_HEADER = header_lm4f.tex 33 | 34 | -------------------------------------------------------------------------------- /hardware/vna.pretty/C_0805b.kicad_mod: -------------------------------------------------------------------------------- 1 | (module C_0805b (layer F.Cu) (tedit 55A401FA) 2 | (descr "Capacitor SMD 0805, reflow soldering, AVX (see smccp.pdf)") 3 | (tags "capacitor 0805") 4 | (attr smd) 5 | (fp_text reference REF** (at 0 -1.675) (layer F.SilkS) 6 | (effects (font (size 0.5 0.5) (thickness 0.125))) 7 | ) 8 | (fp_text value C_0805 (at 0 2.1) (layer F.Fab) 9 | (effects (font (size 1 1) (thickness 0.15))) 10 | ) 11 | (fp_line (start -1.8 -1) (end 1.8 -1) (layer F.CrtYd) (width 0.05)) 12 | (fp_line (start -1.8 1) (end 1.8 1) (layer F.CrtYd) (width 0.05)) 13 | (fp_line (start -1.8 -1) (end -1.8 1) (layer F.CrtYd) (width 0.05)) 14 | (fp_line (start 1.8 -1) (end 1.8 1) (layer F.CrtYd) (width 0.05)) 15 | (fp_line (start 0.5 -0.85) (end -0.5 -0.85) (layer F.SilkS) (width 0.15)) 16 | (fp_line (start -0.5 0.85) (end 0.5 0.85) (layer F.SilkS) (width 0.15)) 17 | (pad 1 smd rect (at -1 0) (size 1 1.25) (layers F.Cu F.Paste F.Mask)) 18 | (pad 2 smd rect (at 1 0) (size 1 1.25) (layers F.Cu F.Paste F.Mask)) 19 | (model Capacitors_SMD.3dshapes/C_0805.wrl 20 | (at (xyz 0 0 0)) 21 | (scale (xyz 1 1 1)) 22 | (rotate (xyz 0 0 0)) 23 | ) 24 | ) 25 | -------------------------------------------------------------------------------- /firmware/libopencm3/include/libopencm3/cm3/cortex.h: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is part of the libopencm3 project. 3 | * 4 | * Copyright (C) 2013 Ben Gamari 5 | * 6 | * This library is free software: you can redistribute it and/or modify 7 | * it under the terms of the GNU Lesser General Public License as published by 8 | * the Free Software Foundation, either version 3 of the License, or 9 | * (at your option) any later version. 10 | * 11 | * This library is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU Lesser General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU Lesser General Public License 17 | * along with this library. If not, see . 18 | */ 19 | 20 | #ifndef LIBOPENCM3_CORTEX_H 21 | #define LIBOPENCM3_CORTEX_H 22 | 23 | static inline void cm_enable_interrupts(void) 24 | { 25 | __asm__("CPSIE I\n"); 26 | } 27 | 28 | static inline void cm_disable_interrupts(void) 29 | { 30 | __asm__("CPSID I\n"); 31 | } 32 | 33 | #endif 34 | -------------------------------------------------------------------------------- /firmware/libopencm3/include/libopencm3/stm32/hash.h: -------------------------------------------------------------------------------- 1 | /* This provides unification of code over STM32F subfamilies */ 2 | 3 | /* 4 | * This file is part of the libopencm3 project. 5 | * 6 | * This library is free software: you can redistribute it and/or modify 7 | * it under the terms of the GNU Lesser General Public License as published by 8 | * the Free Software Foundation, either version 3 of the License, or 9 | * (at your option) any later version. 10 | * 11 | * This library is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU Lesser General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU Lesser General Public License 17 | * along with this library. If not, see . 18 | */ 19 | 20 | #if defined(STM32F2) 21 | # include 22 | #elif defined(STM32F4) 23 | # include 24 | #else 25 | # error "hash processor is supported only" \ 26 | "in stm32f21, stm32f41 and stm32f43 families." 27 | #endif 28 | -------------------------------------------------------------------------------- /firmware/libopencm3/lib/stm32/f3/dma.c: -------------------------------------------------------------------------------- 1 | /** @defgroup dma_file DMA 2 | * 3 | * @ingroup STM32F3xx 4 | * 5 | * @brief libopencm3 STM32F3xx Direct Memory Access 6 | * 7 | * @version 1.0.0 8 | * 9 | * @date 11 July 2013 10 | * 11 | * LGPL License Terms @ref lgpl_license 12 | */ 13 | 14 | /* 15 | * This file is part of the libopencm3 project. 16 | * 17 | * This library is free software: you can redistribute it and/or modify 18 | * it under the terms of the GNU Lesser General Public License as published by 19 | * the Free Software Foundation, either version 3 of the License, or 20 | * (at your option) any later version. 21 | * 22 | * This library is distributed in the hope that it will be useful, 23 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 24 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 25 | * GNU Lesser General Public License for more details. 26 | * 27 | * You should have received a copy of the GNU Lesser General Public License 28 | * along with this library. If not, see . 29 | */ 30 | 31 | #include 32 | #include 33 | 34 | -------------------------------------------------------------------------------- /hardware/vna.pretty/5400BL15B050E.kicad_mod: -------------------------------------------------------------------------------- 1 | (module 5400BL15B050E (layer F.Cu) (tedit 551F940E) 2 | (fp_text reference REF** (at 0 3.25) (layer F.SilkS) 3 | (effects (font (size 1 1) (thickness 0.15))) 4 | ) 5 | (fp_text value 5400BL15B050E (at 0.05 -4) (layer F.Fab) 6 | (effects (font (size 1 1) (thickness 0.15))) 7 | ) 8 | (fp_line (start -0.4 -0.3) (end -0.4 -1.6) (layer F.SilkS) (width 0.15)) 9 | (fp_line (start -0.4 -1.6) (end 1.6 -1.6) (layer F.SilkS) (width 0.15)) 10 | (fp_line (start 1.6 -1.6) (end 1.6 -0.3) (layer F.SilkS) (width 0.15)) 11 | (fp_line (start 1.6 -0.3) (end -0.4 -0.3) (layer F.SilkS) (width 0.15)) 12 | (fp_circle (center -0.5 -0.9) (end -0.4 -1) (layer F.SilkS) (width 0.15)) 13 | (pad 1 smd rect (at 0 0) (size 0.35 1) (layers F.Cu F.Paste F.Mask)) 14 | (pad 2 smd rect (at 0.65 0) (size 0.35 1) (layers F.Cu F.Paste F.Mask)) 15 | (pad 3 smd rect (at 1.3 0) (size 0.35 1) (layers F.Cu F.Paste F.Mask)) 16 | (pad 4 smd rect (at 1.3 -1.8) (size 0.35 1) (layers F.Cu F.Paste F.Mask)) 17 | (pad 5 smd rect (at 0.65 -1.8) (size 0.35 1) (layers F.Cu F.Paste F.Mask)) 18 | (pad 6 smd rect (at 0 -1.8) (size 0.35 1) (layers F.Cu F.Paste F.Mask)) 19 | ) 20 | -------------------------------------------------------------------------------- /firmware/hackrf_usb/m0_bin.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2012-2016 Benjamin Vernoux 3 | * 4 | * This file is part of AirSpy. 5 | * 6 | * This library is free software: you can redistribute it and/or modify 7 | * it under the terms of the GNU Lesser General Public License as published by 8 | * the Free Software Foundation, either version 3 of the License, or 9 | * (at your option) any later version. 10 | * 11 | * This library is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU Lesser General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU Lesser General Public License 17 | * along with this library. If not, see . 18 | */ 19 | 20 | #ifndef __M0_BIN_H 21 | #define __M0_BIN_H 22 | 23 | #ifdef __cplusplus 24 | extern "C" 25 | { 26 | #endif 27 | 28 | extern uint8_t m0_bin[]; 29 | extern uint32_t m0_bin_size; 30 | extern uint32_t cm0_exec_baseaddr; /* defined in linker script */ 31 | 32 | #ifdef __cplusplus 33 | } 34 | #endif 35 | 36 | #endif /* __M0_BIN_H */ 37 | -------------------------------------------------------------------------------- /firmware/libopencm3/lib/stm32/f0/iwdg.c: -------------------------------------------------------------------------------- 1 | /** @defgroup iwdg_file IWDG 2 | * 3 | * @ingroup STM32F0xx 4 | * 5 | * @brief libopencm3 STM32F0xx Independent Watchdog Timer 6 | * 7 | * @version 1.0.0 8 | * 9 | * @date 11 July 2013 10 | * 11 | * LGPL License Terms @ref lgpl_license 12 | */ 13 | 14 | /* 15 | * This file is part of the libopencm3 project. 16 | * 17 | * This library is free software: you can redistribute it and/or modify 18 | * it under the terms of the GNU Lesser General Public License as published by 19 | * the Free Software Foundation, either version 3 of the License, or 20 | * (at your option) any later version. 21 | * 22 | * This library is distributed in the hope that it will be useful, 23 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 24 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 25 | * GNU Lesser General Public License for more details. 26 | * 27 | * You should have received a copy of the GNU Lesser General Public License 28 | * along with this library. If not, see . 29 | */ 30 | 31 | #include 32 | #include 33 | 34 | -------------------------------------------------------------------------------- /firmware/libopencm3/lib/stm32/f3/iwdg.c: -------------------------------------------------------------------------------- 1 | /** @defgroup iwdg_file IWDG 2 | * 3 | * @ingroup STM32F3xx 4 | * 5 | * @brief libopencm3 STM32F3xx Independent Watchdog Timer 6 | * 7 | * @version 1.0.0 8 | * 9 | * @date 18 August 2012 10 | * 11 | * LGPL License Terms @ref lgpl_license 12 | */ 13 | 14 | /* 15 | * This file is part of the libopencm3 project. 16 | * 17 | * This library is free software: you can redistribute it and/or modify 18 | * it under the terms of the GNU Lesser General Public License as published by 19 | * the Free Software Foundation, either version 3 of the License, or 20 | * (at your option) any later version. 21 | * 22 | * This library is distributed in the hope that it will be useful, 23 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 24 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 25 | * GNU Lesser General Public License for more details. 26 | * 27 | * You should have received a copy of the GNU Lesser General Public License 28 | * along with this library. If not, see . 29 | */ 30 | 31 | #include 32 | #include 33 | 34 | -------------------------------------------------------------------------------- /hardware/vna.pretty/SSOT-6.kicad_mod: -------------------------------------------------------------------------------- 1 | (module SSOT-6 (layer F.Cu) (tedit 559D5666) 2 | (fp_text reference REF** (at -0.4 2.4) (layer F.SilkS) 3 | (effects (font (size 1 1) (thickness 0.15))) 4 | ) 5 | (fp_text value SSOT-6 (at -0.7 -2.7) (layer F.Fab) 6 | (effects (font (size 1 1) (thickness 0.15))) 7 | ) 8 | (fp_circle (center -1.3 0.4) (end -1.1 0.3) (layer F.SilkS) (width 0.15)) 9 | (fp_line (start -1.6 0.7) (end -1.6 -0.9) (layer F.SilkS) (width 0.15)) 10 | (fp_line (start -1.6 -0.9) (end 1.4 -0.9) (layer F.SilkS) (width 0.15)) 11 | (fp_line (start 1.4 -0.9) (end 1.4 0.7) (layer F.SilkS) (width 0.15)) 12 | (fp_line (start 1.4 0.7) (end -1.6 0.7) (layer F.SilkS) (width 0.15)) 13 | (pad 1 smd rect (at -1.1 1.2) (size 0.69 0.99) (layers F.Cu F.Paste F.Mask)) 14 | (pad 2 smd rect (at -0.15 1.2) (size 0.69 0.99) (layers F.Cu F.Paste F.Mask)) 15 | (pad 3 smd rect (at 0.8 1.2) (size 0.69 0.99) (layers F.Cu F.Paste F.Mask)) 16 | (pad 4 smd rect (at 0.8 -1.39) (size 0.69 0.99) (layers F.Cu F.Paste F.Mask)) 17 | (pad 5 smd rect (at -0.15 -1.39) (size 0.69 0.99) (layers F.Cu F.Paste F.Mask)) 18 | (pad 6 smd rect (at -1.1 -1.39) (size 0.69 0.99) (layers F.Cu F.Paste F.Mask)) 19 | ) 20 | -------------------------------------------------------------------------------- /firmware/hackrf_usb/m0s_bin.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2012-2016 Benjamin Vernoux 3 | * 4 | * This file is part of AirSpy. 5 | * 6 | * This library is free software: you can redistribute it and/or modify 7 | * it under the terms of the GNU Lesser General Public License as published by 8 | * the Free Software Foundation, either version 3 of the License, or 9 | * (at your option) any later version. 10 | * 11 | * This library is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU Lesser General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU Lesser General Public License 17 | * along with this library. If not, see . 18 | */ 19 | 20 | #ifndef __M0S_BIN_H 21 | #define __M0S_BIN_H 22 | 23 | #ifdef __cplusplus 24 | extern "C" 25 | { 26 | #endif 27 | 28 | extern uint8_t m0s_bin[]; 29 | extern uint32_t m0s_bin_size; 30 | extern uint32_t cm0s_exec_baseaddr; /* defined in linker script */ 31 | 32 | #ifdef __cplusplus 33 | } 34 | #endif 35 | 36 | #endif /* __M0S_BIN_H */ 37 | -------------------------------------------------------------------------------- /firmware/libopencm3/include/libopencm3/sam/memorymap.h: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is part of the libopencm3 project. 3 | * 4 | * Copyright (C) 2013 Gareth McMullin 5 | * 6 | * This library is free software: you can redistribute it and/or modify 7 | * it under the terms of the GNU Lesser General Public License as published by 8 | * the Free Software Foundation, either version 3 of the License, or 9 | * (at your option) any later version. 10 | * 11 | * This library is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU Lesser General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU Lesser General Public License 17 | * along with this library. If not, see . 18 | */ 19 | 20 | #ifndef SAM_MEMORYMAP_H 21 | #define SAM_MEMORYMAP_H 22 | 23 | #if defined(SAM3X) 24 | # include 25 | #elif defined(SAM3N) 26 | # include 27 | #else 28 | # error "Processor family not defined." 29 | #endif 30 | 31 | #endif 32 | 33 | -------------------------------------------------------------------------------- /firmware/libopencm3/include/libopencm3/stm32/crypto.h: -------------------------------------------------------------------------------- 1 | /* This provides unification of code over STM32F subfamilies */ 2 | 3 | /* 4 | * This file is part of the libopencm3 project. 5 | * 6 | * This library is free software: you can redistribute it and/or modify 7 | * it under the terms of the GNU Lesser General Public License as published by 8 | * the Free Software Foundation, either version 3 of the License, or 9 | * (at your option) any later version. 10 | * 11 | * This library is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU Lesser General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU Lesser General Public License 17 | * along with this library. If not, see . 18 | */ 19 | 20 | #if defined(STM32F2) 21 | # include 22 | #elif defined(STM32F4) 23 | # include 24 | #else 25 | # error "CRYPTO processor is supported only" \ 26 | "in stm32f2xx, stm32f41xx, stm32f42xx and stm32f43xx family." 27 | #endif 28 | -------------------------------------------------------------------------------- /firmware/libopencm3/include/libopencm3/stm32/f0/timer.h: -------------------------------------------------------------------------------- 1 | /** @defgroup timer_defines Timers Defines 2 | * 3 | * @brief Defined Constants and Types for the STM32F0xx Timers 4 | * 5 | * @ingroup STM32F0xx_defines 6 | * 7 | * @version 1.0.0 8 | * 9 | * @date 11 July 2013 10 | * 11 | * LGPL License Terms @ref lgpl_license 12 | */ 13 | /* 14 | * This file is part of the libopencm3 project. 15 | * 16 | * Copyright (C) 2013 Frantisek Burian 17 | * 18 | * This library is free software: you can redistribute it and/or modify 19 | * it under the terms of the GNU Lesser General Public License as published by 20 | * the Free Software Foundation, either version 3 of the License, or 21 | * (at your option) any later version. 22 | * 23 | * This library is distributed in the hope that it will be useful, 24 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 25 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 26 | * GNU Lesser General Public License for more details. 27 | * 28 | * You should have received a copy of the GNU Lesser General Public License 29 | * along with this library. If not, see . 30 | */ 31 | 32 | 33 | -------------------------------------------------------------------------------- /firmware/libopencm3/lib/stm32/f1/stm32f100x4.ld: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is part of the libopencm3 project. 3 | * 4 | * Copyright (C) 2012 Karl Palsson 5 | * 6 | * This library is free software: you can redistribute it and/or modify 7 | * it under the terms of the GNU Lesser General Public License as published by 8 | * the Free Software Foundation, either version 3 of the License, or 9 | * (at your option) any later version. 10 | * 11 | * This library is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU Lesser General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU Lesser General Public License 17 | * along with this library. If not, see . 18 | */ 19 | 20 | /* Linker script for STM32F100x4, 16K flash, 4K RAM. */ 21 | 22 | /* Define memory regions. */ 23 | MEMORY 24 | { 25 | rom (rx) : ORIGIN = 0x08000000, LENGTH = 16K 26 | ram (rwx) : ORIGIN = 0x20000000, LENGTH = 4K 27 | } 28 | 29 | /* Include the common ld script. */ 30 | INCLUDE libopencm3_stm32f1.ld 31 | 32 | -------------------------------------------------------------------------------- /firmware/libopencm3/lib/stm32/f1/stm32f100x6.ld: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is part of the libopencm3 project. 3 | * 4 | * Copyright (C) 2012 Karl Palsson 5 | * 6 | * This library is free software: you can redistribute it and/or modify 7 | * it under the terms of the GNU Lesser General Public License as published by 8 | * the Free Software Foundation, either version 3 of the License, or 9 | * (at your option) any later version. 10 | * 11 | * This library is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU Lesser General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU Lesser General Public License 17 | * along with this library. If not, see . 18 | */ 19 | 20 | /* Linker script for STM32F100x6, 32K flash, 4K RAM. */ 21 | 22 | /* Define memory regions. */ 23 | MEMORY 24 | { 25 | rom (rx) : ORIGIN = 0x08000000, LENGTH = 32K 26 | ram (rwx) : ORIGIN = 0x20000000, LENGTH = 4K 27 | } 28 | 29 | /* Include the common ld script. */ 30 | INCLUDE libopencm3_stm32f1.ld 31 | 32 | -------------------------------------------------------------------------------- /firmware/libopencm3/lib/stm32/f1/stm32f100x8.ld: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is part of the libopencm3 project. 3 | * 4 | * Copyright (C) 2012 Karl Palsson 5 | * 6 | * This library is free software: you can redistribute it and/or modify 7 | * it under the terms of the GNU Lesser General Public License as published by 8 | * the Free Software Foundation, either version 3 of the License, or 9 | * (at your option) any later version. 10 | * 11 | * This library is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU Lesser General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU Lesser General Public License 17 | * along with this library. If not, see . 18 | */ 19 | 20 | /* Linker script for STM32F100x8, 64K flash, 8K RAM. */ 21 | 22 | /* Define memory regions. */ 23 | MEMORY 24 | { 25 | rom (rx) : ORIGIN = 0x08000000, LENGTH = 64K 26 | ram (rwx) : ORIGIN = 0x20000000, LENGTH = 8K 27 | } 28 | 29 | /* Include the common ld script. */ 30 | INCLUDE libopencm3_stm32f1.ld 31 | 32 | -------------------------------------------------------------------------------- /firmware/libopencm3/lib/stm32/f1/stm32f100xb.ld: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is part of the libopencm3 project. 3 | * 4 | * Copyright (C) 2009 Uwe Hermann 5 | * 6 | * This library is free software: you can redistribute it and/or modify 7 | * it under the terms of the GNU Lesser General Public License as published by 8 | * the Free Software Foundation, either version 3 of the License, or 9 | * (at your option) any later version. 10 | * 11 | * This library is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU Lesser General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU Lesser General Public License 17 | * along with this library. If not, see . 18 | */ 19 | 20 | /* Linker script for STM32F100xB, 128K flash, 8K RAM. */ 21 | 22 | /* Define memory regions. */ 23 | MEMORY 24 | { 25 | rom (rx) : ORIGIN = 0x08000000, LENGTH = 128K 26 | ram (rwx) : ORIGIN = 0x20000000, LENGTH = 8K 27 | } 28 | 29 | /* Include the common ld script. */ 30 | INCLUDE libopencm3_stm32f1.ld 31 | 32 | -------------------------------------------------------------------------------- /firmware/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | # Copyright 2012 Jared Boone 2 | # 3 | # This file is part of HackRF. 4 | # 5 | # This program is free software; you can redistribute it and/or modify 6 | # it under the terms of the GNU General Public License as published by 7 | # the Free Software Foundation; either version 2, or (at your option) 8 | # any later version. 9 | # 10 | # This program is distributed in the hope that it will be useful, 11 | # but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | # GNU General Public License for more details. 14 | # 15 | # You should have received a copy of the GNU General Public License 16 | # along with this program; see the file COPYING. If not, write to 17 | # the Free Software Foundation, Inc., 51 Franklin Street, 18 | # Boston, MA 02110-1301, USA. 19 | # 20 | 21 | # Top directory CMake project for HackRF firmware 22 | 23 | cmake_minimum_required(VERSION 2.8.9) 24 | set(CMAKE_TOOLCHAIN_FILE toolchain-arm-cortex-m.cmake) 25 | 26 | project (hackrf_firmware_all) 27 | 28 | add_subdirectory(blinky) 29 | add_subdirectory(sgpio) 30 | add_subdirectory(startup) 31 | add_subdirectory(hackrf_usb) 32 | -------------------------------------------------------------------------------- /firmware/libopencm3/doc/stm32f2/Doxyfile: -------------------------------------------------------------------------------- 1 | # HTML Documentation for STM32F2 code level 2 | 3 | # 14 September 2012 4 | # (C) Ken Sarkies 5 | 6 | #--------------------------------------------------------------------------- 7 | # Common Include File 8 | #--------------------------------------------------------------------------- 9 | 10 | @INCLUDE = ../Doxyfile_common 11 | 12 | #--------------------------------------------------------------------------- 13 | # Local settings 14 | #--------------------------------------------------------------------------- 15 | 16 | WARN_LOGFILE = doxygen_stm32f2.log 17 | 18 | INPUT = ../../include/libopencm3/license.dox \ 19 | ../../include/libopencm3/stm32/f2 \ 20 | ../../include/libopencm3/stm32/common 21 | 22 | INPUT += ../../lib/stm32/f2 \ 23 | ../../lib/stm32/common 24 | 25 | EXCLUDE = 26 | 27 | EXCLUDE_PATTERNS = *_common_f13.h *_common_f13.c 28 | 29 | LAYOUT_FILE = DoxygenLayout_stm32f2.xml 30 | 31 | TAGFILES = ../cm3/cm3.tag=../../cm3/html 32 | 33 | GENERATE_TAGFILE = stm32f2.tag 34 | 35 | ENABLE_PREPROCESSING = YES 36 | 37 | 38 | -------------------------------------------------------------------------------- /firmware/libopencm3/doc/stm32f4/Doxyfile: -------------------------------------------------------------------------------- 1 | # HTML Documentation for STM32F4 code level 2 | 3 | # 14 September 2012 4 | # (C) Ken Sarkies 5 | 6 | #--------------------------------------------------------------------------- 7 | # Common Include File 8 | #--------------------------------------------------------------------------- 9 | 10 | @INCLUDE = ../Doxyfile_common 11 | 12 | #--------------------------------------------------------------------------- 13 | # Local settings 14 | #--------------------------------------------------------------------------- 15 | 16 | WARN_LOGFILE = doxygen_stm32f4.log 17 | 18 | INPUT = ../../include/libopencm3/license.dox \ 19 | ../../include/libopencm3/stm32/f4 \ 20 | ../../include/libopencm3/stm32/common 21 | 22 | INPUT += ../../lib/stm32/f4 \ 23 | ../../lib/stm32/common 24 | 25 | EXCLUDE = 26 | 27 | EXCLUDE_PATTERNS = *_common_f13.h *_common_f13.c 28 | 29 | LAYOUT_FILE = DoxygenLayout_stm32f4.xml 30 | 31 | TAGFILES = ../cm3/cm3.tag=../../cm3/html 32 | 33 | GENERATE_TAGFILE = stm32f4.tag 34 | 35 | ENABLE_PREPROCESSING = YES 36 | 37 | 38 | -------------------------------------------------------------------------------- /firmware/libopencm3/lib/stm32/f1/stm32f100xc.ld: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is part of the libopencm3 project. 3 | * 4 | * Copyright (C) 2012 Karl Palsson 5 | * 6 | * This library is free software: you can redistribute it and/or modify 7 | * it under the terms of the GNU Lesser General Public License as published by 8 | * the Free Software Foundation, either version 3 of the License, or 9 | * (at your option) any later version. 10 | * 11 | * This library is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU Lesser General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU Lesser General Public License 17 | * along with this library. If not, see . 18 | */ 19 | 20 | /* Linker script for STM32F100xC, 256K flash, 24K RAM. */ 21 | 22 | /* Define memory regions. */ 23 | MEMORY 24 | { 25 | rom (rx) : ORIGIN = 0x08000000, LENGTH = 256K 26 | ram (rwx) : ORIGIN = 0x20000000, LENGTH = 24K 27 | } 28 | 29 | /* Include the common ld script. */ 30 | INCLUDE libopencm3_stm32f1.ld 31 | 32 | -------------------------------------------------------------------------------- /firmware/libopencm3/lib/stm32/f1/stm32f100xd.ld: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is part of the libopencm3 project. 3 | * 4 | * Copyright (C) 2012 Karl Palsson 5 | * 6 | * This library is free software: you can redistribute it and/or modify 7 | * it under the terms of the GNU Lesser General Public License as published by 8 | * the Free Software Foundation, either version 3 of the License, or 9 | * (at your option) any later version. 10 | * 11 | * This library is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU Lesser General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU Lesser General Public License 17 | * along with this library. If not, see . 18 | */ 19 | 20 | /* Linker script for STM32F100xD, 384K flash, 32K RAM. */ 21 | 22 | /* Define memory regions. */ 23 | MEMORY 24 | { 25 | rom (rx) : ORIGIN = 0x08000000, LENGTH = 384K 26 | ram (rwx) : ORIGIN = 0x20000000, LENGTH = 32K 27 | } 28 | 29 | /* Include the common ld script. */ 30 | INCLUDE libopencm3_stm32f1.ld 31 | 32 | -------------------------------------------------------------------------------- /firmware/libopencm3/lib/stm32/f1/stm32f100xe.ld: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is part of the libopencm3 project. 3 | * 4 | * Copyright (C) 2012 Karl Palsson 5 | * 6 | * This library is free software: you can redistribute it and/or modify 7 | * it under the terms of the GNU Lesser General Public License as published by 8 | * the Free Software Foundation, either version 3 of the License, or 9 | * (at your option) any later version. 10 | * 11 | * This library is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU Lesser General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU Lesser General Public License 17 | * along with this library. If not, see . 18 | */ 19 | 20 | /* Linker script for STM32F100xE, 512K flash, 32K RAM. */ 21 | 22 | /* Define memory regions. */ 23 | MEMORY 24 | { 25 | rom (rx) : ORIGIN = 0x08000000, LENGTH = 512K 26 | ram (rwx) : ORIGIN = 0x20000000, LENGTH = 32K 27 | } 28 | 29 | /* Include the common ld script. */ 30 | INCLUDE libopencm3_stm32f1.ld 31 | 32 | -------------------------------------------------------------------------------- /hardware/vna.pretty/C_0402b.kicad_mod: -------------------------------------------------------------------------------- 1 | (module C_0402b (layer F.Cu) (tedit 55A40188) 2 | (descr "Capacitor SMD 0402, reflow soldering, AVX (see smccp.pdf)") 3 | (tags "capacitor 0402") 4 | (attr smd) 5 | (fp_text reference REF** (at 0 -1.7) (layer F.SilkS) 6 | (effects (font (size 0.5 0.5) (thickness 0.125))) 7 | ) 8 | (fp_text value C_0402 (at 0 1.7) (layer F.Fab) 9 | (effects (font (size 1 1) (thickness 0.15))) 10 | ) 11 | (fp_line (start -1.15 -0.6) (end 1.15 -0.6) (layer F.CrtYd) (width 0.05)) 12 | (fp_line (start -1.15 0.6) (end 1.15 0.6) (layer F.CrtYd) (width 0.05)) 13 | (fp_line (start -1.15 -0.6) (end -1.15 0.6) (layer F.CrtYd) (width 0.05)) 14 | (fp_line (start 1.15 -0.6) (end 1.15 0.6) (layer F.CrtYd) (width 0.05)) 15 | (fp_line (start 0.25 -0.475) (end -0.25 -0.475) (layer F.SilkS) (width 0.15)) 16 | (fp_line (start -0.25 0.475) (end 0.25 0.475) (layer F.SilkS) (width 0.15)) 17 | (pad 1 smd rect (at -0.55 0) (size 0.6 0.5) (layers F.Cu F.Paste F.Mask)) 18 | (pad 2 smd rect (at 0.55 0) (size 0.6 0.5) (layers F.Cu F.Paste F.Mask)) 19 | (model Capacitors_SMD.3dshapes/C_0402.wrl 20 | (at (xyz 0 0 0)) 21 | (scale (xyz 1 1 1)) 22 | (rotate (xyz 0 0 0)) 23 | ) 24 | ) 25 | -------------------------------------------------------------------------------- /hardware/vna.pretty/C_0603b.kicad_mod: -------------------------------------------------------------------------------- 1 | (module C_0603b (layer F.Cu) (tedit 55A401E5) 2 | (descr "Capacitor SMD 0603, reflow soldering, AVX (see smccp.pdf)") 3 | (tags "capacitor 0603") 4 | (attr smd) 5 | (fp_text reference REF** (at 0 -1.425) (layer F.SilkS) 6 | (effects (font (size 0.5 0.5) (thickness 0.125))) 7 | ) 8 | (fp_text value C_0603 (at 0 1.9) (layer F.Fab) 9 | (effects (font (size 1 1) (thickness 0.15))) 10 | ) 11 | (fp_line (start -1.45 -0.75) (end 1.45 -0.75) (layer F.CrtYd) (width 0.05)) 12 | (fp_line (start -1.45 0.75) (end 1.45 0.75) (layer F.CrtYd) (width 0.05)) 13 | (fp_line (start -1.45 -0.75) (end -1.45 0.75) (layer F.CrtYd) (width 0.05)) 14 | (fp_line (start 1.45 -0.75) (end 1.45 0.75) (layer F.CrtYd) (width 0.05)) 15 | (fp_line (start -0.35 -0.6) (end 0.35 -0.6) (layer F.SilkS) (width 0.15)) 16 | (fp_line (start 0.35 0.6) (end -0.35 0.6) (layer F.SilkS) (width 0.15)) 17 | (pad 1 smd rect (at -0.75 0) (size 0.8 0.75) (layers F.Cu F.Paste F.Mask)) 18 | (pad 2 smd rect (at 0.75 0) (size 0.8 0.75) (layers F.Cu F.Paste F.Mask)) 19 | (model Capacitors_SMD.3dshapes/C_0603.wrl 20 | (at (xyz 0 0 0)) 21 | (scale (xyz 1 1 1)) 22 | (rotate (xyz 0 0 0)) 23 | ) 24 | ) 25 | -------------------------------------------------------------------------------- /firmware/libopencm3/lib/stm32/f0/timer.c: -------------------------------------------------------------------------------- 1 | /** @defgroup timer_file Timers 2 | * 3 | * @ingroup STM32F0xx 4 | * 5 | * @brief libopencm3 STM32F0xx Timers 6 | * 7 | * @version 1.0.0 8 | * 9 | * @date 11 July 2013 10 | * 11 | */ 12 | 13 | /* 14 | * This file is part of the libopencm3 project. 15 | * 16 | * Copyright (C) 2010 Edward Cheeseman 17 | * Copyright (C) 2011 Stephen Caudle 18 | * 19 | * This library is free software: you can redistribute it and/or modify 20 | * it under the terms of the GNU Lesser General Public License as published by 21 | * the Free Software Foundation, either version 3 of the License, or 22 | * (at your option) any later version. 23 | * 24 | * This library is distributed in the hope that it will be useful, 25 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 26 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 27 | * GNU Lesser General Public License for more details. 28 | * 29 | * You should have received a copy of the GNU Lesser General Public License 30 | * along with this library. If not, see . 31 | */ 32 | 33 | #include 34 | 35 | -------------------------------------------------------------------------------- /hardware/vna.pretty/R_0402b.kicad_mod: -------------------------------------------------------------------------------- 1 | (module R_0402b (layer F.Cu) (tedit 55A401B2) 2 | (descr "Resistor SMD 0402, reflow soldering, Vishay (see dcrcw.pdf)") 3 | (tags "resistor 0402") 4 | (attr smd) 5 | (fp_text reference REF** (at 0 -1.4) (layer F.SilkS) 6 | (effects (font (size 0.5 0.5) (thickness 0.125))) 7 | ) 8 | (fp_text value R_0402 (at 0 1.8) (layer F.Fab) 9 | (effects (font (size 1 1) (thickness 0.15))) 10 | ) 11 | (fp_line (start -0.95 -0.65) (end 0.95 -0.65) (layer F.CrtYd) (width 0.05)) 12 | (fp_line (start -0.95 0.65) (end 0.95 0.65) (layer F.CrtYd) (width 0.05)) 13 | (fp_line (start -0.95 -0.65) (end -0.95 0.65) (layer F.CrtYd) (width 0.05)) 14 | (fp_line (start 0.95 -0.65) (end 0.95 0.65) (layer F.CrtYd) (width 0.05)) 15 | (fp_line (start 0.25 -0.525) (end -0.25 -0.525) (layer F.SilkS) (width 0.15)) 16 | (fp_line (start -0.25 0.525) (end 0.25 0.525) (layer F.SilkS) (width 0.15)) 17 | (pad 1 smd rect (at -0.45 0) (size 0.4 0.6) (layers F.Cu F.Paste F.Mask)) 18 | (pad 2 smd rect (at 0.45 0) (size 0.4 0.6) (layers F.Cu F.Paste F.Mask)) 19 | (model Resistors_SMD.3dshapes/R_0402.wrl 20 | (at (xyz 0 0 0)) 21 | (scale (xyz 1 1 1)) 22 | (rotate (xyz 0 0 0)) 23 | ) 24 | ) 25 | -------------------------------------------------------------------------------- /firmware/libopencm3/include/libopencmsis/efm32/efm32tg/irqhandlers.h: -------------------------------------------------------------------------------- 1 | /* This file is part of the libopencm3 project. 2 | * 3 | * It was generated by the irq2nvic_h script. 4 | * 5 | * These definitions bend every interrupt handler that is defined CMSIS style 6 | * to the weak symbol exported by libopenmc3. 7 | */ 8 | 9 | #define DMA_IRQHandler dma_isr 10 | #define GPIO_EVEN_IRQHandler gpio_even_isr 11 | #define TIMER0_IRQHandler timer0_isr 12 | #define USART0_RX_IRQHandler usart0_rx_isr 13 | #define USART0_TX_IRQHandler usart0_tx_isr 14 | #define ACMP01_IRQHandler acmp01_isr 15 | #define ADC0_IRQHandler adc0_isr 16 | #define DAC0_IRQHandler dac0_isr 17 | #define I2C0_IRQHandler i2c0_isr 18 | #define GPIO_ODD_IRQHandler gpio_odd_isr 19 | #define TIMER1_IRQHandler timer1_isr 20 | #define USART1_RX_IRQHandler usart1_rx_isr 21 | #define USART1_TX_IRQHandler usart1_tx_isr 22 | #define LESENSE_IRQHandler lesense_isr 23 | #define LEUART0_IRQHandler leuart0_isr 24 | #define LETIMER0_IRQHandler letimer0_isr 25 | #define PCNT0_IRQHandler pcnt0_isr 26 | #define RTC_IRQHandler rtc_isr 27 | #define CMU_IRQHandler cmu_isr 28 | #define VCMP_IRQHandler vcmp_isr 29 | #define LCD_IRQHandler lcd_isr 30 | #define MSC_IRQHandler msc_isr 31 | #define AES_IRQHandler aes_isr 32 | -------------------------------------------------------------------------------- /firmware/libopencm3/lib/stm32/l1/stm32l15xx6.ld: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is part of the libopencm3 project. 3 | * 4 | * Copyright (C) 2013 Karl Palsson 5 | * 6 | * This library is free software: you can redistribute it and/or modify 7 | * it under the terms of the GNU Lesser General Public License as published by 8 | * the Free Software Foundation, either version 3 of the License, or 9 | * (at your option) any later version. 10 | * 11 | * This library is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU Lesser General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU Lesser General Public License 17 | * along with this library. If not, see . 18 | */ 19 | 20 | /* Linker script for STM32L15xx6, 32K flash, 10K RAM. */ 21 | 22 | /* Define memory regions. */ 23 | MEMORY 24 | { 25 | rom (rx) : ORIGIN = 0x08000000, LENGTH = 32K 26 | ram (rwx) : ORIGIN = 0x20000000, LENGTH = 10K 27 | eep (r) : ORIGIN = 0x08080000, LENGTH = 4K 28 | } 29 | 30 | /* Include the common ld script. */ 31 | INCLUDE libopencm3_stm32l1.ld 32 | 33 | -------------------------------------------------------------------------------- /firmware/libopencm3/lib/stm32/l1/stm32l15xx8.ld: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is part of the libopencm3 project. 3 | * 4 | * Copyright (C) 2012 Karl Palsson 5 | * 6 | * This library is free software: you can redistribute it and/or modify 7 | * it under the terms of the GNU Lesser General Public License as published by 8 | * the Free Software Foundation, either version 3 of the License, or 9 | * (at your option) any later version. 10 | * 11 | * This library is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU Lesser General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU Lesser General Public License 17 | * along with this library. If not, see . 18 | */ 19 | 20 | /* Linker script for STM32L15xx8, 64K flash, 10K RAM. */ 21 | 22 | /* Define memory regions. */ 23 | MEMORY 24 | { 25 | rom (rx) : ORIGIN = 0x08000000, LENGTH = 64K 26 | ram (rwx) : ORIGIN = 0x20000000, LENGTH = 10K 27 | eep (r) : ORIGIN = 0x08080000, LENGTH = 4K 28 | } 29 | 30 | /* Include the common ld script. */ 31 | INCLUDE libopencm3_stm32l1.ld 32 | 33 | -------------------------------------------------------------------------------- /firmware/libopencm3/lib/stm32/l1/stm32l15xxb.ld: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is part of the libopencm3 project. 3 | * 4 | * Copyright (C) 2012 Karl Palsson 5 | * 6 | * This library is free software: you can redistribute it and/or modify 7 | * it under the terms of the GNU Lesser General Public License as published by 8 | * the Free Software Foundation, either version 3 of the License, or 9 | * (at your option) any later version. 10 | * 11 | * This library is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU Lesser General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU Lesser General Public License 17 | * along with this library. If not, see . 18 | */ 19 | 20 | /* Linker script for STM32L15xxB, 128K flash, 16K RAM. */ 21 | 22 | /* Define memory regions. */ 23 | MEMORY 24 | { 25 | rom (rx) : ORIGIN = 0x08000000, LENGTH = 128K 26 | ram (rwx) : ORIGIN = 0x20000000, LENGTH = 16K 27 | eep (r) : ORIGIN = 0x08080000, LENGTH = 4K 28 | } 29 | 30 | /* Include the common ld script. */ 31 | INCLUDE libopencm3_stm32l1.ld 32 | 33 | -------------------------------------------------------------------------------- /firmware/libopencm3/lib/stm32/l1/stm32l15xxc.ld: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is part of the libopencm3 project. 3 | * 4 | * Copyright (C) 2013 Karl Palsson 5 | * 6 | * This library is free software: you can redistribute it and/or modify 7 | * it under the terms of the GNU Lesser General Public License as published by 8 | * the Free Software Foundation, either version 3 of the License, or 9 | * (at your option) any later version. 10 | * 11 | * This library is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU Lesser General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU Lesser General Public License 17 | * along with this library. If not, see . 18 | */ 19 | 20 | /* Linker script for STM32L15xxC, 256k flash, 32K RAM. */ 21 | 22 | /* Define memory regions. */ 23 | MEMORY 24 | { 25 | rom (rx) : ORIGIN = 0x08000000, LENGTH = 256K 26 | ram (rwx) : ORIGIN = 0x20000000, LENGTH = 32K 27 | eep (r) : ORIGIN = 0x08080000, LENGTH = 8K 28 | } 29 | 30 | /* Include the common ld script. */ 31 | INCLUDE libopencm3_stm32l1.ld 32 | 33 | -------------------------------------------------------------------------------- /firmware/libopencm3/lib/stm32/l1/stm32l15xxd.ld: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is part of the libopencm3 project. 3 | * 4 | * Copyright (C) 2013 Karl Palsson 5 | * 6 | * This library is free software: you can redistribute it and/or modify 7 | * it under the terms of the GNU Lesser General Public License as published by 8 | * the Free Software Foundation, either version 3 of the License, or 9 | * (at your option) any later version. 10 | * 11 | * This library is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU Lesser General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU Lesser General Public License 17 | * along with this library. If not, see . 18 | */ 19 | 20 | /* Linker script for STM32L15xxD, 384K flash, 38K RAM. */ 21 | 22 | /* Define memory regions. */ 23 | MEMORY 24 | { 25 | rom (rx) : ORIGIN = 0x08000000, LENGTH = 384K 26 | ram (rwx) : ORIGIN = 0x20000000, LENGTH = 48K 27 | eep (r) : ORIGIN = 0x08080000, LENGTH = 12K 28 | } 29 | 30 | /* Include the common ld script. */ 31 | INCLUDE libopencm3_stm32l1.ld 32 | 33 | -------------------------------------------------------------------------------- /hardware/vna.pretty/TSOT-23.kicad_mod: -------------------------------------------------------------------------------- 1 | (module TSOT-23 (layer F.Cu) (tedit 53F4D02D) 2 | (fp_text reference TSOT-23 (at 0 -4.699) (layer F.SilkS) 3 | (effects (font (size 1 1) (thickness 0.15))) 4 | ) 5 | (fp_text value VAL** (at 0.0635 3.302) (layer F.SilkS) 6 | (effects (font (size 1 1) (thickness 0.15))) 7 | ) 8 | (fp_line (start -0.8 -1) (end -0.8 -0.2) (layer F.SilkS) (width 0.15)) 9 | (fp_line (start -0.8 -0.2) (end -0.5 -0.2) (layer F.SilkS) (width 0.15)) 10 | (fp_line (start -0.5 -0.6) (end -0.5 -2.1) (layer F.SilkS) (width 0.15)) 11 | (fp_line (start -0.5 -2.1) (end 2.4 -2.1) (layer F.SilkS) (width 0.15)) 12 | (fp_line (start 2.4 -2.1) (end 2.4 -0.6) (layer F.SilkS) (width 0.15)) 13 | (fp_line (start 2.4 -0.6) (end -0.5 -0.6) (layer F.SilkS) (width 0.15)) 14 | (pad 1 smd rect (at 0 0) (size 0.62 1.22) (layers F.Cu F.Paste F.Mask)) 15 | (pad 2 smd rect (at 0.95 0) (size 0.62 1.22) (layers F.Cu F.Paste F.Mask)) 16 | (pad 3 smd rect (at 1.9 0) (size 0.62 1.22) (layers F.Cu F.Paste F.Mask)) 17 | (pad 4 smd rect (at 1.9 -2.62) (size 0.62 1.22) (layers F.Cu F.Paste F.Mask)) 18 | (pad 5 smd rect (at 0.95 -2.62) (size 0.62 1.22) (layers F.Cu F.Paste F.Mask)) 19 | (pad 6 smd rect (at 0 -2.62) (size 0.62 1.22) (layers F.Cu F.Paste F.Mask)) 20 | ) 21 | -------------------------------------------------------------------------------- /firmware/libopencm3/doc/stm32f2/Doxyfile_latex: -------------------------------------------------------------------------------- 1 | # LaTeX Documentation for STM32F2 code level 2 | 3 | # 14 September 2012 4 | # (C) Ken Sarkies 5 | 6 | #--------------------------------------------------------------------------- 7 | # Common Include File 8 | #--------------------------------------------------------------------------- 9 | 10 | @INCLUDE = ../Doxyfile_common 11 | 12 | #--------------------------------------------------------------------------- 13 | # Local settings 14 | #--------------------------------------------------------------------------- 15 | 16 | WARN_LOGFILE = doxygen_stm32f2_latex.log 17 | 18 | INPUT = ../../include/libopencm3/docmain.dox \ 19 | ../../include/libopencm3/license.dox \ 20 | ../../include/libopencm3/stm32/f2 \ 21 | ../../include/libopencm3/stm32/common 22 | 23 | INPUT += ../../lib/stm32/f2 \ 24 | ../../lib/stm32/common 25 | 26 | EXCLUDE = ../../include/libopencm3/stm32/f2/doc-stm32f2.h 27 | 28 | EXCLUDE_PATTERNS = 29 | 30 | LAYOUT_FILE = DoxygenLayout_stm32f2.xml 31 | 32 | GENERATE_HTML = NO 33 | 34 | GENERATE_LATEX = YES 35 | 36 | LATEX_HEADER = header_stm32f2.tex 37 | 38 | -------------------------------------------------------------------------------- /firmware/libopencm3/include/libopencm3/stm32/adc.h: -------------------------------------------------------------------------------- 1 | /* This provides unification of code over STM32F subfamilies */ 2 | 3 | /* 4 | * This file is part of the libopencm3 project. 5 | * 6 | * This library is free software: you can redistribute it and/or modify 7 | * it under the terms of the GNU Lesser General Public License as published by 8 | * the Free Software Foundation, either version 3 of the License, or 9 | * (at your option) any later version. 10 | * 11 | * This library is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU Lesser General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU Lesser General Public License 17 | * along with this library. If not, see . 18 | */ 19 | 20 | #if defined(STM32F0) 21 | # include 22 | #elif defined(STM32F1) 23 | # include 24 | #elif defined(STM32F3) 25 | # include 26 | #elif defined(STM32F4) 27 | # include 28 | #else 29 | # error "stm32 family not defined." 30 | #endif 31 | 32 | -------------------------------------------------------------------------------- /firmware/libopencm3/doc/stm32f4/Doxyfile_latex: -------------------------------------------------------------------------------- 1 | # LaTeX Documentation for STM32F4 code level 2 | 3 | # 14 September 2012 4 | # (C) Ken Sarkies 5 | 6 | #--------------------------------------------------------------------------- 7 | # Common Include File 8 | #--------------------------------------------------------------------------- 9 | 10 | @INCLUDE = ../Doxyfile_common 11 | 12 | #--------------------------------------------------------------------------- 13 | # Local settings 14 | #--------------------------------------------------------------------------- 15 | 16 | WARN_LOGFILE = doxygen_stm32f4_latex.log 17 | 18 | INPUT = ../../include/libopencm3/docmain.dox \ 19 | ../../include/libopencm3/license.dox \ 20 | ../../include/libopencm3/stm32/f4 \ 21 | ../../include/libopencm3/stm32/common 22 | 23 | INPUT += ../../lib/stm32/f4 \ 24 | ../../lib/stm32/common 25 | 26 | EXCLUDE = ../../include/libopencm3/stm32/f4/doc-stm32f4.h 27 | 28 | EXCLUDE_PATTERNS = 29 | 30 | LAYOUT_FILE = DoxygenLayout_stm32f4.xml 31 | 32 | GENERATE_HTML = NO 33 | 34 | GENERATE_LATEX = YES 35 | 36 | LATEX_HEADER = header_stm32f4.tex 37 | 38 | --------------------------------------------------------------------------------