-
Notifications
You must be signed in to change notification settings - Fork 81
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #9 from r2axz/r2axz-config-interface
Implement UART Configuration Interface
- Loading branch information
Showing
12 changed files
with
1,302 additions
and
102 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
/* | ||
* MIT License | ||
* | ||
* Copyright (c) 2020 Kirill Kotyagin | ||
*/ | ||
|
||
#ifndef CDC_CONFIG_H | ||
#define CDC_CONFIG_H | ||
|
||
#include "gpio.h" | ||
#include "usb_cdc.h" | ||
|
||
typedef struct { | ||
gpio_pin_t pins[cdc_pin_last]; | ||
} __attribute__ ((packed)) cdc_port_t; | ||
|
||
typedef struct { | ||
cdc_port_t port_config[USB_CDC_NUM_PORTS]; | ||
} __attribute__ ((packed)) cdc_config_t; | ||
|
||
#endif /* CDC_CONFIG_H */ |
Oops, something went wrong.