Commit Graph

415 Commits

Author SHA1 Message Date
Gregory Nutt
625cd7b43a PIC32MZ: Implement support for IO port interrupts 2015-03-02 09:24:43 -06:00
Gregory Nutt
7ae730c810 PIC32MZ: Add ability to select flash ECC options 2015-03-01 09:08:44 -06:00
Gregory Nutt
b9f1e7e301 PIC32MZ: Fix yet another error in DEVCFG settings 2015-02-28 14:35:40 -06:00
Gregory Nutt
9377ec2f80 PIC32MZ: More fixups to DEVCFG settings. Still can't debug 2015-02-28 14:18:22 -06:00
Gregory Nutt
18b7234ad7 PIC32MZ: Ooops DMTCNT maximum value still bad 2015-02-28 13:48:16 -06:00
Gregory Nutt
0c7a1382b2 PIC32MZ: Fix reserved RAM for MPLABX; Revert FPLLRNG calculation; Fix maximum DMTCNT value 2015-02-28 12:49:03 -06:00
Gregory Nutt
f0a00f685a PIC32MZ: Fix some configuration settings and POSC mode should be external clock 2015-02-28 11:54:47 -06:00
Gregory Nutt
ee84648f96 PIC32MZ: Add an option to use the MIPS32 or the microMIPS ISA 2015-02-28 08:22:37 -06:00
Gregory Nutt
429863f348 arch/: board function prototypes are now in include/nuttx/board.h. Remove from architecture header file; Add inclusion of nuttx/board.h to all files referencing board functions 2015-02-27 17:19:38 -06:00
Gregory Nutt
c0d2e33288 PIC32MZ: Correct a few more DEVCFG issues 2015-02-27 16:20:28 -06:00
Gregory Nutt
a7c1053f9d PIC32MZ: Review DEVCFG setting; adjust a few to match example code 2015-02-27 10:54:18 -06:00
Gregory Nutt
7378a97c74 PIC32MZ: Fix some repeated typos and work around an issue with passing defined parameters to a macro that takes multiple parameters 2015-02-26 15:39:57 -06:00
Gregory Nutt
a688cdc2ee PIC32MZ: Add logic to configure peripheral pins for the selecte UARTs 2015-02-26 15:05:11 -06:00
Gregory Nutt
db9b6b5f1a PIC32MZ: Add peripheral pin selection register definitions 2015-02-26 13:19:40 -06:00
Gregory Nutt
6961f84e62 Costmetic updates comments and style; Add NFS dependency on IPv4 2015-02-26 06:04:23 -06:00
Gregory Nutt
a4d514c79b PIC32MX/Z: Partial review of PIC32MZ cp0 register -- need to do more; Also found issues with definitions for PIC32MX -- need to be retested 2015-02-25 13:33:09 -06:00
Gregory Nutt
2c929aa55f PIC32MZ: Add file for GPIO interrupt support. There are issues so configuration is EXPERIMENTAL for now 2015-02-25 11:09:04 -06:00
Gregory Nutt
8f8ed30d52 PIC32MZ: Add IOPort header file and GPIO configuration logic 2015-02-25 10:43:12 -06:00
Gregory Nutt
1b4bc931cd Adjust microMIPS compile options to enable interlinking with 32-bit code 2015-02-25 09:54:48 -06:00
Gregory Nutt
b99ff9e03b Refresh configuration 2015-02-25 07:22:58 -06:00
Gregory Nutt
0d6ba023a1 PIC32MZ: Add serial driver 2015-02-24 19:44:25 -06:00
Gregory Nutt
c3d282df7b PIC32MZ: Add low level UART support 2015-02-24 17:23:56 -06:00
Gregory Nutt
87faa1008f PIC32MZ: Add UART register definition header file 2015-02-24 17:00:14 -06:00
Gregory Nutt
65d762f902 PIC32MZ: Add error exception handling and interrupt decode logic 2015-02-24 16:11:30 -06:00
Gregory Nutt
6798e67177 PIC32MZ: Add support for a timer interrupt 2015-02-24 15:36:08 -06:00
Gregory Nutt
d0940671cf PIC32MZ: Add interrupt controller support 2015-02-24 14:50:54 -06:00
Gregory Nutt
acef552fac PIC32MZ: Add interrupt controller register definitions 2015-02-24 13:16:04 -06:00
Gregory Nutt
6cf496ee67 PIC32MX: Standardize of naming in comments 2015-02-24 11:32:15 -06:00
Gregory Nutt
f5a0fb060d PIC32MZ: Add Oscillator header file; Add logic to set up peripheral clocks on reset 2015-02-24 11:16:32 -06:00
Gregory Nutt
354e5a9a11 PIC32MZ: Add beginnings of CPU initialization logic. Still some bad logic for setting up peripheral clocking 2015-02-24 09:30:30 -06:00
Gregory Nutt
15579510e8 PIC32MZ: Fix some PLL setup logic 2015-02-23 17:27:28 -06:00
Gregory Nutt
db10058d27 PIC32MZ: Fix an error in the branch target of the hard-coded power up reset branch 2015-02-23 17:09:57 -06:00
Gregory Nutt
9e92b9041b PIC32MZ: Most related to start up file a FLASH device configuration setup 2015-02-23 16:36:35 -06:00
Gregory Nutt
cfd139e8af PIC32MZ: Make sure that the microMIPS ISA is selected on all common MIPS32 assembly files when the PIC21MZ is selected 2015-02-23 12:09:34 -06:00
Gregory Nutt
9a4f360265 PIC32MZ: Resolve a PIC32 dependency in the generic MIPS32 code 2015-02-23 11:56:16 -06:00
Gregory Nutt
b7a8a1f8aa Finishes PIC32MZ device configuration definitions 2015-02-23 09:58:34 -06:00
Gregory Nutt
d75acb630d PIC32MZ: Add memorymap and devcfg header files 2015-02-22 16:21:12 -06:00
Gregory Nutt
5559b72abd PIC32MZ: Framework for startup function. Still has too much PIC32MX garbage in it to be credible 2015-02-22 14:30:53 -06:00
Gregory Nutt
9c9fc13b6c MIPS: Add some build support for the M14K and also for the PIC32MZ Starter Kit. Still a long way to go 2015-02-22 13:45:59 -06:00
Gregory Nutt
a81ebff6e0 Remove support for obsolete PIC32 toolchain configuration names 2015-02-22 12:14:20 -06:00
Gregory Nutt
024a5cb278 PIC32MZ: Add just enough PIC32MZ logic that we can run 'make menuconfig' 2015-02-22 10:53:24 -06:00
Gregory Nutt
f273bcfa82 Fix a typo that prevents building PIC32... How long has that been there? 2015-02-21 19:41:59 -06:00
Gregory Nutt
c5b3e3e7aa Current Pinguino toolchain uses prefix p32 instead of mips 2015-02-21 19:41:26 -06:00
Gregory Nutt
8bac6b71ce SYSLOG: Add an option to use the syslog'ing device as the system consolution. This option enables a low-level, write-only console device at /dev/console (similar to the low-level UART console device). From Pierre-noel Bouteville. 2015-02-08 06:53:24 -06:00
Gregory Nutt
30b141e2c8 Remove CONFIG_DEBUG_STACK. Adding CONFIG_STACK_COLORATION makes this configuration option pointless 2015-01-24 06:49:51 -06:00
Gregory Nutt
9588b0e7a7 All Ethernet drivers (again): Missed one place where arp_out() is called and neighber_out() needs to be called 2015-01-21 11:36:33 -06:00
Gregory Nutt
723b7fc430 Networking: Modify all Ethernet drivers: Do neighbor look-up on all outgoing IPv6 packs in order to properly set the destination link layer address. 2015-01-20 15:52:25 -06:00
Gregory Nutt
f6063c3896 Networking: Add missing raw/packet socket support to all Ethernet drivers 2015-01-20 15:14:29 -06:00
Gregory Nutt
07132f462f Ethernet drivers: Use IFF_IS_IPv4 macro. Cannot rely on the EtherType being set correctly. 2015-01-20 06:26:14 -06:00
Gregory Nutt
ac69e11a5f Networking: All Ethernet drivers: Call ipv6_input if IPv6 is enabled and an IPv6 packet is received 2015-01-15 09:31:23 -06:00
Gregory Nutt
836a8b1625 - Rename devif_input() ipv4_input()
- Copy net/devif/devif_input.c to ipv6_input.c.  Remove all IPv4-specific logic.
- Rename net/devif/devif_input.c to ipv4_input.c.  Remove all IPv6-specific logic
- Split IPv4 header structure out as net_ipv4hdr_s from net_iphdr_s
2015-01-15 08:03:56 -06:00
Gregory Nutt
6bc54c3541 Networking: Condition certain ARP logic on CONFIG_NET_ARP in all Ethernet drivers 2015-01-15 07:07:39 -06:00
Gregory Nutt
2330c9c842 Rename CONFIG_NET_BUFSIZE to CONFIG_NET_ETH_MTU is all MCU Ethernet drivers 2014-11-16 08:10:06 -06:00
Gregory Nutt
bf984b2b3a Netwoek: Ada a parameter to netdev_register() to indicate the link protocol supported by the driver. Use this value to replace some logic commited yesterday 2014-11-15 08:22:51 -06:00
Gregory Nutt
60d2547cd7 Move selection for CONFIG_SERIAL_TERMIOS out of MCU Kconfigs to common drivers/serial/Kconfig. Add CONFIG_ARCH_HAVE_SERIAL_TERMIOS to indicate if an MCU supports TERMIOS 2014-10-27 11:31:16 -06:00
Gregory Nutt
4b4f3212f3 For PIC32MX7, DEVCFG0 bit 2 must be set 2014-10-09 14:03:54 -06:00
Gregory Nutt
db9901e2f9 Update everything under nuttx/arch to use the corrected syslog interfaces 2014-10-08 12:48:47 -06:00
Gregory Nutt
3dd3b1f5e2 The 'make export' target needs to bundle up the user C startup file (crt0), not the kernel head object 2014-09-04 13:31:34 -06:00
Gregory Nutt
31b8137956 There used to be two ways to pass parameters to new tasks, depending upon the configuration: Either (1) argv[] as created as an array with each string strdup'ed. Or (1) argv[] array and strings were created on the stack before the new task was started. Now, there is only one way, way (1). Way (2) might be slightly more compact, but this is not worth carry the complexity of two different ways of doing the same thing. 2014-09-01 15:39:34 -06:00
Gregory Nutt
ec086adfae Reanem kzalloc to kmm_zalloc for consistency 2014-08-31 17:34:44 -06:00
Gregory Nutt
10ca085b09 Rename kmalloc to kmm_malloc for consistency 2014-08-31 17:26:36 -06:00
Gregory Nutt
fcd7b9336e Rename kfree to kmm_free for consistency with other naming conventions 2014-08-31 17:04:02 -06:00
Gregory Nutt
bcb5a5316e Rename kumalloc to kumm_malloc and kuzalloc to kumm_zalloc for consistency with other naming 2014-08-31 16:24:24 -06:00
Gregory Nutt
e11679acf8 Rename CONFIG_NUTTX_KERNEL to CONFIG_BUILD_PROTECTED; Partially integrate new CONFIG_BUILD_KERNEL 2014-08-29 14:47:22 -06:00
Gregory Nutt
35b11a7533 Fix an error introduced into ALL implmentations of interrupt dispatch logic 2014-08-28 08:41:57 -06:00
Gregory Nutt
8bdde7b2d1 Add address environment support to ALL implementatins of up_release_pending() 2014-08-28 08:10:19 -06:00
Gregory Nutt
1b24afe6fc Add address environment support to ALL implementatins of up_reprioritize_rtr() 2014-08-28 07:54:07 -06:00
Gregory Nutt
9c6fea03d0 MIPS: Move address environment switch from the task switchers to the interrupt handler. That may save doing the action multiple times per interrupt 2014-08-28 07:16:14 -06:00
Gregory Nutt
756054d745 Add ADDRENV support to ALL implmentations of _exit() 2014-08-27 16:31:02 -06:00
Gregory Nutt
7055bce8b4 Add ADDRENV support to ALL implementations of up_unblock_task() 2014-08-27 16:15:46 -06:00
Gregory Nutt
5bf114e604 Add ADDRENV support to all implementations of up_block_task() 2014-08-27 15:36:52 -06:00
Gregory Nutt
2bc16b2ba5 wdog.h does not contain any application interface, only internal OS interface. Further, it is non-standard. Move wdog.h from include/ to include/nuttx. For the same reason, move the description of the watchdog timer interfaces from the Users Guide to the Porting Guide. 2014-08-21 11:16:55 -06:00
Gregory Nutt
6455f60c60 Remove os_internal.h it has been replace by several new header files under sched/. There have been some sneak inclusion paths via os_internal.h, so expect a few compilation errors for some architectures 2014-08-08 18:39:28 -06:00
Gregory Nutt
4dc151097e Replace os_internal.h with sched/sched.h in files that actually reference something in sched.h 2014-08-08 17:53:55 -06:00
Gregory Nutt
c98ece6bec Move task control files from sched/ to sched/task 2014-08-08 16:44:08 -06:00
Gregory Nutt
1c99d53bb1 Move clock functions from sched/ to sched/clock 2014-08-08 14:43:02 -06:00
Gregory Nutt
39183d37b8 Change all time conversions. Yech. New timer units in microseconds breaks all existing logic that used milliseconds in the conversions. Something likely got broken doing this, probably because I confused a MSEC2TICK conversion with a TICK2MSEC conversion. Also, the tickless OS no appears fully functional and passes the OS test on the simulator with no errors 2014-08-07 18:00:38 -06:00
Gregory Nutt
594083d870 Rename up_timerinit() to up_timer_initailize(); Add prototypes for candidate interfaces for the tickless OS; Don't build existing timer initialization logic if CONFIG_SCHED_TICKLESS is defined. 2014-08-06 16:26:01 -06:00
Gregory Nutt
d7fe256821 NET: emoved all includes of uip.h; added includes of ip.h wherever needed. Tried to fix problems of the now missing sneak inclusions because uip.h was removed. There are probably a few of these that were missed. 2014-07-04 19:13:08 -06:00
Gregory Nutt
99ce3a44d7 Remove all inclusion of uip.h 2014-07-04 16:58:22 -06:00
Gregory Nutt
11e3a21411 NET: More renaming 2014-07-04 15:40:49 -06:00
Gregory Nutt
313982ba18 NET: Rename XYZ_uiptxpoll to just XYZ_txpoll 2014-07-01 18:41:08 -06:00
Gregory Nutt
621ec21bfd Rename uip_poll->devif_poll and uip_timer->devif_timer 2014-06-30 18:40:41 -06:00
Gregory Nutt
ade8807a61 Rename uip_input to devif_input 2014-06-30 18:11:17 -06:00
Gregory Nutt
e4990dda4d Rename uip_driver_s net_driver_s 2014-06-27 16:48:12 -06:00
Gregory Nutt
57383ea2f3 Rename ip_eth_hdr to eth_hdr_s 2014-06-25 09:57:52 -06:00
Gregory Nutt
11896e1481 Move the remaining files from include/nuttx/net/uip to include/nuttx/net; Rename *_internal.h header files in net/ to just *.h 2014-06-24 10:14:15 -06:00
Gregory Nutt
b34a1f1e01 Move include/nuttx/net/uip/uip-arch.h to include/nuttx/net/netdev.h 2014-06-24 09:28:44 -06:00
Gregory Nutt
00667926a9 Move include/nuttx/net/uipopt.h to include/nuttx/net/netconfig.h 2014-06-24 08:53:28 -06:00
Gregory Nutt
407e72b300 Move include/nuttx/net/uip/uip-arch.h to include/nuttx/net/arp.h; rename all uip_arp_ functions to arp_ 2014-05-30 12:13:06 -06:00
Gregory Nutt
8dbc4714c5 Change all variadic macros to C99 style 2014-05-22 09:01:51 -06:00
Gregory Nutt
bac1ab9a34 Make sure that all references to up_prioritize_irq() are conditioned on CONFIG_ARCH_IRQPRIO. Noted by Make Smith 2014-05-20 17:48:39 -06:00
Gregory Nutt
af2bb81ac2 Add serial method so that lower half driver can provide RX flow control information. From Jussi Kivilinna 2014-05-08 09:00:33 -06:00
Gregory Nutt
ae82fa65a6 Fix spelling, only one t in exiting 2014-04-27 15:49:38 -06:00
Gregory Nutt
25d4ff745b More trailing whilespace removal 2014-04-13 16:22:22 -06:00
Gregory Nutt
c708eff608 Make sure that there is one space after for 2014-04-12 13:28:22 -06:00
Gregory Nutt
33d5d24964 Make sure that there is one space between while and condition 2014-04-12 13:09:48 -06:00
Gregory Nutt
66df3afd46 mv ramlog.h and syslog.h to new include/nuttx/syslog 2014-04-10 09:29:30 -06:00
Gregory Nutt
5b9f1f54c2 Add option to dump buffered USB trace data on an assertion 2014-03-20 10:56:30 -06:00
Gregory Nutt
07454e9241 configs/pic32-starterkit/nsh converted to use the kconfig-frontends tools 2014-03-01 11:10:30 -06:00