-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
16 changed files
with
2,010 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
set(CMAKE_SYSTEM_PROCESSOR cortex-m85 CACHE INTERNAL "System Processor") | ||
set(MCU_VARIANT ra8m1) | ||
|
||
set(JLINK_DEVICE R7FA8M1AH) | ||
#set(JLINK_OPTION "-USB 001083115236") | ||
|
||
function(update_board TARGET) | ||
endfunction() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
/* | ||
* The MIT License (MIT) | ||
* | ||
* Copyright (c) 2023 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_STATE_ON 1 | ||
#define BUTTON_STATE_ACTIVE 0 | ||
|
||
|
||
#ifdef __cplusplus | ||
} | ||
#endif | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
/* generated configuration header file - do not edit */ | ||
#ifndef BSP_CFG_H_ | ||
#define BSP_CFG_H_ | ||
#ifdef __cplusplus | ||
extern "C" { | ||
#endif | ||
|
||
#include "bsp_clock_cfg.h" | ||
#include "bsp_mcu_family_cfg.h" | ||
#include "board_cfg.h" | ||
#define RA_NOT_DEFINED 0 | ||
#ifndef BSP_CFG_RTOS | ||
#if (RA_NOT_DEFINED) != (RA_NOT_DEFINED) | ||
#define BSP_CFG_RTOS (2) | ||
#elif (RA_NOT_DEFINED) != (RA_NOT_DEFINED) | ||
#define BSP_CFG_RTOS (1) | ||
#else | ||
#define BSP_CFG_RTOS (0) | ||
#endif | ||
#endif | ||
#ifndef BSP_CFG_RTC_USED | ||
#define BSP_CFG_RTC_USED (RA_NOT_DEFINED) | ||
#endif | ||
#undef RA_NOT_DEFINED | ||
#if defined(_RA_BOOT_IMAGE) | ||
#define BSP_CFG_BOOT_IMAGE (1) | ||
#endif | ||
#define BSP_CFG_MCU_VCC_MV (3300) | ||
#define BSP_CFG_STACK_MAIN_BYTES (0x1000) | ||
#define BSP_CFG_HEAP_BYTES (0x1000) | ||
#define BSP_CFG_PARAM_CHECKING_ENABLE (0) | ||
#define BSP_CFG_ASSERT (0) | ||
#define BSP_CFG_ERROR_LOG (0) | ||
|
||
#define BSP_CFG_PFS_PROTECT ((1)) | ||
|
||
#define BSP_CFG_C_RUNTIME_INIT ((1)) | ||
#define BSP_CFG_EARLY_INIT ((0)) | ||
|
||
#define BSP_CFG_STARTUP_CLOCK_REG_NOT_RESET ((0)) | ||
|
||
#ifndef BSP_CLOCK_CFG_MAIN_OSC_POPULATED | ||
#define BSP_CLOCK_CFG_MAIN_OSC_POPULATED (1) | ||
#endif | ||
|
||
#ifndef BSP_CLOCK_CFG_MAIN_OSC_CLOCK_SOURCE | ||
#define BSP_CLOCK_CFG_MAIN_OSC_CLOCK_SOURCE (0) | ||
#endif | ||
#ifndef BSP_CLOCK_CFG_SUBCLOCK_DRIVE | ||
#define BSP_CLOCK_CFG_SUBCLOCK_DRIVE (0) | ||
#endif | ||
#ifndef BSP_CLOCK_CFG_SUBCLOCK_POPULATED | ||
#define BSP_CLOCK_CFG_SUBCLOCK_POPULATED (1) | ||
#endif | ||
#ifndef BSP_CLOCK_CFG_SUBCLOCK_STABILIZATION_MS | ||
#define BSP_CLOCK_CFG_SUBCLOCK_STABILIZATION_MS 1000 | ||
#endif | ||
|
||
#ifdef __cplusplus | ||
} | ||
#endif | ||
#endif /* BSP_CFG_H_ */ |
5 changes: 5 additions & 0 deletions
5
hw/bsp/ra/boards/ra8m1_ek/ra_cfg/fsp_cfg/bsp/bsp_mcu_device_cfg.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
/* generated configuration header file - do not edit */ | ||
#ifndef BSP_MCU_DEVICE_CFG_H_ | ||
#define BSP_MCU_DEVICE_CFG_H_ | ||
#define BSP_CFG_MCU_PART_SERIES (8) | ||
#endif /* BSP_MCU_DEVICE_CFG_H_ */ |
11 changes: 11 additions & 0 deletions
11
hw/bsp/ra/boards/ra8m1_ek/ra_cfg/fsp_cfg/bsp/bsp_mcu_device_pn_cfg.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
/* generated configuration header file - do not edit */ | ||
#ifndef BSP_MCU_DEVICE_PN_CFG_H_ | ||
#define BSP_MCU_DEVICE_PN_CFG_H_ | ||
#define BSP_MCU_R7FA8M1AHECBD | ||
#define BSP_MCU_FEATURE_SET ('A') | ||
#define BSP_ROM_SIZE_BYTES (2064384) | ||
#define BSP_RAM_SIZE_BYTES (917504) | ||
#define BSP_DATA_FLASH_SIZE_BYTES (12288) | ||
#define BSP_PACKAGE_BGA | ||
#define BSP_PACKAGE_PINS (224) | ||
#endif /* BSP_MCU_DEVICE_PN_CFG_H_ */ |
Oops, something went wrong.