summaryrefslogtreecommitdiffstats
path: root/firmware/microblaze/apps/txrx.c
diff options
context:
space:
mode:
authorJosh Blum <josh@joshknows.com>2010-02-22 18:47:05 -0800
committerJosh Blum <josh@joshknows.com>2010-02-22 18:47:05 -0800
commit6b7c53985c09a8d74e9bfd9c6b37948d458b2c44 (patch)
treeb2a5fda7c44229ba210e95424e813b63c2545f85 /firmware/microblaze/apps/txrx.c
parent5200303517f4941fa60e2db713411f36116634a7 (diff)
downloaduhd-6b7c53985c09a8d74e9bfd9c6b37948d458b2c44.tar.gz
uhd-6b7c53985c09a8d74e9bfd9c6b37948d458b2c44.tar.bz2
uhd-6b7c53985c09a8d74e9bfd9c6b37948d458b2c44.zip
Work on the io interface for a device (and some implementation work in usrp2).
Modified the udp transport to reflect some of these changes. Got the fw compiling again, and it will not set data to true for small payloads (configuration ones).
Diffstat (limited to 'firmware/microblaze/apps/txrx.c')
-rw-r--r--firmware/microblaze/apps/txrx.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/firmware/microblaze/apps/txrx.c b/firmware/microblaze/apps/txrx.c
index 77c8e498c..16aa8eab2 100644
--- a/firmware/microblaze/apps/txrx.c
+++ b/firmware/microblaze/apps/txrx.c
@@ -159,7 +159,10 @@ void handle_udp_data_packet(
unsigned char *payload, int payload_len
){
//TODO store the reply port
- _is_data = true;
+
+ //forward this data to the dsp when the payload is sufficient
+ //the small payload is used to give the device the udp source port
+ _is_data = payload_len > sizeof(uint32_t);
}
#define OTW_GPIO_BANK_TO_NUM(bank) \