add missing
author"Darron Broad" <darron@kewl.org>
Wed, 17 Feb 2016 13:10:26 +0000
changeset 67 3e0efbc2614c
parent 66 bc623fe47333
child 68 339d46ec6df5
add missing
firmware/configs/not_majenko.h
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/firmware/configs/not_majenko.h	Wed Feb 17 13:10:26 2016 +0000
@@ -0,0 +1,68 @@
+/* Not Majenko Boards */
+
+//************************************************************************
+#if defined(_BOARD_MAJENKO_SDXL_)
+#define _CONFIG_VALID_
+#if defined(PUT_CONFIG_BITS_HERE)
+
+    /* Like SDXL but without BOOTLOAD BUTTON */
+
+    //* Oscillator Settings
+    #pragma config FNOSC    = PRIPLL                        // Oscillator selection
+    #pragma config POSCMOD  = EC                            // Primary oscillator mode
+    #pragma config FPLLIDIV = DIV_2                         // PLL input divider
+    #pragma config FPLLMUL  = MUL_20                        // PLL multiplier
+    #pragma config FPLLODIV = DIV_1                         // PLL output divider
+    #pragma config FPBDIV   = DIV_1                         // Peripheral bus clock divider
+    #pragma config FSOSCEN  = OFF                           // Secondary oscillator enable
+
+    //* Clock control settings
+    #pragma config IESO     = OFF                           // Internal/external clock switchover
+    #pragma config FCKSM    = CSECME                        // Clock switching (CSx)/Clock monitor (CMx)
+    #pragma config OSCIOFNC = OFF                           // Clock output on OSCO pin enable
+
+    //* USB Settings
+    #pragma config UPLLEN   = ON                            // USB PLL enable
+    #pragma config UPLLIDIV = DIV_2                         // USB PLL input divider
+    #pragma config FUSBIDIO = OFF                           // USB USID pin controlled by port function
+    #pragma config FVBUSONIO = OFF                          // USB VBUSON pin controlled by port function
+
+    //* Other Peripheral Device settings
+    #pragma config FWDTEN   = OFF                           // Watchdog timer enable
+    #pragma config WDTPS    = PS1024                        // Watchdog timer postscaler
+
+    //* Code Protection settings
+    #pragma config CP       = OFF                           // Code protection
+    #pragma config BWP      = OFF                           // Boot flash write protect
+    #pragma config PWP      = OFF                           // Program flash write protect
+
+    //* Debug settings
+    #pragma config ICESEL   = ICS_PGx2                      // ICE pin selection
+#endif
+
+    #define CAPABILITIES (blCapBootLED | blCapUSBInterface | blCapAutoResetListening | CAPCOMMON)
+
+    // LED sense
+    #define LedOn       High
+
+    // Boot LED
+    #define BLedLat     E
+    #define BLedBit     7
+
+    // Other capabilities
+    #define LISTEN_BEFORE_LOAD          3000                // no less than 3 seconds
+
+    #define _CPU_NAME_                  "32MX795F512H"
+    #define VEND                        vendMajenko
+    #define PROD                        prodSDXL
+    #define F_CPU                       80000000UL
+    #define F_PBUS                      F_CPU
+
+    #define FLASH_BYTES                 0x80000             // 512K
+    #define FLASH_PAGE_SIZE             4096
+    #define LoadFlashWaitStates()       (CHECON = 2)        // 0 for 0-30Mhz, 1 for 31-60Mhz, 2 for 61-80Mhz
+#endif
+
+/*
+ * vim: shiftwidth=4 tabstop=4 softtabstop=4 expandtab
+ */