Skip to content

Commit

Permalink
stm32f051 flashing
Browse files Browse the repository at this point in the history
  • Loading branch information
bartslinger committed Feb 8, 2017
1 parent 1dfd3d6 commit 18876d3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions main.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
#include <string.h>
#include <errno.h>
#include <limits.h>
#include <stdint.h>

static FILE *fp;
static u32 fpsize;
Expand All @@ -22,6 +23,7 @@ static const uint16_t SUPPORTED_CHIP_IDS[] =
0x0410,
0x0414,
0x0413,
0x0440,
0
};

Expand Down
2 changes: 2 additions & 0 deletions serial_posix.c
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,8 @@ int ser_setup( ser_handler id, u32 baud, int databits, int parity, int stopbits

// And set blocking mode by default
fcntl( id, F_SETFL, 0 );

return 0;
}

// Read up to the specified number of bytes, return bytes actually read
Expand Down

0 comments on commit 18876d3

Please sign in to comment.