![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
For LIGHT
setting.h@0:51c43836c1d7, 2019-08-14 (annotated)
- Committer:
- GiJeongKim
- Date:
- Wed Aug 14 08:13:36 2019 +0000
- Revision:
- 0:51c43836c1d7
- Child:
- 2:a1c0a37df760
cocoa;
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
GiJeongKim | 0:51c43836c1d7 | 1 | #include "mbed.h" |
GiJeongKim | 0:51c43836c1d7 | 2 | #include "FastPWM.h" |
GiJeongKim | 0:51c43836c1d7 | 3 | |
GiJeongKim | 0:51c43836c1d7 | 4 | extern DigitalOut check; |
GiJeongKim | 0:51c43836c1d7 | 5 | extern DigitalOut check_2; |
GiJeongKim | 0:51c43836c1d7 | 6 | extern AnalogOut dac_1; |
GiJeongKim | 0:51c43836c1d7 | 7 | extern AnalogOut dac_2; |
GiJeongKim | 0:51c43836c1d7 | 8 | |
GiJeongKim | 0:51c43836c1d7 | 9 | // pwm |
GiJeongKim | 0:51c43836c1d7 | 10 | #define PIN_V PB_7 |
GiJeongKim | 0:51c43836c1d7 | 11 | #define PIN_W PB_6 |
GiJeongKim | 0:51c43836c1d7 | 12 | //#define PWM_ARR 0x465 // loop 80k, pwm 40k |
GiJeongKim | 0:51c43836c1d7 | 13 | #define PWM_ARR 0x8CA // loop 40k, pwm 20k |
GiJeongKim | 0:51c43836c1d7 | 14 | extern float dtc_v; |
GiJeongKim | 0:51c43836c1d7 | 15 | extern float dtc_w; |
GiJeongKim | 0:51c43836c1d7 | 16 | |
GiJeongKim | 0:51c43836c1d7 | 17 | // I2C |
GiJeongKim | 0:51c43836c1d7 | 18 | extern I2C i2c; // SDA, SCL (for K22F) |
GiJeongKim | 0:51c43836c1d7 | 19 | extern const int i2c_slave_addr1; |
GiJeongKim | 0:51c43836c1d7 | 20 | extern unsigned int value; // 10bit output of reading sensor AS5510 |
GiJeongKim | 0:51c43836c1d7 | 21 | |
GiJeongKim | 0:51c43836c1d7 | 22 | // SPI |
GiJeongKim | 0:51c43836c1d7 | 23 | extern SPI eeprom; //(SPI_MOSI, SPI_MISO, SPI_SCK); |
GiJeongKim | 0:51c43836c1d7 | 24 | extern DigitalOut eeprom_cs; |
GiJeongKim | 0:51c43836c1d7 | 25 | extern SPI enc; |
GiJeongKim | 0:51c43836c1d7 | 26 | extern DigitalOut enc_cs; |
GiJeongKim | 0:51c43836c1d7 | 27 | |
GiJeongKim | 0:51c43836c1d7 | 28 | // UART |
GiJeongKim | 0:51c43836c1d7 | 29 | extern Serial pc; //Serial pc(PA_9,PA_10); _ UART |