Commit Graph

76 Commits

Author SHA1 Message Date
8153696309 Fixed flushing not blocking correctly 2019-08-03 18:45:51 +02:00
9f9f7a8de5 Added flushing of transmit buffer 2019-08-03 17:52:28 +02:00
b6c1c3b51b Fixed conversion for bases other than 10 2019-08-03 17:32:38 +02:00
8d07e2d4db Implemented overloads for printing numbers 2019-08-03 16:52:57 +02:00
fe9e67036e Implemented stream operator for some basic types 2019-08-03 16:17:07 +02:00
9f7dc0da55 Added alias for driver dependent data size 2019-08-03 16:13:52 +02:00
2a07744575 Added static_assert for transmitting numbers 2019-08-03 16:11:21 +02:00
ecdefe40e7 Implemented integral type checking 2019-08-03 16:10:19 +02:00
53b791cb05 Implemented printing of numbers 2019-08-03 15:00:41 +02:00
50e01c480d Implemented templated numeric limits 2019-08-03 14:54:23 +02:00
7d4eddbd8b Changed interface to not initialize uart on construction 2019-08-03 11:14:01 +02:00
778f5f9754 Moved always_false template to utils 2019-08-03 10:58:32 +02:00
1ca8ea2061 Removed Peter Fleury's c uart library 2019-08-03 10:47:32 +02:00
80633998c7 Removed legacy usart library 2019-08-03 10:23:53 +02:00
2cd4069654 Moved interrupt vectors to their own translation unit to solve redefinition error 2019-08-02 20:29:04 +02:00
33c3cedb1e Fixed missing headers 2019-08-02 20:23:54 +02:00
925bb56f98 Added clang format file 2019-08-02 19:44:34 +02:00
a3d76a138d Implemented peeking with and without data for interrupt and blocking mode 2019-08-02 18:20:06 +02:00
95963295e2 Implemented blocking rx 2019-08-02 17:54:34 +02:00
0bfd303a26 Removed unneeded tx complete interrupt 2019-08-02 17:41:14 +02:00
16f4be8c6c Implemented interrupt driven rx for uart0 2019-08-02 17:38:00 +02:00
efe1446907 Implemented interrupt driven rx for uart1 2019-08-02 17:36:07 +02:00
b90da9bd9c Moved ring buffer to it's own struct 2019-08-02 17:13:53 +02:00
51a9d30c0a Implemented interrupt driven tx 2019-08-02 16:41:53 +02:00
496bb3d4d1 Removed force inlining functions that would be called often 2019-08-02 16:41:34 +02:00
5d6bc4761c Changed interrupt order to match vector numbers 2019-08-02 15:46:07 +02:00
3aeb43ee1e Added basic structure to support interrupt driven operation 2019-08-02 12:18:35 +02:00
a13a1ca9ab Fixed header includes 2019-08-02 12:18:35 +02:00
bdf4bd169e Moved hardware abstraction to separate header 2019-08-02 12:18:35 +02:00
6e45340993 Removed trailing whitespaces 2019-08-01 21:51:46 +02:00
f0a3cd6da8 Improved formatting 2019-07-30 21:51:13 +02:00
6861b8f5d1 Added force inline to reduce code size 2019-07-30 21:48:00 +02:00
aac73447b3 Implemented hardware abstraction that both hardware0 and hardware1 can use 2019-07-30 21:43:52 +02:00
fbd087808a Added enums for register bit positions 2019-07-30 20:56:16 +02:00
65bbf5e96a Refactored hardware abstraction 2019-07-30 20:29:38 +02:00
c03196493a Ran clang-format 2019-07-30 20:29:15 +02:00
470eb06345 Removed unused struct 2019-07-30 18:35:45 +02:00
099be106a7 Added C uart library by Peter Fleury as comparison 2019-07-30 18:32:00 +02:00
6ded0e1c8d Fixed rounding error in baud rate calculation 2019-07-28 19:20:03 +02:00
00cb9ad13c Added alias for first hardware uart 2019-07-28 17:58:23 +02:00
4a9cee922a Refactored class names to start with capital letter 2019-07-28 17:57:49 +02:00
8e0ba5a463 Implemented basic hardware support for transmitting 2019-07-28 17:32:51 +02:00
a71035d4b7 Specified default for hardware mode 2019-07-28 14:10:48 +02:00
fd7e8e7238 Added driving parameter 2019-07-28 14:09:09 +02:00
d9a05d0273 Fixed refactoring problem 2019-07-28 14:08:41 +02:00
2bbba0fcbd Removed unnecessary const qualifiers in template 2019-07-28 14:00:46 +02:00
29b4d85ce3 Renamed settings to config 2019-07-28 12:15:19 +02:00
ae90fdae3f Renamed choosing function 2019-07-28 10:54:47 +02:00
2364bff11f Implemented automatic type deducation depending on data bits 2019-07-28 10:49:14 +02:00
f08f607265 Fixed not implemented compiler error 2019-07-28 10:35:11 +02:00