Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Segmentation fault for no_os_uart fix #2366

Open
wants to merge 4 commits into
base: ftd2xx_ad74416h
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions drivers/adc-dac/ad74416h/ad74416h.h
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,13 @@
#define AD74416H_CH_C 2
#define AD74416H_CH_D 3

#define AD74416H_GPIO_A 0
#define AD74416H_GPIO_B 1
#define AD74416H_GPIO_C 2
#define AD74416H_GPIO_D 3
#define AD74416H_GPIO_E 4
#define AD74416H_GPIO_F 5

/** The value of the sense resistor in ohms */
#define AD74416H_RSENSE 12
/** 16 bit ADC */
Expand Down
2 changes: 2 additions & 0 deletions drivers/platform/ftd2xx/mpsse/ftd2xx_uart.c
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@

#include <stdint.h>
#include <stdio.h>
#include "no_os_alloc.h"
#include "ftd2xx_uart.h"

static int ftd2xx_uart_init(struct no_os_uart_desc **desc,
struct no_os_uart_init_param *param)
{
*desc = no_os_calloc(1, sizeof(struct no_os_uart_desc));
return 0;
};

Expand Down