drivers/slipdev : Add CONFIG_

Add CONFIG_ prefix to SLIPDEV_BUFSIZE
This commit is contained in:
Akshai M 2020-04-26 16:51:26 +05:30
parent 549d7ff24f
commit b4451ffd43

View File

@ -45,8 +45,8 @@ extern "C" {
* *
* @pre Needs to be power of two and `<= INT_MAX` * @pre Needs to be power of two and `<= INT_MAX`
*/ */
#ifndef SLIPDEV_BUFSIZE #ifndef CONFIG_SLIPDEV_BUFSIZE
#define SLIPDEV_BUFSIZE (2048U) #define CONFIG_SLIPDEV_BUFSIZE (2048U)
#endif #endif
/** @} */ /** @} */
@ -88,7 +88,7 @@ typedef struct {
netdev_t netdev; /**< parent class */ netdev_t netdev; /**< parent class */
slipdev_params_t config; /**< configuration parameters */ slipdev_params_t config; /**< configuration parameters */
tsrb_t inbuf; /**< RX buffer */ tsrb_t inbuf; /**< RX buffer */
uint8_t rxmem[SLIPDEV_BUFSIZE]; /**< memory used by RX buffer */ uint8_t rxmem[CONFIG_SLIPDEV_BUFSIZE]; /**< memory used by RX buffer */
/** /**
* @brief Device state * @brief Device state
* @see [Device state definitions](@ref drivers_slipdev_states) * @see [Device state definitions](@ref drivers_slipdev_states)