further semihosting support

This commit is contained in:
gabriel committed 2024-04-30 08:48:44 +02:00
1 parent e83f7996bc
commit 9aaf428620
9 files changed
+57 -32

No files matched your search

+2 -2
View File
@@ -17,10 +17,10 @@ void write_hex(int fd, uint32_t hex);
void __wrap_exit(int code)
{
#if defined(SEMIHOSTING)
/*#if defined(SEMIHOSTING)
sh_exit();
return;
#endif
#endif*/
//volatile uint32_t* leds = (uint32_t*) (GPIO_BASE_ADDR + GPIO_OUT_OFFSET);
const char message[] = "\nProgam has exited with code:";
//*leds = (~(code));