Changeset - af87b55ed4c6
[Not reviewed]
default
5 1 1
Ethan Zonca - 10 years ago 2016-03-25 22:46:25
ez@ethanzonca.com
Forget old files, add real callsign
7 files changed with 7 insertions and 24 deletions:
0 comments (0 inline, 0 general)
.hgignore
Show inline comments
 
new file 100644
 
syntax: glob
 

	
 
*\.o
 
*\.d
lib/jtencode/encode_rs_int.o
Show inline comments
 
deleted file
 
binary diff not shown
lib/jtencode/init_rs_int.o
Show inline comments
 
deleted file
 
binary diff not shown
lib/jtencode/jtencode.o
Show inline comments
 
deleted file
 
binary diff not shown
lib/si5351/si5351.d
Show inline comments
 
deleted file
lib/si5351/si5351.o
Show inline comments
 
deleted file
 
binary diff not shown
src/main.c
Show inline comments
 
#include "stm32f0xx_hal.h"
 
#include "si5351.h"
 
#include "jtencode.h"
 
#include "adc.h"
 
#include "dma.h"
 
#include "i2c.h"
 
#include "usart.h"
 
#include "gpio.h"
 
#include "gps.h"
 
 
 
void sysclk_init(void);
 
//#define WSPR_DEFAULT_FREQ 14097100UL
 
#define WSPR_DEFAULT_FREQ 10140100UL
 
#define WSPR_TONE_SPACING 146 // ~1.46 Hz
 
#define WSPR_CTC 10672 // CTC value for WSPR
 
 
char call[7] = "N0CALL";
 
char loc[5] = "AA00";
 
uint8_t dbm = 27;
 
char call[7] = "KD8TDF";
 
char loc[5] = "EN72";
 
uint8_t dbm = 10;
 
uint8_t tx_buffer[255];
 
 
 
uint32_t freq = WSPR_DEFAULT_FREQ;
 
uint8_t symbol_count = WSPR_SYMBOL_COUNT;
 
uint16_t ctc = WSPR_CTC;
 
uint16_t tone_spacing = WSPR_TONE_SPACING;
 
volatile uint8_t proceed = 0;
 
 
void encode_wspr(void)
 
{
 
    uint8_t i;
 
    //for(i=0; i<255; i++)
 
    //    tx_buffer[i] = 0;
 
 
    wspr_encode(call, loc, dbm, tx_buffer);
 
 
 
    //si5351_output_enable(SI5351_CLK0, 1);
 
 
    for(i=0; i<symbol_count; i++)
 
    {
 
 
        uint32_t freq2 = (freq * 100) + (tx_buffer[i] * tone_spacing);
0 comments (0 inline, 0 general)