Compare commits

...

3 Commits

3 changed files with 8 additions and 3 deletions

View File

@ -13,7 +13,7 @@ extern "C" {
#include <stddef.h>
/* Maximum number of file descriptors */
#define FS_FD_MAX 32
#define FS_FD_MAX 16
/* fs_descriptor_type_t: Overloaded file descriptor functions

View File

@ -55,7 +55,6 @@ static void iokbd_delay(void)
uint8_t iokbd_row(int row)
{
if((unsigned)row > 9) return 0x00;
row ^= 1;
int orig_PBCR = PFC.PBCR;
int orig_PMCR = PFC.PMCR;

View File

@ -1,5 +1,6 @@
#include <gint/usb.h>
#include "usb_private.h"
#include <stdlib.h>
//---
// Endpoint assignment
@ -7,7 +8,12 @@
/* Current configuration: list of interfaces and endpoint assignments */
static usb_interface_t const *conf_if[16];
static endpoint_t conf_ep[32];
static endpoint_t *conf_ep;
GCONSTRUCTOR static void usb_alloc(void)
{
conf_ep = malloc(32 * sizeof *conf_ep);
}
/* usb_configure_endpoint(): Get endpoint data for a concrete address */
endpoint_t *usb_configure_endpoint(int endpoint)