Skip to content

Commit

Permalink
Removed unimplemented delay guards
Browse files Browse the repository at this point in the history
  • Loading branch information
StrahinjaJacimovic committed Aug 13, 2024
1 parent f0f1068 commit beaa87a
Show file tree
Hide file tree
Showing 7 changed files with 28 additions and 28 deletions.
8 changes: 4 additions & 4 deletions ARM/gcc_clang/delays/m0+/delays.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,16 +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
// #ifdef FOSC_KHZ_VALUE_DEFINED // TODO - return in next NECTO update
Delay_Cyc( ( time_us * getClockValue( FOSC_KHZ_VALUE ) ) - ( getClockValue( FOSC_KHZ_VALUE ) / 2 ) );
#endif
// #endif
}

void __attribute__( ( noinline ) ) Delay_ms( uint32_t Time_ms )
{
#ifdef FOSC_KHZ_VALUE_DEFINED
// #ifdef FOSC_KHZ_VALUE_DEFINED // TODO - return in next NECTO update
Delay_Cyc( Time_ms * 1000ul * getClockValue( FOSC_KHZ_VALUE ) );
#endif
// #endif
}

void __attribute__( ( noinline ) ) Delay_Advanced_ms( uint32_t Time_ms, uint32_t Current_Fosc_kHz )
Expand Down
8 changes: 4 additions & 4 deletions ARM/gcc_clang/delays/m0/delays.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,16 +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
// #ifdef FOSC_KHZ_VALUE_DEFINED // TODO - return in next NECTO update
Delay_Cyc( ( time_us * getClockValue( FOSC_KHZ_VALUE ) ) - ( getClockValue( FOSC_KHZ_VALUE ) / 2 ) );
#endif
// #endif
}

void __attribute__( ( noinline ) ) Delay_ms( uint32_t Time_ms )
{
#ifdef FOSC_KHZ_VALUE_DEFINED
// #ifdef FOSC_KHZ_VALUE_DEFINED // TODO - return in next NECTO update
Delay_Cyc( Time_ms * 1000ul * getClockValue( FOSC_KHZ_VALUE ) );
#endif
// #endif
}

void __attribute__( ( noinline ) ) Delay_Advanced_ms( uint32_t Time_ms, uint32_t Current_Fosc_kHz )
Expand Down
8 changes: 4 additions & 4 deletions ARM/gcc_clang/delays/m3/delays.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +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
// #ifdef FOSC_KHZ_VALUE_DEFINED // TODO - return in next NECTO update
Delay_Cyc( ( time_us * getClockValue( FOSC_KHZ_VALUE ) ) - ( getClockValue( FOSC_KHZ_VALUE ) / 2 ) );
#endif
// #endif
}

void __attribute__( ( noinline ) ) Delay_ms( uint32_t Time_ms )
{
#ifdef FOSC_KHZ_VALUE_DEFINED
// #ifdef FOSC_KHZ_VALUE_DEFINED // TODO - return in next NECTO update
Delay_Cyc( Time_ms * 1000ul * getClockValue( FOSC_KHZ_VALUE ) );
#endif
// #endif
}

void __attribute__( ( noinline ) ) Delay_Advanced_ms( uint32_t Time_ms, uint32_t Current_Fosc_kHz )
Expand Down
8 changes: 4 additions & 4 deletions ARM/gcc_clang/delays/m4/delays.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +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
// #ifdef FOSC_KHZ_VALUE_DEFINED // TODO - return in next NECTO update
Delay_Cyc( ( time_us * getClockValue( FOSC_KHZ_VALUE ) ) - ( getClockValue( FOSC_KHZ_VALUE ) / 2 ) );
#endif
// #endif
}

void __attribute__( ( noinline ) ) Delay_ms( uint32_t Time_ms )
{
#ifdef FOSC_KHZ_VALUE_DEFINED
// #ifdef FOSC_KHZ_VALUE_DEFINED // TODO - return in next NECTO update
Delay_Cyc( Time_ms * 1000ul * getClockValue( FOSC_KHZ_VALUE ) );
#endif
// #endif
}

void __attribute__( ( noinline ) ) Delay_Advanced_ms( uint32_t Time_ms, uint32_t Current_Fosc_kHz )
Expand Down
8 changes: 4 additions & 4 deletions ARM/gcc_clang/delays/m4dsp/delays.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +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
// #ifdef FOSC_KHZ_VALUE_DEFINED // TODO - return in next NECTO update
Delay_Cyc( ( time_us * getClockValue( FOSC_KHZ_VALUE ) ) - ( getClockValue( FOSC_KHZ_VALUE ) / 2 ) );
#endif
// #endif
}

void __attribute__( ( noinline ) ) Delay_ms( uint32_t Time_ms )
{
#ifdef FOSC_KHZ_VALUE_DEFINED
// #ifdef FOSC_KHZ_VALUE_DEFINED // TODO - return in next NECTO update
Delay_Cyc( Time_ms * 1000ul * getClockValue( FOSC_KHZ_VALUE ) );
#endif
// #endif
}

void __attribute__( ( noinline ) ) Delay_Advanced_ms( uint32_t Time_ms, uint32_t Current_Fosc_kHz )
Expand Down
8 changes: 4 additions & 4 deletions ARM/gcc_clang/delays/m4ef/delays.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +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
// #ifdef FOSC_KHZ_VALUE_DEFINED // TODO - return in next NECTO update
Delay_Cyc( ( time_us * getClockValue( FOSC_KHZ_VALUE ) ) - ( getClockValue( FOSC_KHZ_VALUE ) / 2 ) );
#endif
// #endif
}

void __attribute__( ( noinline ) ) Delay_ms( uint32_t Time_ms )
{
#ifdef FOSC_KHZ_VALUE_DEFINED
// #ifdef FOSC_KHZ_VALUE_DEFINED // TODO - return in next NECTO update
Delay_Cyc( Time_ms * 1000ul * getClockValue( FOSC_KHZ_VALUE ) );
#endif
// #endif
}

void __attribute__( ( noinline ) ) Delay_Advanced_ms( uint32_t Time_ms, uint32_t Current_Fosc_kHz )
Expand Down
8 changes: 4 additions & 4 deletions ARM/gcc_clang/delays/m7/delays.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +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
// #ifdef FOSC_KHZ_VALUE_DEFINED // TODO - return in next NECTO update
Delay_Cyc( ( time_us * getClockValue( FOSC_KHZ_VALUE ) ) - ( getClockValue( FOSC_KHZ_VALUE ) / 2 ) );
#endif
// #endif
}

void __attribute__( ( noinline ) ) Delay_ms( uint32_t Time_ms )
{
#ifdef FOSC_KHZ_VALUE_DEFINED
// #ifdef FOSC_KHZ_VALUE_DEFINED // TODO - return in next NECTO update
Delay_Cyc( Time_ms * 1000ul * getClockValue( FOSC_KHZ_VALUE ) );
#endif
// #endif
}

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

0 comments on commit beaa87a

Please sign in to comment.