Skip to content

Commit 4f80d23

Browse files
committed
Provide missing stubs for ARMClang build
1 parent 3854de3 commit 4f80d23

File tree

2 files changed

+34
-0
lines changed

2 files changed

+34
-0
lines changed

targets/TARGET_STM/TARGET_STM32H7/TARGET_STM32H747xI/TARGET_PORTENTA_H7/COMPONENT_WHD/port/cyhal_gpio.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,3 +97,8 @@ void cyhal_gpio_enable_event(cyhal_gpio_t pin, cyhal_gpio_event_t event, uint8_t
9797
delete oob_irq;
9898
}
9999
}
100+
101+
void cyhal_gpio_free(cyhal_gpio_t pin)
102+
{
103+
// Do nothing
104+
}
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
/*
2+
* Copyright 2020 Arduino SA
3+
* SPDX-License-Identifier: Apache-2.0
4+
*
5+
* Licensed under the Apache License, Version 2.0 (the "License");
6+
* you may not use this file except in compliance with the License.
7+
* You may obtain a copy of the License at
8+
*
9+
* http://www.apache.org/licenses/LICENSE-2.0
10+
*
11+
* Unless required by applicable law or agreed to in writing, software
12+
* distributed under the License is distributed on an "AS IS" BASIS,
13+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
* See the License for the specific language governing permissions and
15+
* limitations under the License.
16+
*/
17+
18+
/** @file
19+
* Provides stubs for the WHD driver needed by ARMClang
20+
*/
21+
22+
#include <stdio.h>
23+
#include <string.h>
24+
#include "cyhal_spi.h"
25+
26+
cy_rslt_t cyhal_spi_transfer(cyhal_spi_t *obj, const uint8_t *tx, size_t tx_length, uint8_t *rx, size_t rx_length, uint8_t write_fill)
27+
{
28+
// Do nothing
29+
}

0 commit comments

Comments
 (0)