Skip to content

Commit

Permalink
[updated] RL78/G15_FPB related files for Arduino library.
Browse files Browse the repository at this point in the history
  • Loading branch information
MikiyaKobayashi committed Jan 31, 2025
1 parent d5b7a94 commit b20c9d8
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 15 deletions.
14 changes: 0 additions & 14 deletions cores/rl78g15/Arduino.h
Original file line number Diff line number Diff line change
Expand Up @@ -180,13 +180,6 @@ long random(long howsmall, long howbig);

#include "pins_variant.h"

// undefine stdlib's abs if encountered
#ifdef abs
#undef abs
#endif // abs

#define abs(x) ((x)>0?(x):-(x))

#ifndef configCPU_CLOCK_HZ
#define configCPU_CLOCK_HZ (32000000) //!< CPUの動作周波数(RTOS未使用時に定義)
#endif
Expand All @@ -195,16 +188,9 @@ long random(long howsmall, long howbig);
#define EXTERNAL 0x01
#define INTERNAL 0x02

// undefine stdlib's abs if encountered
#ifdef abs
#undef abs
#endif

#define min(a,b) ((a)<(b)?(a):(b))
#define max(a,b) ((a)>(b)?(a):(b))
#define abs(x) ((x)>0?(x):-(x))
#define constrain(amt,low,high) ((amt)<(low)?(low):((amt)>(high)?(high):(amt)))
#define round(x) ((x)>=0?(long)((x)+0.5):(long)((x)-0.5))
#define radians(deg) ((deg)*DEG_TO_RAD)
#define degrees(rad) ((rad)*RAD_TO_DEG)
#define sq(x) ((x)*(x))
Expand Down
2 changes: 1 addition & 1 deletion platform.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# For more info:
# LLVM Prototype Package for Tools Test
name=Renesas RL78/G15
version=1.2.1
version=1.2.2

# ---------------------
# Compile variables
Expand Down

0 comments on commit b20c9d8

Please sign in to comment.