Skip to content

Commit 40da43e

Browse files
Start on Arduino Giga
1 parent 8a773c2 commit 40da43e

File tree

8 files changed

+577
-3
lines changed

8 files changed

+577
-3
lines changed

connectivity/lwipstack/mbed_lib.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@
222222
"MIMXRT105X": {
223223
"mem-size": 36560
224224
},
225-
"PORTENTA_H7": {
225+
"STM32H747_ARDUINO": {
226226
"mem-size": 16000
227227
},
228228
"FVP_MPS2_M3": {

targets/TARGET_NORDIC/TARGET_NRF5x/TARGET_NRF52/TARGET_MCU_NRF52832/TARGET_ARDUINO_NICLA_SENSE_ME/device.h

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
/* mbed Microcontroller Library
22
* Copyright (c) 2006-2013 ARM Limited
3+
=======
4+
/*
5+
* Copyright 2024 Arduino SA
36
* SPDX-License-Identifier: Apache-2.0
47
*
58
* Licensed under the Apache License, Version 2.0 (the "License");
@@ -19,4 +22,23 @@
1922

2023
#include "objects.h"
2124

22-
#endif
25+
#endif
26+
=======
27+
#include "cyhal_system.h"
28+
29+
#include "mbed_critical.h"
30+
31+
uint32_t cyhal_system_critical_section_enter(void)
32+
{
33+
bool were_interrupts_enabled = !core_util_in_critical_section();
34+
35+
core_util_critical_section_enter();
36+
37+
return were_interrupts_enabled;
38+
}
39+
40+
void cyhal_system_critical_section_exit(uint32_t old_state)
41+
{
42+
(void)old_state;
43+
core_util_critical_section_exit();
44+
}

targets/TARGET_STM/TARGET_STM32H7/TARGET_STM32H747xI/TARGET_STM32H747_ARDUINO/CMakeLists.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,5 @@ target_link_libraries(mbed-stm32h747-arduino INTERFACE mbed-stm32h747xi-cm7)
88
target_sources(mbed-stm32h747-arduino INTERFACE
99
PeripheralPins.c)
1010

11-
add_subdirectory(TARGET_ARDUINO_PORTENTA_H7)
11+
add_subdirectory(TARGET_ARDUINO_PORTENTA_H7)
12+
add_subdirectory(TARGET_ARDUINO_GIGA)
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
add_library(mbed-arduino-giga-cm7 INTERFACE)
2+
3+
target_include_directories(mbed-arduino-giga-cm7
4+
INTERFACE
5+
.
6+
)
7+
8+
target_link_libraries(mbed-arduino-giga-cm7 INTERFACE mbed-stm32h747-arduino)

0 commit comments

Comments
 (0)