Skip to content

Commit

Permalink
Merge pull request #78 from MikroElektronika/wip/toshiba-core-test
Browse files Browse the repository at this point in the history
Wip/toshiba core test
  • Loading branch information
StrahinjaJacimovic authored Aug 8, 2024
2 parents efc87e8 + 62bdaab commit f0f1068
Show file tree
Hide file tree
Showing 408 changed files with 86,517 additions and 2 deletions.
2 changes: 2 additions & 0 deletions ARM/gcc_clang/cmake/coreUtils.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,8 @@ function(get_mcu_vendor vendor)
set(${vendor} ti PARENT_SCOPE)
elseif(${MCU_NAME} MATCHES "^(AT)?SAM.+$")
set(${vendor} sam PARENT_SCOPE)
elseif(${MCU_NAME} MATCHES "^TMPM.+$")
set(${vendor} toshiba PARENT_SCOPE)
else()
message(FATAL_ERROR "${MCU_NAME} not supported in GCC by NECTO.")
endif()
Expand Down
3 changes: 3 additions & 0 deletions ARM/gcc_clang/cmake/toshiba/delays/tmpm4kxa.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
if(${MCU_NAME} MATCHES "^TMPM4KNF10ADFG$|^TMPM4KNFDADFG$|^TMPM4KLF10AUG$|^TMPM4KLFDAUG$|^TMPM4KNF10AFG$|^TMPM4KNFDAFG$|^TMPM4KLF10AFG$|^TMPM4KLFDAFG$|^TMPM4KNFYADFG$|^TMPM4KNFWADFG$|^TMPM4KMFYAFG$|^TMPM4KMFWAFG$|^TMPM4KLFYAUG$|^TMPM4KLFWAUG$|^TMPM4KNFYAFG$|^TMPM4KNFWAFG$|^TMPM4KLFYAFG$|^TMPM4KLFWAFG$")
list(APPEND local_list_macros "getClockValue(_clock) (_clock/1000UL/4)")
endif()
5 changes: 5 additions & 0 deletions ARM/gcc_clang/cmake/toshiba/tmpm4kxa.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
if(${MCU_NAME} MATCHES "^TMPM4KNF10ADFG$|^TMPM4KNFDADFG$|^TMPM4KLF10AUG$|^TMPM4KLFDAUG$|^TMPM4KNF10AFG$|^TMPM4KNFDAFG$|^TMPM4KLF10AFG$|^TMPM4KLFDAFG$|^TMPM4KNFYADFG$|^TMPM4KNFWADFG$|^TMPM4KMFYAFG$|^TMPM4KMFWAFG$|^TMPM4KLFYAUG$|^TMPM4KLFWAUG$|^TMPM4KNFYAFG$|^TMPM4KNFWAFG$|^TMPM4KLFYAFG$|^TMPM4KLFWAFG$")
set(${linkerScript} linker_scripts/${vendor}/${mcu_match}.ld PARENT_SCOPE)
set(${startupFile} startup/${vendor}/${mcu_match}.s PARENT_SCOPE)
list(APPEND local_list_include system/src/toshiba/tmpm4kxa/init_clock.c)
endif()
6 changes: 6 additions & 0 deletions ARM/gcc_clang/def/TMPM4KLF10AFG.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"core": "M4EF",
"delay_src_path": "delays/m4ef/__lib_delays.c",
"mcu": "TMPM4KLF10AFG",
"clock": 10
}
6 changes: 6 additions & 0 deletions ARM/gcc_clang/def/TMPM4KLF10AUG.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"core": "M4EF",
"delay_src_path": "delays/m4ef/__lib_delays.c",
"mcu": "TMPM4KLF10AUG",
"clock": 10
}
6 changes: 6 additions & 0 deletions ARM/gcc_clang/def/TMPM4KLFDAFG.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"core": "M4EF",
"delay_src_path": "delays/m4ef/__lib_delays.c",
"mcu": "TMPM4KLFDAFG",
"clock": 10
}
6 changes: 6 additions & 0 deletions ARM/gcc_clang/def/TMPM4KLFDAUG.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"core": "M4EF",
"delay_src_path": "delays/m4ef/__lib_delays.c",
"mcu": "TMPM4KLFDAUG",
"clock": 10
}
6 changes: 6 additions & 0 deletions ARM/gcc_clang/def/TMPM4KLFWAFG.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"core": "M4EF",
"delay_src_path": "delays/m4ef/__lib_delays.c",
"mcu": "TMPM4KLFWAFG",
"clock": 10
}
6 changes: 6 additions & 0 deletions ARM/gcc_clang/def/TMPM4KLFWAUG.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"core": "M4EF",
"delay_src_path": "delays/m4ef/__lib_delays.c",
"mcu": "TMPM4KLFWAUG",
"clock": 10
}
6 changes: 6 additions & 0 deletions ARM/gcc_clang/def/TMPM4KLFYAFG.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"core": "M4EF",
"delay_src_path": "delays/m4ef/__lib_delays.c",
"mcu": "TMPM4KLFYAFG",
"clock": 10
}
6 changes: 6 additions & 0 deletions ARM/gcc_clang/def/TMPM4KLFYAUG.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"core": "M4EF",
"delay_src_path": "delays/m4ef/__lib_delays.c",
"mcu": "TMPM4KLFYAUG",
"clock": 10
}
6 changes: 6 additions & 0 deletions ARM/gcc_clang/def/TMPM4KMFWAFG.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"core": "M4EF",
"delay_src_path": "delays/m4ef/__lib_delays.c",
"mcu": "TMPM4KMFWAFG",
"clock": 10
}
6 changes: 6 additions & 0 deletions ARM/gcc_clang/def/TMPM4KMFYAFG.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"core": "M4EF",
"delay_src_path": "delays/m4ef/__lib_delays.c",
"mcu": "TMPM4KMFYAFG",
"clock": 10
}
6 changes: 6 additions & 0 deletions ARM/gcc_clang/def/TMPM4KNF10ADFG.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"core": "M4EF",
"delay_src_path": "delays/m4ef/__lib_delays.c",
"mcu": "TMPM4KNF10ADFG",
"clock": 10
}
6 changes: 6 additions & 0 deletions ARM/gcc_clang/def/TMPM4KNF10AFG.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"core": "M4EF",
"delay_src_path": "delays/m4ef/__lib_delays.c",
"mcu": "TMPM4KNF10AFG",
"clock": 10
}
6 changes: 6 additions & 0 deletions ARM/gcc_clang/def/TMPM4KNFDADFG.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"core": "M4EF",
"delay_src_path": "delays/m4ef/__lib_delays.c",
"mcu": "TMPM4KNFDADFG",
"clock": 10
}
6 changes: 6 additions & 0 deletions ARM/gcc_clang/def/TMPM4KNFDAFG.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"core": "M4EF",
"delay_src_path": "delays/m4ef/__lib_delays.c",
"mcu": "TMPM4KNFDAFG",
"clock": 10
}
6 changes: 6 additions & 0 deletions ARM/gcc_clang/def/TMPM4KNFWADFG.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"core": "M4EF",
"delay_src_path": "delays/m4ef/__lib_delays.c",
"mcu": "TMPM4KNFWADFG ",
"clock": 10
}
6 changes: 6 additions & 0 deletions ARM/gcc_clang/def/TMPM4KNFWAFG.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"core": "M4EF",
"delay_src_path": "delays/m4ef/__lib_delays.c",
"mcu": "TMPM4KNFWAFG",
"clock": 10
}
6 changes: 6 additions & 0 deletions ARM/gcc_clang/def/TMPM4KNFYADFG.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"core": "M4EF",
"delay_src_path": "delays/m4ef/__lib_delays.c",
"mcu": "TMPM4KNFYADFG",
"clock": 10
}
6 changes: 6 additions & 0 deletions ARM/gcc_clang/def/TMPM4KNFYAFG.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"core": "M4EF",
"delay_src_path": "delays/m4ef/__lib_delays.c",
"mcu": "TMPM4KNFYAFG",
"clock": 10
}
3,590 changes: 3,590 additions & 0 deletions ARM/gcc_clang/def/toshiba/TMPM4KLF10AFG/mcu.h

