Piccolo OS Plus 1.01
A feature rich extension of Piccolo OS
Macros | Functions | Variables
C:/Users/Keith/source/repos/piccolo_os_plus/piccolo_os_demo.c File Reference

Macros

#define loops   1000
 

Functions

void blinker (void)
 
int is_prime (unsigned int n)
 
void find_primes (void)
 
void reporter_task (void)
 
void sz ()
 
void z ()
 
void stress_tester (void)
 
void spinner2 (void)
 
void spinner ()
 
int main ()
 

Variables

const uint LED_PIN = 25
 
const uint LED2_PIN = 14
 
volatile uint32_t tickct
 
volatile int32_t sleep_time
 
volatile int32_t sleep_core
 
volatile int32_t sleep_ct
 
semaphore_t talking_stick
 
uint32_t primes [2]
 
uint32_t totalPrimes
 
piccolo_os_task_treporter
 
uint32_t kills
 

Macro Definition Documentation

◆ loops

#define loops   1000

Function Documentation

◆ blinker()

void blinker ( void  )

◆ find_primes()

void find_primes ( void  )

◆ is_prime()

int is_prime ( unsigned int  n)

◆ main()

int main ( )

◆ reporter_task()

void reporter_task ( void  )

◆ spinner()

void spinner ( )

◆ spinner2()

void spinner2 ( void  )

◆ stress_tester()

void stress_tester ( void  )

Force a slew of task create and deletes by creating lots of tasks that die very quickly. Do this every few seconds. Note that we are perfectly safe creating multiple tasks running the same function since they all have seperate stacks.

◆ sz()

void sz ( )

◆ z()

void z ( )

Variable Documentation

◆ kills

uint32_t kills
extern

◆ LED2_PIN

const uint LED2_PIN = 14

◆ LED_PIN

const uint LED_PIN = 25

◆ primes

uint32_t primes[2]

◆ reporter

piccolo_os_task_t* reporter

◆ sleep_core

volatile int32_t sleep_core
extern

◆ sleep_ct

volatile int32_t sleep_ct
extern

◆ sleep_time

volatile int32_t sleep_time
extern

◆ talking_stick

semaphore_t talking_stick

◆ tickct

volatile uint32_t tickct
extern

◆ totalPrimes

uint32_t totalPrimes