seems like U[S]ARTS OK, not tested yet

This commit is contained in:
Edward Emelianov
2026-02-15 00:24:26 +03:00
parent 26e74a6b89
commit cd8151c684
10 changed files with 331 additions and 99 deletions

View File

@@ -15,9 +15,11 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include "flash.h"
#include "hardware.h"
#include "proto.h"
#include "usart.h"
#include "usb_dev.h"
#define MAXSTRLEN RBINSZ
@@ -46,6 +48,7 @@ int main(void){
while(1){
// Put here code working WITOUT USB connected
if(!usbON) continue;
usarts_process(); //
for(int i = 0; i < maxno; ++i){ // just echo for first time
if(!CDCready[i]) continue;
int l = USB_receive(i, (uint8_t*)inbuff, MAXSTRLEN);