summaryrefslogtreecommitdiff
path: root/firmware/src/system_config/default/system_config.h
diff options
context:
space:
mode:
authorCamil Staps2016-08-22 22:28:32 +0200
committerCamil Staps2016-08-22 22:28:32 +0200
commit79bb1a9932af7bfcdab67e2a1da9d9edcba87f71 (patch)
treec9f96cd9498d1e24bc646923c5d79d13f310fbeb /firmware/src/system_config/default/system_config.h
parentInitial commit (diff)
old wipold
Diffstat (limited to 'firmware/src/system_config/default/system_config.h')
-rw-r--r--firmware/src/system_config/default/system_config.h119
1 files changed, 116 insertions, 3 deletions
diff --git a/firmware/src/system_config/default/system_config.h b/firmware/src/system_config/default/system_config.h
index a8faed8..2f506cc 100644
--- a/firmware/src/system_config/default/system_config.h
+++ b/firmware/src/system_config/default/system_config.h
@@ -85,14 +85,18 @@ SUBSTITUTE GOODS, TECHNOLOGY, SERVICES, OR ANY CLAIMS BY THIRD PARTIES
#define SYS_CLK_BUS_PERIPHERAL_1 40000000ul
#define SYS_CLK_BUS_PERIPHERAL_3 40000000ul
#define SYS_CLK_BUS_PERIPHERAL_4 40000000ul
+#define SYS_CLK_BUS_PERIPHERAL_5 80000000ul
#define SYS_CLK_BUS_PERIPHERAL_7 80000000ul
#define SYS_CLK_CONFIG_PRIMARY_XTAL 24000000ul
#define SYS_CLK_CONFIG_SECONDARY_XTAL 32768ul
+/*** Interrupt System Service Configuration ***/
+#define SYS_INT true
+
/*** Ports System Service Configuration ***/
-#define SYS_PORT_B_ANSEL 0x0
-#define SYS_PORT_B_TRIS 0x0
+#define SYS_PORT_B_ANSEL 0x7020
+#define SYS_PORT_B_TRIS 0x7020
#define SYS_PORT_B_LAT 0x0
#define SYS_PORT_B_ODC 0x0
#define SYS_PORT_B_CNPU 0x0
@@ -137,6 +141,15 @@ SUBSTITUTE GOODS, TECHNOLOGY, SERVICES, OR ANY CLAIMS BY THIRD PARTIES
#define SYS_PORT_G_CNPU 0x0
#define SYS_PORT_G_CNPD 0x0
#define SYS_PORT_G_CNEN 0x0
+/*** Timer System Service Configuration ***/
+#define SYS_TMR_POWER_STATE SYS_MODULE_POWER_RUN_FULL
+#define SYS_TMR_DRIVER_INDEX DRV_TMR_INDEX_0
+#define SYS_TMR_MAX_CLIENT_OBJECTS 5
+#define SYS_TMR_FREQUENCY 1000
+#define SYS_TMR_FREQUENCY_TOLERANCE 10
+#define SYS_TMR_UNIT_RESOLUTION 10000
+#define SYS_TMR_CLIENT_TOLERANCE 10
+#define SYS_TMR_INTERRUPT_NOTIFICATION false
// *****************************************************************************
@@ -145,13 +158,113 @@ SUBSTITUTE GOODS, TECHNOLOGY, SERVICES, OR ANY CLAIMS BY THIRD PARTIES
// *****************************************************************************
// *****************************************************************************
-
+/*** Timer Driver Configuration ***/
+#define DRV_TMR_INSTANCES_NUMBER 1
+#define DRV_TMR_CLIENTS_NUMBER 1
+#define DRV_TMR_INTERRUPT_MODE true
+
+/*** Timer Driver 0 Configuration ***/
+#define DRV_TMR_PERIPHERAL_ID_IDX0 TMR_ID_1
+#define DRV_TMR_INTERRUPT_SOURCE_IDX0 INT_SOURCE_TIMER_1
+#define DRV_TMR_INTERRUPT_VECTOR_IDX0 INT_VECTOR_T1
+#define DRV_TMR_ISR_VECTOR_IDX0 _TIMER_1_VECTOR
+#define DRV_TMR_INTERRUPT_PRIORITY_IDX0 INT_PRIORITY_LEVEL1
+#define DRV_TMR_INTERRUPT_SUB_PRIORITY_IDX0 INT_SUBPRIORITY_LEVEL0
+#define DRV_TMR_CLOCK_SOURCE_IDX0 DRV_TMR_CLKSOURCE_INTERNAL
+#define DRV_TMR_PRESCALE_IDX0 TMR_PRESCALE_VALUE_256
+#define DRV_TMR_OPERATION_MODE_IDX0 DRV_TMR_OPERATION_MODE_16_BIT
+#define DRV_TMR_ASYNC_WRITE_ENABLE_IDX0 false
+#define DRV_TMR_POWER_STATE_IDX0 SYS_MODULE_POWER_RUN_FULL
+
+
+
// *****************************************************************************
// *****************************************************************************
// Section: Middleware & Other Library Configuration
// *****************************************************************************
// *****************************************************************************
+/*** USB Driver Configuration ***/
+
+
+/* Disable Device Support */
+#define DRV_USBHS_DEVICE_SUPPORT false
+
+/* Enables Device Support */
+#define DRV_USBHS_HOST_SUPPORT true
+
+/* Maximum USB driver instances */
+#define DRV_USBHS_INSTANCES_NUMBER 1
+
+
+/* Interrupt mode enabled */
+#define DRV_USBHS_INTERRUPT_MODE true
+
+
+/* Number of Endpoints used */
+#define DRV_USBHS_ENDPOINTS_NUMBER 1
+
+
+
+
+
+
+
+#define DRV_USBHS_HOST_NAK_LIMIT 2000
+/* Provides Host pipes number */
+#define DRV_USBHS_HOST_PIPES_NUMBER 10
+#define DRV_USBHS_HOST_ATTACH_DEBOUNCE_DURATION 500
+#define DRV_USBHS_HOST_RESET_DURATION 100
+// *****************************************************************************
+// *****************************************************************************
+// Section: USB Device Layer Configuration
+// *****************************************************************************
+// *****************************************************************************
+/* Provides Host pipes number */
+#define USB_HOST_PIPES_NUMBER 10
+/* NAK Limit for Control transfer data stage and Status Stage */
+#define DRV_USB_HOST_NAK_LIMIT 200
+
+// *****************************************************************************
+// *****************************************************************************
+// Section: USB Host Layer Configuration
+// *****************************************************************************
+// **************************************************************************
+
+/* Total number of devices to be supported */
+#define USB_HOST_DEVICES_NUMBER 1
+
+/* Target peripheral list entries */
+#define USB_HOST_TPL_ENTRIES 1
+
+/* Maximum number of configurations supported per device */
+#define USB_HOST_DEVICE_INTERFACES_NUMBER 5
+
+#define USB_HOST_CONTROLLERS_NUMBER 1
+
+#define USB_HOST_TRANSFERS_NUMBER 10
+
+/* Number of Host Layer Clients */
+#define USB_HOST_CLIENTS_NUMBER 1
+
+
+/* Number of HID Client driver instances in the application */
+#define USB_HOST_HID_INSTANCES_NUMBER 1
+
+/* Maximum number of INTERRUPT IN endpoints supported per HID interface */
+#define USB_HOST_HID_INTERRUPT_IN_ENDPOINTS_NUMBER 1
+
+/* Number of total usage driver instances registered with HID client driver */
+#define USB_HOST_HID_USAGE_DRIVER_SUPPORT_NUMBER 1
+
+/* Maximum number PUSH items that can be saved in the Global item queue per field
+ * per HID interface */
+#define USB_HID_GLOBAL_PUSH_POP_STACK_SIZE 1
+
+
+
+
+