remove the limitation of MAXSAM=2000 samples at each swn/a2d command.
The A/D values are sent out through USB/RS232 immediately and only the latest A/D values are stored locally into a2dvalue[0][nchn].
Only the first row of s2dvalue array is used now.
update main.cpp/SPIA2D.cpp to remove the limitation of maximum number of samples in A/D conversion. This limitation is due to the limited size of a2d data buffer a2dvalue[][].
(1) In SPIA2D.cpp, the a2dvalue[][] only store the latest sample. After each A/D conversion, the digital value is sent out via USB/RS232
(2) In main.cpp, change the dog feeding interval according how many samples are required to avoid the watch dog resets mBed.
Update to support setting sampling frequency
update mbed status vrialbe
OK. Add new files SPITemp420.cpp.h to support ADT7301 SPI temperature sensor
and re-arrange the initialization functions in main()
support new RS232 command rdtemp, returns
% temperature=16.7029
find bug: cannot move LED motor one step by one stepm
update return EXIT_SUCCESS
Update codes for switch at optic reference side. OK
Bugfound. correct #define uSWU_POSITION to uSW_POSITION
bug fixed watchdog timeout and mBed is reset when uSW is 1 during testing motor movement in Initialize_main().