third_party.pigweed.src/targets/arduino/init.cc
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

23 lines
918 B
C++

// Copyright 2020 The Pigweed Authors
//
// Licensed under the Apache License, Version 2.0 (the "License"); you may not
// use this file except in compliance with the License. You may obtain a copy of
// the License at
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
// WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
// License for the specific language governing permissions and limitations under
// the License.
#include "pw_arduino_build/init.h"
#include "pw_sys_io_arduino/init.h"
// Arduino target specific init. For Pigweed, this calls pw_sys_io's init. User
// projects may chose to provide something different if they need more pre-main
// init functionality.
extern "C" void pw_arduino_Init() { pw_sys_io_arduino_Init(); }