STM32 EEPROM Testing
Dependencies: mbed
main.cpp
- Committer:
- chromaticdeth87
- Date:
- 2018-04-04
- Revision:
- 0:77080c9376de
File content as of revision 0:77080c9376de:
#include "mbed.h" #include "cal.h" /*------------------------------------------------------------------------------ Before to use this example, ensure that you an hyperterminal installed on your computer. More info here: https://developer.mbed.org/handbook/Terminals The default serial comm port uses the SERIAL_TX and SERIAL_RX pins (see their definition in the PinNames.h file). The default serial configuration in this case is 9600 bauds, 8-bit data, no parity If you want to change the baudrate for example, you have to redeclare the serial object in your code: Serial pc(SERIAL_TX, SERIAL_RX); Then, you can modify the baudrate and print like this: pc.baud(115200); pc.printf("Hello World !\n"); ------------------------------------------------------------------------------*/ BusOut FunctionLEDs(PB_15, PA_8); BusOut LevelLEDs(PA_11,PA_12); Serial pc(PA_9, PA_10); //tx,rx //StartupLEDs #define Blank 0x00 #define AllLEDs 0xFF //Function LED Defines #define pHG 0x01 #define ORPG 0x02 #define mAOutput 0x04 //LevelOut LED Defines #define LowLED 0x01 #define MidLED 0x02 #define HighLED 0x04 int main() { pc.baud(115200); //cal_test(); //initialize Calibration Data //cal_init(); cal_test(); cal_factory(); cal_test(); cal_init(); cal_test(); g_cal.vis_cal_ppb = 2.0; cal_save(); cal_init(); cal_test(); //cal_init(); //cal_test(); //cal_test(); //cal_init(); //cal_test(); //g_cal.vis_cal_ppb = 2.0; //cal_save(); // cal_test(); }