stmbl/inc/setup.h

31 lines
605 B
C
Raw Permalink Normal View History

2013-12-09 22:04:24 +00:00
//
// setup.h
// test
//
// Created by Rene on 09/12/13.
// Copyright (c) 2013 Rene Hopf. All rights reserved.
//
#pragma once
2013-12-09 22:04:24 +00:00
2014-12-29 12:47:11 +00:00
#include "stm32f4xx_conf.h"
2017-08-16 00:47:51 +00:00
//#include "misc.h"
2015-11-24 11:28:25 +00:00
#include "version.h"
#include "common.h"
2017-01-03 21:51:05 +00:00
#include "hw/hw.h"
2015-12-26 19:09:58 +00:00
#define U_ID ((__IO uint32_t *)0x1FFF7A10)
2013-12-09 22:04:24 +00:00
2014-07-27 17:36:24 +00:00
//sample times for F4: 3,15,28,56,84,112,144,480
2017-07-02 17:01:29 +00:00
#define RES_SampleTime ADC_SampleTime_3Cycles
2014-07-27 17:36:24 +00:00
2017-09-06 02:20:06 +00:00
#define ADC_ANZ 60
#define PID_WAVES 4
2014-09-22 22:56:36 +00:00
void setup(void);
void setup_res(void);
2014-12-18 20:04:43 +00:00
2016-09-05 22:13:02 +00:00
volatile uint32_t ADC_DMA_Buffer0[ADC_ANZ * PID_WAVES];
volatile uint32_t ADC_DMA_Buffer1[ADC_ANZ * PID_WAVES];
2013-12-09 22:04:24 +00:00
2014-11-21 20:02:45 +00:00
RCC_ClocksTypeDef RCC_Clocks;