git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@11430 35acf78f-673a-0410-8e92-d51de3d6d3f4

This commit is contained in:
Giovanni Di Sirio 2018-02-04 14:37:06 +00:00
parent dacb403627
commit e01203129f
2 changed files with 8 additions and 2 deletions

View File

@ -178,7 +178,6 @@ struct BaseFlashVMT {
/* Driver state.*/ \ /* Driver state.*/ \
flash_state_t state; flash_state_t state;
/** /**
* @brief Base flash class. * @brief Base flash class.
*/ */
@ -196,6 +195,13 @@ typedef struct {
* @name Macro Functions (BaseFlash) * @name Macro Functions (BaseFlash)
* @{ * @{
*/ */
/**
* @brief Instance getter.
* @details This special method is used to get the instance of this class
* object from a derived class.
*/
#define getBaseFlash(ip) ((BaseFlash *)&(ip)->vmt)
/** /**
* @brief Sensors get axes number. * @brief Sensors get axes number.
* *

View File

@ -36,7 +36,7 @@ received a series of important improvements, new features have been added.
*** What's new in OS Library *** *** What's new in OS Library ***
- OS library now has its own test suite. - OS library now has its own test suite.
- Mailbox API changed by adding "Timeout" to those function that have - Mailbox API names changed by adding "Timeout" to those function that have
timeout capability, for consistency with the rest of the system. timeout capability, for consistency with the rest of the system.
- Added an "Objects Factory" to the OS Library, it allows to dynamically - Added an "Objects Factory" to the OS Library, it allows to dynamically
allocate reference-counted kernel objects/buffers or to register allocate reference-counted kernel objects/buffers or to register