Large diffs are not rendered by default.

3,590 changes: 3,590 additions & 0 deletions ARM/gcc_clang/def/toshiba/TMPM4KLF10AUG/mcu.h

Large diffs are not rendered by default.

3,590 changes: 3,590 additions & 0 deletions ARM/gcc_clang/def/toshiba/TMPM4KLFDAFG/mcu.h

Large diffs are not rendered by default.

3,590 changes: 3,590 additions & 0 deletions ARM/gcc_clang/def/toshiba/TMPM4KLFDAUG/mcu.h

Large diffs are not rendered by default.

3,590 changes: 3,590 additions & 0 deletions ARM/gcc_clang/def/toshiba/TMPM4KLFWAFG/mcu.h

Large diffs are not rendered by default.

3,590 changes: 3,590 additions & 0 deletions ARM/gcc_clang/def/toshiba/TMPM4KLFWAUG/mcu.h

Large diffs are not rendered by default.

3,590 changes: 3,590 additions & 0 deletions ARM/gcc_clang/def/toshiba/TMPM4KLFYAFG/mcu.h

Large diffs are not rendered by default.

3,590 changes: 3,590 additions & 0 deletions ARM/gcc_clang/def/toshiba/TMPM4KLFYAUG/mcu.h

Large diffs are not rendered by default.

