SFUSatClub / obc-firmware

Firmware for our cubesat's On-Board Computer using the TMS570LS0432 and FreeRTOS v9
16 stars 3 forks source link

Move as much from sys_main.c to sfu_task_main.c as we can #53

Closed liquiddandruff closed 6 years ago

liquiddandruff commented 6 years ago

Each platform has their own sys_main.c, duplicated with the same code.

We should see if we can move this initialization immediately inside vMainTask, before any other task is created (so before vMainTask can be pre-empted). I believe this has been attempted before, but due to reasons (e.g., desires to print to serial on bootup/MPU permission errors preventing certain hardware initialization to work when in a FreeRTOS task), necessitated adding these initialization to the sys_main.c.

Let's revisit this and see what can be improved.

richarthurs commented 6 years ago

@liquiddandruff I think we can close this now, eh?

liquiddandruff commented 6 years ago

That's right, thanks