Bayley Wang / Mbed 2 deprecated flash_configuration

Dependencies:   mbed

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers config_pins.h Source File

config_pins.h

00001 #ifndef __CONFIG_PINS_H
00002 #define __CONFIG_PINS_H
00003 
00004 #define PWMA PA_8
00005 #define PWMB PA_9
00006 #define PWMC PA_10
00007 #define EN PB_15
00008 
00009 #define IA PA_4
00010 #define IB PB_0
00011 
00012 #define TH_PIN PB_8
00013 
00014 #define TH_LIMIT_LOW 1100 //uS
00015 #define TH_LIMIT_HIGH 1750
00016 #define TH_LIMIT_CRAZY 2000
00017 
00018 #define I_SCALE_RAW 25.0f //mv/A
00019 #define R_UP 12000.0f //ohms
00020 #define R_DOWN 3600.0f //ohms
00021 #define R_BIAS 3600.0f //ohms
00022 #define AVDD 3300.0f //mV
00023 
00024 #define I_OFFSET (AVDD * R_DOWN * R_UP / (R_DOWN * R_UP + R_BIAS * (R_DOWN + R_UP)))
00025 #define I_SCALE (R_BIAS * R_DOWN * I_SCALE_RAW / (R_DOWN * R_UP + R_BIAS * (R_DOWN + R_UP)))
00026 
00027 #define set_dtc(phase, value) *phase = (value)
00028 
00029 #endif