mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-14 18:48:13 -07:00
baudrate only for physical uart
This commit is contained in:
parent
cf0d17853e
commit
5bc9118a19
3 changed files with 11 additions and 16 deletions
|
@ -420,7 +420,7 @@ const char *getStringDescriptor(uint8_t idx) {
|
|||
reg |= REG_NO_EFFECT_1_ALL; \
|
||||
reg &= ~(flags); \
|
||||
pUdp->UDP_CSR[(endpoint)] = reg; \
|
||||
} \
|
||||
}
|
||||
|
||||
// reset flags in the UDP_CSR register and waits for synchronization
|
||||
#define UDP_SET_EP_FLAGS(endpoint, flags) { \
|
||||
|
@ -429,7 +429,7 @@ const char *getStringDescriptor(uint8_t idx) {
|
|||
reg |= REG_NO_EFFECT_1_ALL; \
|
||||
reg |= (flags); \
|
||||
pUdp->UDP_CSR[(endpoint)] = reg; \
|
||||
} \
|
||||
}
|
||||
|
||||
|
||||
typedef struct {
|
||||
|
@ -439,12 +439,12 @@ typedef struct {
|
|||
uint8_t DataBits;
|
||||
} AT91S_CDC_LINE_CODING, *AT91PS_CDC_LINE_CODING;
|
||||
|
||||
AT91S_CDC_LINE_CODING line = {
|
||||
115200, // baudrate
|
||||
0, // 1 Stop Bit
|
||||
0, // None Parity
|
||||
8
|
||||
}; // 8 Data bits
|
||||
AT91S_CDC_LINE_CODING line = { // purely informative, actual values don't matter
|
||||
USART_BAUD_RATE, // baudrate
|
||||
0, // 1 Stop Bit
|
||||
0, // None Parity
|
||||
8 // 8 Data bits
|
||||
};
|
||||
|
||||
static void SpinDelay(int ms) {
|
||||
int us = ms * 1000;
|
||||
|
|
|
@ -37,6 +37,7 @@
|
|||
|
||||
#include <wchar.h>
|
||||
#include "at91sam7s512.h"
|
||||
#include "usart.h"
|
||||
#include "config_gpio.h"
|
||||
#include "proxmark3.h" // USB_CONNECT()
|
||||
#include "common.h"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue