BSP430  20141115
Board Support Package for MSP430 microcontrollers
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
Macros | Functions
scheduler.inc File Reference

BSP430 scheduler implementation for FreeRTOS. More...

#include <bsp430/periph/timer.h>
#include "FreeRTOS.h"

Macros

#define TIMESLICE_DURATION_tck   (portACLK_FREQUENCY_HZ / configTICK_RATE_HZ)
 

Functions

void vBSP430freertosSuspendScheduler (void)
 
void vBSP430freertosResumeScheduler (void)
 
portBASE_TYPE xPortStartScheduler (void)
 
void vPortEndScheduler (void)
 
static void scheduler_isr (void)
 

Detailed Description

BSP430 scheduler implementation for FreeRTOS.

Homepage
http://github.com/pabigot/bsp430

Function Documentation

void vBSP430freertosResumeScheduler ( void  )

Invoke to resume the FreeRTOS scheduler.

This re-enables the task timeslice interrupt and schedules an interrupt after completion of a full timeslice.

The intent is that this be invoked after the application wakes up from a low power mode in which OSCOFF was set.

Note
This function is available only if configBSP430_FREERTOS_SCHEDULER is true.
void vBSP430freertosSuspendScheduler ( void  )

Invoke to suspend the FreeRTOS scheduler.

This does not suspend any tasks, or prevent the scheduler from resuming the way vTaskEndScheduler does. It merely inhibits the task timeslice interrupt. The intent is that this be invoked prior to suspending the application in a low power mode that includes OSCOFF (e.g., LPM4_bits), if it is determined that no task is blocked on a tick-related event.

Note
This function is available only if configBSP430_FREERTOS_SCHEDULER is true.