3,923 changes: 3,923 additions & 0 deletions ARM/gcc_clang/def/toshiba/TMPM4KMFWAFG/mcu.h

Large diffs are not rendered by default.

3,923 changes: 3,923 additions & 0 deletions ARM/gcc_clang/def/toshiba/TMPM4KMFYAFG/mcu.h

Large diffs are not rendered by default.

4,188 changes: 4,188 additions & 0 deletions ARM/gcc_clang/def/toshiba/TMPM4KNF10ADFG/mcu.h

Large diffs are not rendered by default.

4,188 changes: 4,188 additions & 0 deletions ARM/gcc_clang/def/toshiba/TMPM4KNF10AFG/mcu.h

Large diffs are not rendered by default.

4,188 changes: 4,188 additions & 0 deletions ARM/gcc_clang/def/toshiba/TMPM4KNFDADFG/mcu.h

Large diffs are not rendered by default.

4,188 changes: 4,188 additions & 0 deletions ARM/gcc_clang/def/toshiba/TMPM4KNFDAFG/mcu.h

Large diffs are not rendered by default.

4,188 changes: 4,188 additions & 0 deletions ARM/gcc_clang/def/toshiba/TMPM4KNFWADFG/mcu.h

Large diffs are not rendered by default.

4,188 changes: 4,188 additions & 0 deletions ARM/gcc_clang/def/toshiba/TMPM4KNFWAFG/mcu.h

Large diffs are not rendered by default.

4,188 changes: 4,188 additions & 0 deletions ARM/gcc_clang/def/toshiba/TMPM4KNFYADFG/mcu.h

Large diffs are not rendered by default.

4,188 changes: 4,188 additions & 0 deletions ARM/gcc_clang/def/toshiba/TMPM4KNFYAFG/mcu.h

Large diffs are not rendered by default.

