snickerdoodle Platform Controller
firmware for STM32F0 platform controller
Platform Definitions

Modules

 Device Firmware Upgrade
 
 WL18xx Antenna Selection
 

Macros

#define CONS_UART_RX_BUFF_SIZE   128
 
#define IS_WL18xx_ANTENNA_MODE(__MODE__)
 Check that the antenna selection is valid. More...
 
#define TOGGLE_BIT(__REG__, __BIT__)
 Toggle a single bit within a register. More...
 

Detailed Description

Macro Definition Documentation

◆ CONS_UART_RX_BUFF_SIZE

#define CONS_UART_RX_BUFF_SIZE   128

#include <Inc/sd_platform.h>

Console buffer size

◆ IS_WL18xx_ANTENNA_MODE

#define IS_WL18xx_ANTENNA_MODE (   __MODE__)

#include <Inc/sd_platform.h>

Value:
(((__MODE__) == WL18xx_ANTENNA_SMA) || \
((__MODE__) == WL18xx_ANTENNA_CHIP))
#define WL18xx_ANTENNA_SMA
Definition: sd_platform.h:68
#define WL18xx_ANTENNA_CHIP
Definition: sd_platform.h:69

Check that the antenna selection is valid.

Parameters
__MODE__The antenna mode selection
Return values
TRUEif MODE is valid, FALSE otherwise

◆ TOGGLE_BIT

#define TOGGLE_BIT (   __REG__,
  __BIT__ 
)

#include <Inc/sd_platform.h>

Value:
((__REG__ & (1 << __BIT__)) ? \
(__REG__ & ~(1 << __BIT__)) : \
(__REG__ | (1 << __BIT__)))

Toggle a single bit within a register.

Parameters
__REG__Register to toggle bit
__BIT__Bit (0 index) to toggle
Return values
Newregister value with the bit toggled