initial commit

This commit is contained in:
shell committed 2026-10-11 21:48:59 +08:00
commit b44ce7bd77
2716 files changed
+559005

No files matched your search

@@ -0,0 +1,8 @@
set(EFM32_FAMILY efm32gg12b)
set(EFM32_MCU EFM32GG12B810F1024GM64)
set(JLINK_DEVICE ${EFM32_MCU})
function(update_board TARGET)
target_compile_definitions(${TARGET} PUBLIC
)
endfunction()
@@ -0,0 +1,49 @@
/*
* The MIT License (MIT)
*
* Copyright (c) 2021 Rafael Silva (@perigoso)
* Copyright (c) 2021 Ha Thach (tinyusb.org)
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
*
* This file is part of the TinyUSB stack.
*/
#ifndef BOARD_H_
#define BOARD_H_
#ifdef __cplusplus
extern "C" {
#endif
#define LED_PORT 0 // A
#define LED_PIN_R 12 // 12
#define LED_PIN_B 13 // 13
#define LED_PIN_G 14 // 14
#define LED_STATE_ON 0 // active-low
#define BUTTON_PORT 3 // D
#define BUTTON_PIN 5 // 5
#define BUTTON_STATE_ACTIVE 0 // active-low
#ifdef __cplusplus
}
#endif
#endif
@@ -0,0 +1,9 @@
EFM32_FAMILY = efm32gg12b
EFM32_MCU = EFM32GG12B810F1024GM64
JLINK_DEVICE = $(EFM32_MCU)
CFLAGS += \
-D$(EFM32_MCU) \
# For flash-jlink target
flash: flash-jlink