Felix Kopp
1fa5d159a7
Simplify ringbuf indexing
...
This whole pointer arithmetic things might be all
fancy and stuff, but the diff should make it clear
that it is just unnecessarily complicated.
2020-10-30 18:07:29 +01:00
Felix Kopp
c031bf8611
Add ringbuf_size API
...
This might become useful if we want to dynamically
allocate an array that stores the entire queue.
2020-10-30 17:51:19 +01:00
Felix Kopp
fd75357944
Add list empty check in malloc
2020-10-24 17:44:18 +02:00
Felix Kopp
d37e139ddd
Bugfix for list_init macro
2020-10-14 17:56:43 +02:00
Felix Kopp
ef2142c551
Create serial interface definitions
2020-10-14 17:56:11 +02:00
Felix Kopp
32afd10e99
Minor macro refactor
2020-10-14 11:47:42 +00:00
Felix Kopp
fd4f87d595
(fuck)
2020-10-14 11:32:43 +00:00
Felix Kopp
5b41a9d87a
Make malloc actually use the correct region
2020-10-14 11:30:09 +00:00
Felix Kopp
745623afb2
I am stoopid (and fixed some bugs)
2020-10-14 11:29:02 +00:00
Felix Kopp
0ded77495b
Add ring buffer implementation
...
The next big step is to implement some sort of serial console in order
to get some debug output on real hardware (unfortunately, I don't have
a hardware debugger).
2020-10-12 19:07:03 +02:00
Felix Kopp
bdf3f008d7
Final refactor, initialize allocator on init
2020-10-12 17:54:07 +02:00
Felix Kopp
fc75cb2014
Refactor and make the allocator work
2020-10-12 15:35:10 +02:00
Felix Kopp
cd833dbbdf
Disallow double-freeing the same pointer
2020-10-12 12:47:20 +02:00
Felix Kopp
608cebb4a4
Fix another pile of stupid bugs
2020-10-12 12:45:13 +02:00
Felix Kopp
3929b55e85
Fix list iteration bug
2020-10-12 11:24:48 +02:00
Felix Kopp
0cfc979109
Fix operator precedence bug
2020-10-12 01:20:16 +02:00
Felix Kopp
0e725b795d
Move license comment to the bottom
2020-10-11 19:35:30 +02:00
Felix Kopp
9dfce93c57
Add memory allocator implementation
2020-10-11 19:08:20 +02:00
Felix Kopp
1541bf8bbb
Remove dup definition
2020-10-11 19:07:53 +02:00
Felix Kopp
3ed7e95c17
Add circular linked list implementation
2020-10-11 19:07:36 +02:00
Felix Kopp
a8574dc17a
Rename to IRQ
2020-10-10 23:15:47 +02:00
Felix Kopp
a4e244e7fc
Fix some minor errors
2020-10-10 23:11:21 +02:00
Felix Kopp
959b36215e
Cleanup 3
2020-06-17 20:42:41 +02:00
Felix Kopp
007434eb27
Fix vscode profile
2020-06-17 20:40:48 +02:00
Felix Kopp
424f5a902f
Cleanup 2
2020-06-17 20:40:22 +02:00
Felix Kopp
7a6c34b14e
Implement ctype.h
2020-06-14 10:43:06 +02:00
Felix Kopp
30096ab5b2
Tidy up
2020-06-14 05:51:01 +02:00
Felix Kopp
2ca4706e39
Init oscillatorss (somewhat) properly
2020-06-14 03:41:07 +02:00
Felix Kopp
76d6980a30
fuck
2020-06-14 01:56:51 +02:00
Felix Kopp
f7c01c4b91
Use memcpy and memset instead of custom loop
2020-06-13 23:06:13 +02:00
Felix Kopp
205f7ee342
Add some more register shit
2020-06-12 19:34:14 +02:00
Felix Kopp
3c8f3ca84b
Fix register stack order
2020-06-12 17:19:49 +02:00
Felix Kopp
ff8b5098cd
Enable SysTick on sched_init
2020-06-12 12:29:27 +02:00
Felix Kopp
c19e131f20
Add base stuff for preemptive scheduler
2020-06-12 11:49:20 +02:00
Felix Kopp
d5c958012b
It fucken blinks!!1!
2020-06-12 04:24:46 +02:00
Felix Kopp
466dcb81a6
Add some compiler flag macros for convenience
2020-06-12 03:43:11 +02:00
Felix Kopp
4f64116066
Remove obsolete include
2020-06-12 01:14:21 +02:00
Felix Kopp
cb1b6c0848
Ardix is ARM exclusive (at least for now)
2020-06-12 00:36:13 +02:00
Felix Kopp
2f3fe766f5
Shit, that was the wrong string.h
2020-06-12 00:33:33 +02:00
Felix Kopp
9817db1841
Add startup code for sam3x8e
2020-06-12 00:03:16 +02:00
Felix Kopp
dfd949efdd
Add stupid string.h implementation
2020-06-12 00:01:15 +02:00
Felix Kopp
049563b20e
Add arch-specific Makefiles
2020-06-10 16:59:42 +02:00
Felix Kopp
fc2d92a989
ignore .hex files
2020-06-10 16:53:20 +02:00
Felix Kopp
a1f9984630
Move development efforts to Arduino Due
2020-06-10 16:51:55 +02:00
Felix Kopp
cb93e15a44
Initial commit
2020-06-07 16:49:03 +02:00