Brian Starkey
6efe1383ea
Add LICENSE and README
2 years ago
Brian Starkey
321c246425
Move WiFi credentials to variables
No more creds.c
Set PICOWOTA_WIFI_SSID/PICOWOTA_WIFI_PASS environment variables or
CMake variables.
2 years ago
Brian Starkey
dcda2194f2
picowota_reboot: Add missing cmsis_core dependency
2 years ago
Brian Starkey
8fd36b7096
Add ability to build combined images
2 years ago
Brian Starkey
9655426b1c
Check in the creds file
May regret this!
2 years ago
Brian Starkey
ac21d218d6
Move reboot functionality to a separate library
This will be required for including into apps, so break it out.
2 years ago
Brian Starkey
6347c8e02c
Jump to app if bootloader entry not requested
2 years ago
Brian Starkey
a089d5d452
Move the disjoint operations to a queue
2 years ago
Brian Starkey
9bdc2fded0
Fix some warnings and optimise for size
Looks like removing printf drops about 10kB.
2 years ago
Brian Starkey
f0c0f516f5
main: Wrap flash commands in critical section and enable them
It works! Unceremoniously bailing out on the WiFi driver without
shutting it down might not be great - handling the "GO" and "REBOOT"
commands gracefully in the main loop would probably be better.
But hey, it works!
2 years ago
Brian Starkey
8a71b096b9
tcp_comm: Rework receive handling
Now whatever arrives will get stored, and then used up by as many stages
as possible.
2 years ago
Brian Starkey
a57cac28f1
Port over all the other commands
...but not it's obvious - we can't assume each packet nicely
encapsulates a single stage, it might all arrive in one go.
So the current "recv" implementation can't work. d'oh!
2 years ago
Brian Starkey
fc55e221d3
tcp_comm: Make RX length checking more strict
Don't allow data which is too long.
2 years ago
Brian Starkey
e0da727e96
Factor out the TCP code
Now isolated for easy re-use. Should split it into a separate library.
2 years ago
Brian Starkey
3bdad9eb2b
Implement "comm", a fairly close port of M0o+'s version
2 years ago
Brian Starkey
f62b584605
Refactor the example a little
2 years ago
Brian Starkey
04bd83cae5
Initial basic TCP server
Based on the Pi example
2 years ago
Brian Starkey
0166ad5f0c
Initial empty commit
2 years ago