FreeRTOS port on GAP8/RISC-V
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
gap8/src/driver/gap_io.c File Reference

Macros

#define PRINTF_BUFFER_SIZE
 
#define PRINTF_TAS_OFFSET
 
#define PRINTF_LOCK_IRQN
 

Functions

static uint32_t __is_irq_mode ()
 
 __attribute__ ((noinline))
 
static void tfp_putc (void *data, char c)
 
void _putchar (char character)
 
int puts (const char *s)
 
void system_exit_printf_flush ()
 Flush printf buffer before exit. More...
 

Variables

uint8_t g_freertos_scheduler_started
 
SemaphoreHandle_t g_printf_mutex
 
char __printf_lock_ptr
 
volatile uint32_t * g_lock
 
volatile uint32_t * g_unlock
 

Macro Definition Documentation

#define PRINTF_BUFFER_SIZE
#define PRINTF_LOCK_IRQN

Referenced by __attribute__().

#define PRINTF_TAS_OFFSET

Function Documentation

static uint32_t __is_irq_mode ( )
static

References MCAUSE_IRQ_Msk.

Referenced by __attribute__().

void _putchar ( char  character)

Output a character to a custom device like UART, used by the printf() function This function is declared here only. You have to write your custom implementation somewhere

Parameters
characterCharacter to output

Referenced by _out_char().

int puts ( const char *  s)

References __io_lock(), __io_unlock(), c, and tfp_putc().

Referenced by _puts().

static void tfp_putc ( void *  data,
char  c 
)
static

References g_freertos_scheduler_started.

Referenced by _putchar(), and puts().

Variable Documentation

char __printf_lock_ptr
uint8_t g_freertos_scheduler_started
volatile uint32_t* g_lock

Referenced by __attribute__().

SemaphoreHandle_t g_printf_mutex
volatile uint32_t* g_unlock