使用make -f Makeboot 来使用gcc编译

添加 DMod_FireBusReadDatasV2_RC 函数
This commit is contained in:
ranchuan
2023-11-01 18:10:35 +08:00
parent 570476d79b
commit ddeec88a89
14 changed files with 261 additions and 41 deletions

View File

@@ -220,11 +220,21 @@ void cpy4byte(uint32_t *dst,uint32_t *src,int num_4byte)
#ifdef __GNUC__
/* With GCC, small printf (option LD Linker->Libraries->Small printf
set to 'Yes') calls __io_putchar() */
#define PUTCHAR_PROTOTYPE int __io_putchar(int ch)
#else
#define PUTCHAR_PROTOTYPE int fputc(int ch, FILE *f)
#pragma import(__use_no_semihosting)
#endif /* __GNUC__ */
#pragma import(__use_no_semihosting)
struct __FILE
{
int handle;
@@ -237,7 +247,7 @@ void _sys_exit(int x)
x = x;
}
int fputc(int ch, FILE *f)
PUTCHAR_PROTOTYPE
{
// SEGGER_RTT_PutChar(0,ch);
return ch;