Stefan Kiegerl
/
FuncGen17
Func-Gen - basic setup
FuncGenMain_21.cpp
- Committer:
- hollegha3
- Date:
- 2021-03-23
- Revision:
- 2:3abf5ddd9fc0
- Child:
- 3:9fd12684fa88
File content as of revision 2:3abf5ddd9fc0:
#include "mbed.h" #include "Serial_HL.h" #include "FuncGenFSST.h" SerialBLK pc(USBTX, USBRX); SvProtocol ua0(&pc); void CommandHandler(); int main(void) { pc.format(8,SerialBLK::None,1); pc.baud(500000); // 115200 ua0.SvMessage("FuncGen"); // Meldung zum PC senden Timer stw; stw.start(); while(1) { CommandHandler(); if( stw.read_ms()>10 ) { // 100Hz stw.reset(); if( ua0.acqON ) { } } } return 1; } void CommandHandler() { uint8_t cmd; if( !pc.IsDataAvail() ) return; }