lf-lang / reactor-uc

A lightweight reactor runtime targeted at resource-constrained embedded systems
BSD 2-Clause "Simplified" License
2 stars 2 forks source link

Add Platform abstraction with initial support for Posix #8

Closed erlingrj closed 1 month ago

erlingrj commented 1 month ago

Here a Platform abstraction is added (@tanneberger this is what you call 'hardware' in your PR, I think platform is a more appropriate name)

github-actions[bot] commented 1 month ago

Coverage after merging platform into main will be

83.87%

Coverage Report
FileStmtsBranchesFuncsLinesUncovered Lines
src
   builtin_triggers.c100%100%100%100%
   connection.c69.57%38.46%100%80%10–11, 11, 11–12, 14, 16–17, 22, 27, 29, 5, 7, 7
   environment.c81.48%100%55.56%86.67%33–36, 38–39
   logical_action.c100%100%100%100%
   port.c92.86%75%100%96.55%31, 35, 7
   queues.c71.61%52%91.67%79.57%100, 17–18, 22–24, 24, 24–25, 30–31, 31, 31, 33–36, 36, 36, 36, 36–37, 39, 39, 39, 39, 39–40, 44, 44, 44–46, 48, 54–55, 71–75, 89, 94
   reaction.c83.58%68.18%100%90.24%23–26, 26, 26–27, 36, 38, 43, 7
   reactor.c74.55%50%100%79.49%11, 16–17, 17, 17–18, 20, 28, 31–32, 32, 32–33, 35
   scheduler.c97.89%90.91%100%100%72–73
   tag.c29.47%21.74%40%36.36%21, 23, 26–27, 27, 27, 27, 27–28, 30, 30, 30, 30, 30–31, 33, 33, 33–34, 36–37, 37, 37–38, 40, 40, 40, 40, 40–41, 43, 43, 43, 43, 43–44, 46, 56–57, 59–60, 66, 66–67, 70–71, 74, 78, 86–88, 88, 88, 88, 88, 88, 88, 88, 88, 88, 88–90, 92
   timer.c100%100%100%100%
   trigger.c94.44%50%100%100%11, 16
src/platform
   platform_posix.c81.82%50%75%86.96%20–21, 34–35