Commit Graph

2 Commits

Author SHA1 Message Date
Scott James Remnant
0790a8147f pw_sys_io: rename pw_sys_io_Init functions
Since pw_sys_io_Init() is not part of the pw_sys_io facade, and the
backend-specific functions are only called from target-specific places,
rename the backend-specific functions to include the backend as part of
the name.

Change-Id: I42c0eb5e8932ee73707db574847e2aed58517132
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/66862
Commit-Queue: Scott James Remnant <keybuk@google.com>
Pigweed-Auto-Submit: Scott James Remnant <keybuk@google.com>
Reviewed-by: Ewout van Bekkum <ewout@google.com>
2021-10-29 18:35:55 +00:00
Anthony DiGirolamo
9147aa0128 Arduino: main function wrapper
- Remove simple_printing_main_arduino.cc which used loop() and setup()
- Rename main() in arduino core sources to ArduinoMain()
- Define setup() and loop() in arduino_main_wrapper.cc and call pigweed
  main() in setup() after pw_arduino_Init();
- Switch to pw_unit_test_MAIN = "$dir_pw_unit_test:simple_printing_main"
  in //targets/arduino/target_toolchains.gni
- Add pw_arduino_build/public/pw_arduino_build/init.h facade
- Documentation!
- Fix bug in arduinobuilder.py when using an arduino core which uses
  only one sub-core folder.

Change-Id: I94630b25f6c914ef46bdb9c32e6ddb5154690045
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/18640
Reviewed-by: Armando Montanez <amontanez@google.com>
Commit-Queue: Anthony DiGirolamo <tonymd@google.com>
2020-09-25 23:05:41 +00:00