4 changes: 4 additions & 0 deletions ARM/gcc_clang/delays/m0+/delays.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,16 @@ void __attribute__( ( noinline, section( ".RamFunc" ) ) ) Delay_Cyc( uint32_t cy

void __attribute__( ( noinline ) ) Delay_us( uint32_t time_us )
{
#ifdef FOSC_KHZ_VALUE_DEFINED
Delay_Cyc( ( time_us * getClockValue( FOSC_KHZ_VALUE ) ) - ( getClockValue( FOSC_KHZ_VALUE ) / 2 ) );
#endif
}

void __attribute__( ( noinline ) ) Delay_ms( uint32_t Time_ms )
{
#ifdef FOSC_KHZ_VALUE_DEFINED
Delay_Cyc( Time_ms * 1000ul * getClockValue( FOSC_KHZ_VALUE ) );
#endif
}

void __attribute__( ( noinline ) ) Delay_Advanced_ms( uint32_t Time_ms, uint32_t Current_Fosc_kHz )
Expand Down
4 changes: 4 additions & 0 deletions ARM/gcc_clang/delays/m0/delays.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,16 @@ void __attribute__( ( noinline, section( ".RamFunc" ) ) ) Delay_Cyc( uint32_t cy

void __attribute__( ( noinline ) ) Delay_us( uint32_t time_us )
{
#ifdef FOSC_KHZ_VALUE_DEFINED
Delay_Cyc( ( time_us * getClockValue( FOSC_KHZ_VALUE ) ) - ( getClockValue( FOSC_KHZ_VALUE ) / 2 ) );
#endif
}

void __attribute__( ( noinline ) ) Delay_ms( uint32_t Time_ms )
{
#ifdef FOSC_KHZ_VALUE_DEFINED
Delay_Cyc( Time_ms * 1000ul * getClockValue( FOSC_KHZ_VALUE ) );
#endif
}

void __attribute__( ( noinline ) ) Delay_Advanced_ms( uint32_t Time_ms, uint32_t Current_Fosc_kHz )
Expand Down
4 changes: 4 additions & 0 deletions ARM/gcc_clang/delays/m3/delays.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,16 @@ void __attribute__( ( noinline, section( ".RamFunc" ) ) ) Delay_Cyc( uint32_t cy

void __attribute__( ( noinline ) ) Delay_us( uint32_t time_us )
{
#ifdef FOSC_KHZ_VALUE_DEFINED
Delay_Cyc( ( time_us * getClockValue( FOSC_KHZ_VALUE ) ) - ( getClockValue( FOSC_KHZ_VALUE ) / 2 ) );
#endif
}

void __attribute__( ( noinline ) ) Delay_ms( uint32_t Time_ms )
{
#ifdef FOSC_KHZ_VALUE_DEFINED
Delay_Cyc( Time_ms * 1000ul * getClockValue( FOSC_KHZ_VALUE ) );
#endif
}

void __attribute__( ( noinline ) ) Delay_Advanced_ms( uint32_t Time_ms, uint32_t Current_Fosc_kHz )
Expand Down
4 changes: 4 additions & 0 deletions ARM/gcc_clang/delays/m4/delays.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,16 @@ void __attribute__( ( noinline, section( ".RamFunc" ) ) ) Delay_Cyc( uint32_t cy

void __attribute__( ( noinline ) ) Delay_us( uint32_t time_us )
{
#ifdef FOSC_KHZ_VALUE_DEFINED
Delay_Cyc( ( time_us * getClockValue( FOSC_KHZ_VALUE ) ) - ( getClockValue( FOSC_KHZ_VALUE ) / 2 ) );
#endif
}

void __attribute__( ( noinline ) ) Delay_ms( uint32_t Time_ms )
{
#ifdef FOSC_KHZ_VALUE_DEFINED
Delay_Cyc( Time_ms * 1000ul * getClockValue( FOSC_KHZ_VALUE ) );
#endif
}

void __attribute__( ( noinline ) ) Delay_Advanced_ms( uint32_t Time_ms, uint32_t Current_Fosc_kHz )
Expand Down
4 changes: 4 additions & 0 deletions ARM/gcc_clang/delays/m4dsp/delays.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,16 @@ void __attribute__( ( noinline, section( ".RamFunc" ) ) ) Delay_Cyc( uint32_t cy

void __attribute__( ( noinline ) ) Delay_us( uint32_t time_us )
{
#ifdef FOSC_KHZ_VALUE_DEFINED
Delay_Cyc( ( time_us * getClockValue( FOSC_KHZ_VALUE ) ) - ( getClockValue( FOSC_KHZ_VALUE ) / 2 ) );
#endif
}

void __attribute__( ( noinline ) ) Delay_ms( uint32_t Time_ms )
{
#ifdef FOSC_KHZ_VALUE_DEFINED
Delay_Cyc( Time_ms * 1000ul * getClockValue( FOSC_KHZ_VALUE ) );
#endif
}

void __attribute__( ( noinline ) ) Delay_Advanced_ms( uint32_t Time_ms, uint32_t Current_Fosc_kHz )
Expand Down
4 changes: 4 additions & 0 deletions ARM/gcc_clang/delays/m4ef/delays.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,16 @@ void __attribute__( ( noinline, section( ".RamFunc" ) ) ) Delay_Cyc( uint32_t cy

void __attribute__( ( noinline ) ) Delay_us( uint32_t time_us )
{
#ifdef FOSC_KHZ_VALUE_DEFINED
Delay_Cyc( ( time_us * getClockValue( FOSC_KHZ_VALUE ) ) - ( getClockValue( FOSC_KHZ_VALUE ) / 2 ) );
#endif
}

void __attribute__( ( noinline ) ) Delay_ms( uint32_t Time_ms )
{
#ifdef FOSC_KHZ_VALUE_DEFINED
Delay_Cyc( Time_ms * 1000ul * getClockValue( FOSC_KHZ_VALUE ) );
#endif
}

void __attribute__( ( noinline ) ) Delay_Advanced_ms( uint32_t Time_ms, uint32_t Current_Fosc_kHz )
Expand Down
4 changes: 4 additions & 0 deletions ARM/gcc_clang/delays/m7/delays.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,16 @@ void __attribute__( ( noinline, section( ".RamFunc" ) ) ) Delay_Cyc( uint32_t cy

void __attribute__( ( noinline ) ) Delay_us( uint32_t time_us )
{
#ifdef FOSC_KHZ_VALUE_DEFINED
Delay_Cyc( ( time_us * getClockValue( FOSC_KHZ_VALUE ) ) - ( getClockValue( FOSC_KHZ_VALUE ) / 2 ) );
#endif
}

void __attribute__( ( noinline ) ) Delay_ms( uint32_t Time_ms )
{
#ifdef FOSC_KHZ_VALUE_DEFINED
Delay_Cyc( Time_ms * 1000ul * getClockValue( FOSC_KHZ_VALUE ) );
#endif
}

void __attribute__( ( noinline ) ) Delay_Advanced_ms( uint32_t Time_ms, uint32_t Current_Fosc_kHz )
Expand Down
Loading

0 comments on commit f0f1068

Please sign in to comment.